简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM