July 2017
Intermediate to advanced
402 pages
9h 38m
English
We now have all the information required to launch our instance; let's finally launch it as follows:
$ aws ec2 run-instances \ --instance-type t2.micro \ --key-name EffectiveDevOpsAWS \ --security-group-ids sg-11d4fe68 \ --image-id ami-a4c7edb2{ "OwnerId": "511912822958", "ReservationId": "r-6d7c15c1", "Groups": [], "Instances": [ { "Monitoring": { "State": "disabled" }, "PublicDnsName": "", "RootDeviceType": "ebs", "State": { "Code": 0, "Name": "pending" }, "EbsOptimized": false, "LaunchTime": "2017-07-31T08:39:12.000Z", "PrivateIpAddress": "172.31.27.66", "ProductCodes": [], "VpcId": "vpc-f7dc4093", "StateTransitionReason": "", "InstanceId": "i-97000624", "ImageId": "ami-a4c7edb2", "PrivateDnsName": "ip-172-31-27-66.ec2.internal", ...Read now
Unlock full access