Open armondhonore opened 10 years ago
For creating the scenario 1 is like we need to execute several commands sequentially using the AWS cli. Steps will be :
So overview of steps to create scenario 1.
Queries: Say we have scenario1.json
Other viewpoint.
Is there any way to assign in which VPC user wants to launch the instance using aws cli. Didn't find any command to perform this step. It can be performed using AWS console using launch instance.
http://docs.aws.amazon.com/cli/latest/userguide/cli-ec2-launch.html
EC2-VPC
The following command launches a t1.micro instance in the specified subnet:
$ aws ec2 run-instances --image-id ami-xxxxxxxx --count 1 --instance-type t1.micro --key-name MyKeyPair --security-group-ids sg-xxxxxxxx --subnet-id subnet-xxxxxxxx
Done with the scenario1 network creation. Following commands are executed in sequence to create scenario 1:
In case of any error we must delete the objects created before the error. It will be a kind of rollback in case of any exception. Please suggest.
http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Scenario1.html
using the CLI
create a json opbject that will create a default network that implements senerio 1 to create a virtual private cloud that uses one t2.micro