Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
217 views
in Technique[技术] by (71.8m points)

amazon web services - How to pick the AWS Organizational Account for my VPC

I am new to setting up AWS environments.

I have an AWS Organization, a Production Account, and the new "Laboratory" account I just created. I want to create a VPC inside that new Account.

But when I follow the process of setting up the VPC there's no prompt asking "Which Account do you want this VPC to be in?"

Am I misunderstanding some basic AWS concept? My user has access to both Accounts, so either:

a. I'm already "in" one Account or the other, and my new VPC will be created there...but I see no indicator which I'm in, nor a way to change the current Account.

b. I ought to be able to pick the Account when defining the new VPC...but there's no option for this.

What am I missing?

question from:https://stackoverflow.com/questions/65850346/how-to-pick-the-aws-organizational-account-for-my-vpc

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

a. I'm already "in" one Account or the other, and my new VPC will be created there...but I see no indicator which I'm in, nor a way to change the current Account.

Yes, when you authenticate, you use the credentials for one of the accounts. You can also check what account you are in with the aws cli get-caller-identity:

aws sts get-caller-identity

All the resources you create will be in the account where you are authenticated, unless you specificly has setup cross-account and assumed a role in another account.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...