amazon web services - AWS Auto Scaling Multiple Custom AMIs? -


i have several custom amis running control group, i.e. automatically spin them , tear them down @ predefined times. different amis rather multiples of same ami. possible auto scaling api?

let's want create 3 instances, can create them via individual calls cli ec2-run-instances, such

ec2-run-instances ami-1a2b3c4d -k gsg-keypair (more params etc)

ec2-run-instances ami-7d2b3c55 -k gsg-keypair (more params etc)

ec2-run-instances ami-8d2b3c55 -k gsg-keypair (more params etc)

retrieving instance id each call. tag instance part of group:

ec2-create-tags i-bf72dbd2 --tag "purpose=xyz_pdq" (for each of 3 changing instance id on each call)

then, later, can retrieve list of instances tag calling

ec2-describe-tags --filter "resource-type=instance" --filter "key=purpose" --filter "value=xyz_pdq"

iterate thru list , terminate instances


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -