vendredi 17 avril 2015

Specify a t2 instance VPC using AWS CLI

t2 instances only work with a VPC (as documented here: http://ift.tt/1qmeyrd). So when running via AWS CLI, how do I specify a VPC on the command line? I've followed the document here (http://ift.tt/1G0T3Dh) and have the command line setup as outlined:





aws ec2 run-instances \
--image-id amiID \
--key-name keyName \
--user-data file://instance-setup.sh \
--count 1 \
--instance-type instanceType \
--iam-instance-profile Name=CodeDeployDemo-EC2-Instance-Profile



I realize using an m3 instance works as expected, but I'd like a t2.micro since this instance will only be used for deployment.





Aucun commentaire:

Enregistrer un commentaire