{
"Type" : "AWS::SSM::Document",
"Properties" : {
"Content" : {
"schemaVersion":"1.2",
"description":"Join instances to an AWS Directory Service domain.",
"parameters":{
"directoryId":{
"type":"String",
"description":"(Required) The ID of the AWS Directory Service directory."
},
"directoryName":{
"type":"String",
"description":"(Required) The name of the directory; for example, test.example.com"
},
"dnsIpAddresses":{
"type":"StringList",
"default":[
],
"description":"(Optional) The IP addresses of the DNS servers in the directory. Required when DHCP is not configured. Learn more at http://docs.aws.amazon.com/directoryservice/latest/simple-ad/join_get_dns_addresses.html",
"allowedPattern":"((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"
}
},
"runtimeConfig":{
"aws:domainJoin":{
"properties":{
"directoryId":"{{ directoryId }}",
"directoryName":"{{ directoryName }}",
"dnsIpAddresses":"{{ dnsIpAddresses }}"
}
}
}
}
}
}