aws-hpc-recipes
aws-hpc-recipes copied to clipboard
Managed AD Linux AMI version issues
When the template is executed in a pipeline some time after initial deployment the Cloudformation changeset identifies that the AMI for the AdDomainAdminNode needs to be updated, because there's a newer version of the amznlinux image. An AMI change requires the server resource be destroyed and rebuilt, which is attempted.
The new node is launched, but experiences an error during the startup script. It's trying to create the Service Account user via adcli , but this returns an error because the user account already exists.
To workaround the issue we pass the AMI image version as a parameter with the type of 'AWS::EC2::Image::Id'.