0

こんにちは、お元気ですか?私が抱えている問題についてお話しします。

現在、私が働いている場所で、テラフォームを使用して aws ワークスペースを表示したいという問題があります。ワークスペースのみ。

私が抱えている問題は、私が持っているディレクトリ サービスが、ドメイン "domain.local" (たとえば) との信頼関係を確立した ManagedAD を使用していることです。

ワークスペースを作成するとき、ワークスペースを作成するユーザーは、「AWS ドメイン (ManagedAD とも呼ばれます)」のユーザーではなく、自分のドメインのユーザーである必要があります。ここに私のコードを示します: terraform.tfvars


user2 = "pepe.argento" 
package_1 = "wsb-bh8rsxt14" #Paquete de Windows para Workspace
main_directory = "d-*" #ID directory for my directory service (the Id of the directory I pass it complete, this is an example)
domain.local = "t-*" (the Id of the directory I pass it complete, this is an example)

変数.tf


variable "user2" {}
output "user2" {
  value = var.user2
}
variable "package_1" {}
output "package_1" {
  value = var.package_1
}
variable "main_directory" {}
output "main_directory" {
  value = var.main_directory
}
variable "domain_local" {}
output "domain_local" {
  value = var.domain_local
}

aws_workspaces_workspace.tf

data "aws_workspaces_bundle" "value_windows_10" {
  bundle_id = "wsb-bh8rsxt14" # Value with Windows 10 (English)
}

resource "aws_workspaces_workspace" "Workspace1" {
  directory_id = var.main_directory.id
  bundle_id    = data.aws_workspaces_bundle.value_windows_10.id
  user_name    = var.user2

#root_volume_encryption_enabled = true
 # user_volume_encryption_enabled = true
 # volume_encryption_key          = "alias/aws/workspaces"

  workspace_properties {
    compute_type_name                         = "VALUE"
    user_volume_size_gib                      = 50
    root_volume_size_gib                      = 80
    running_mode                              = "AUTO_STOP"
    running_mode_auto_stop_timeout_in_minutes = 60
  }

  tags = {
    Area = "Finance"
  }
}

私の問題は、作成しようとしているワークスペースを、ディレクトリ サービスのユーザーではなく、信頼関係にあるオンプレミス ドメインのユーザーが使用したいということです。信頼関係があるオンプレミスのフォレストで検索するように設定する方法を教えてください。

4

0 に答える 0