简体   繁体   中英

CloudFormation Windows Instances Bootstrapping

I understand that we need leverage user-data to inject any script or code. There are few aspects of automation like - changing the host-name or joining to a domain controller which would involve restarting of the instance.

Say if I want to do both ie change the host-name - the instance would perform restart and for the subsequent steps of domain-join would be ignored.

Is there a way / work around to get this through ?

You could just run all necesary commands and run 'Restart-Computer'. Userdata runs only on the initial start of the instance lifecycle so you're fine to do this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM