UPD: removed enable_sso and alias to prevent conflicts

This commit is contained in:
xpk 2022-12-12 18:51:43 +08:00
parent 15942ee76c
commit aaad6ac8cc
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86
3 changed files with 3 additions and 6 deletions

View File

@ -1,8 +1,7 @@
resource "aws_directory_service_directory" "connector" {
name = var.adc-domainname
alias = var.adc-alias # required by enable-sso
enable_sso = var.adc-enable-sso
enable_sso = false # enabling this results in error when terraform is ran in member accounts
password = var.adc-service-account-password
size = var.adc-size
type = "ADConnector"

View File

@ -6,6 +6,6 @@ output security-group-id {
value = aws_directory_service_directory.connector.security_group_id
}
output connect-settings {
value = aws_directory_service_directory.connector.connect_settings
output customer-dns-ip {
value = aws_directory_service_directory.connector.connect_settings[*].customer_dns_ips
}

View File

@ -5,6 +5,4 @@ variable "adc-dns-ips" {}
variable "adc-service-account-username" {}
variable "adc-subnet-ids" {}
variable "adc-vpc-id" {}
variable "adc-alias" {}
variable "adc-enable-sso" {}
variable "default-tags" {}