ec2-ami

How to fire EC2 instances and upload/run a startup script on each of them?

喜欢而已 提交于 2019-11-27 10:39:24
I want to automate the launch of a set of Linux EC2 instances. Basically, I want to write a script/program that would : Instantiate N occurrences of a given AMI of mine. For each started instance, it would upload a customized script and let the script run into the instance. Using VMWare, I would typically do that using vmrun or the Vix SDK. What are the options in Amazon AWS/EC2? The answer depends a bit on what AMI you are running as the features provided are entirely AMI dependent. The Amazon Linux AMIS and the official Ubuntu AMIs have the cloud-init package installed. This has a number of

How to fire EC2 instances and upload/run a startup script on each of them?

早过忘川 提交于 2019-11-26 17:57:42
问题 I want to automate the launch of a set of Linux EC2 instances. Basically, I want to write a script/program that would : Instantiate N occurrences of a given AMI of mine. For each started instance, it would upload a customized script and let the script run into the instance. Using VMWare, I would typically do that using vmrun or the Vix SDK. What are the options in Amazon AWS/EC2? 回答1: The answer depends a bit on what AMI you are running as the features provided are entirely AMI dependent. The