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)

已提问 1 年前221 查看次数
2 回答
3

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
专家
已回答 1 年前
profile picture
专家
已审核 10 天前
profile picture
专家
已审核 1 年前
2
已接受的回答

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
专家
已回答 1 年前
profile picture
专家
已审核 10 天前
profile picture
专家
已审核 1 年前
profile picture
专家
已审核 1 年前
  • 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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容