Setting a dynamic hostname on AWS using UserData

爱⌒轻易说出口 提交于 2019-12-11 02:57:04

问题


I have a bit of a chicken and egg problem. I would like to set the Hostname during instance launch using UserData, but I need it to be an incremental one, such as

myapp01.us-west-2c.company.com
myapp02.us-west-2c.company.com

The AWS::AutoScaling::LaunchConfiguration can do this I believe for the key/tag pairs for Name. However, how can I get UserData to do something similar?

来源:https://stackoverflow.com/questions/40917209/setting-a-dynamic-hostname-on-aws-using-userdata

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!