May 2018
Intermediate to advanced
554 pages
13h 51m
English
Now you need to upload your ssh public key and then launch the EC2 instance on both the public subnet and the private subnet:
$ aws ec2 import-key-pair --key-name=chap6-key --public-key-material "`cat ~/.ssh/id_rsa.pub`"
$ aws ec2 run-instances --image-id ami-1853ac65 --instance-type t2.nano --key-name chap6-key --security-group-ids sg-dd8a3f94 --subnet-id subnet-6296863f
Read now
Unlock full access