Created
June 16, 2017 02:35
-
-
Save tonyprawiro/b36d04ab15ac59f739d564e5e5244c2e to your computer and use it in GitHub Desktop.
SSM document
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_ssm_document" "myapp_dir_default_doc" { | |
name = "myapp_dir_default_doc" | |
document_type = "Command" | |
content = <<DOC | |
{ | |
"schemaVersion": "1.0", | |
"description": "Join an instance to a domain", | |
"runtimeConfig": { | |
"aws:domainJoin": { | |
"properties": { | |
"directoryId": "${aws_directory_service_directory.myapp_ad.id}", | |
"directoryName": "${var.dir_domain_name}", | |
"directoryOU": "${var.dir_computer_ou}", | |
"dnsIpAddresses": [ | |
"${aws_directory_service_directory.myapp_ad.dns_ip_addresses[0]}", | |
"${aws_directory_service_directory.myapp_ad.dns_ip_addresses[1]}" | |
] | |
} | |
} | |
} | |
} | |
DOC | |
depends_on = ["aws_directory_service_directory.myapp_ad"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment