Question: Method 1 Done: Launch an EC2 instance into the VPC with the following command: aws ec2 run-instances --image-id ami-xxxxxxxxxx --count 1 --instance-type t3.micro --key-name username-key
Method 1 Done: Launch an EC2 instance into the VPC with the following command: aws ec2 run-instances --image-id ami-xxxxxxxxxx --count 1 --instance-type t3.micro --key-name username-key --security-group-ids sg-xxxxxxxxxx --subnet-id subnet-xxxxxxxxxxxxx
Method 2 Done: Create another instance in your subnet with the following command: aws ec2 run-instances --image-id ami-xxxxxxxxxxxx --count 1 --instance-type t1.micro --key-name username-key --security-group-ids sg-xxxxxxxx --subnet-id subnet-xxxxxxxxxxxxxxxx
My question: Now how to create ec2 instance for users on the Internet and for users in the public subnet with a public IP address to verify pinging test for the requirements in AWS CLI commands?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
