Packer - Assign specific Elastic IP to instance

和自甴很熟 提交于 2019-12-11 12:03:30

问题


When I fire up an EC2 instance with Packer, in order to create an AMI, is there a way to assign it a specific elastic IP address, assuming I already own that IP address?


回答1:


I would use the Shell Provisioner to run a simple to script, uploaded with the File Provisioner to your Packer instance. The script would utilize the AWS CLI calling associate-ipaddress for this instance.



来源:https://stackoverflow.com/questions/32061542/packer-assign-specific-elastic-ip-to-instance

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