AWS CloudFormation and Windows Server 2008 R2 to Download Bootstrap Files

AWS recently released the new AMI, which by default installed CloudFormation tools on its Windows Server 2008 R2. OMI itself can be found here: [ https://aws.amazon.com/amis/microsoft-windows-server-2008-r2-base-cloudformation]

When using this AMI directly in the CloudFormation template and starting the stack, I can easily launch my stack and the instance loads my files located on S3 without any loading problems, all folders created with the cfn-init command can also be viewed as expected.

However, if I modify AMI to configure (only to enable IIS) and re-create a new AMI and use this AMI in the template, the files are not loaded and other folders should not be created cfn- The init command can be seen.

Any suggestions?! Am I missing something ?!

+1
source share
1 answer

The most likely reason for this is that the custom AMI was created without using the EC2Config Service tab .

Windows CloudFormaion support depends on the functionality of EC2Config to run the commands specified in the user data on first boot. This function is automatically disabled after the first boot, so subsequent downloads do not lead to repeated runs of the same commands.

If you create a custom AMI using the EC2Config Bundle tab, it ensures that the AMI will enable the function to execute the User Data command. Therefore, it is necessary (and always recommended) to create a custom AMI using the EC2Config Bundle tab.

Hope this helps.

Regards, Shon

+3
source

All Articles