AWS CLI Create EC2 working perfectly but not visible or available in AWS Console

0

I'm using the AWS CLI the first time and I just logged in with ma IAM Account that I created wich has all EC2 Permissions. I first tried to create a key-pair for the new Instance wich worked flawless according to console and the return values I received but in the AWS EC2 Console the key is not shown. Not even now, hours after my first attempt. Also other Commands like creating a SecurityGroup did work however they did no change to the AWS EC2 Console in the Web. Even starting the Instance did work according to CLI but there was no instance listed in AWS EC2 Console after executing the command. It's also worth to acknowledge, that all these instances I tried to create actually exist when I try to execute "aws ec2 describe-instances" and they're even running according to console but still don't show up in the Web Console. They're not reachable by SSH using the provided "public IP" that comes with the response.

Command I used to create the KeyPair:

aws ec2 create-key-pair --key-name new-instance-keypair --query 'KeyMaterial' --output text > new-instance-keypair.pem

Command I used to create the Security-Group:

aws ec2 create-security-group \
    --group-name "new-group" \
    --description "Web Securitgy group" \
    --output text

(even go the ID as response there)

2 Answers
2

I agree with _takahash.
From the EC2 global view, you can see how many EC2s are running in which region, etc.
From there, it would be a good idea to identify the region.
https://us-east-1.console.aws.amazon.com/ec2globalview/home?region=us-east-1#

profile picture
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago
1
Accepted Answer

Hi. Are the region between CLI and web console same? You may.find out the region where you created EC2 instance from 'aws ec2 describe-instances' command.(Check arn of EC2 instance.)

profile picture
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago
profile picture
EXPERT
reviewed a year ago
  • Thank you, I did not realize that I accidentally screwed up there. Reason was that I had multiple Browser Windows open with multiple Regions opened. Sorry

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions