简体   繁体   English

如何为我的 VPC 选择 AWS 组织账户

[英]How to pick the AWS Organizational Account for my VPC

I am new to setting up AWS environments.我是设置 AWS 环境的新手。

I have an AWS Organization, a Production Account, and the new "Laboratory" account I just created.我有一个 AWS 组织、一个生产账户和我刚刚创建的新“实验室”账户。 I want to create a VPC inside that new Account.我想在那个新账户中创建一个 VPC。

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?"但是,当我按照设置 VPC 的过程进行操作时,没有提示询问“您希望此 VPC 在哪个账户中?”

Am I misunderstanding some basic AWS concept?我是否误解了一些基本的 AWS 概念? 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.我已经“在”一个帐户或另一个帐户,我的新 VPC 将在那里创建……但我看不到我所在的指示符,也没有更改当前帐户的方法。

b.湾。 I ought to be able to pick the Account when defining the new VPC...but there's no option for this.在定义新的 VPC 时,我应该能够选择帐户……但是没有这个选项。

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.我已经“在”一个帐户或另一个帐户,我的新 VPC 将在那里创建……但我看不到我所在的指示符,也没有更改当前帐户的方法。

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 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.您创建的所有资源都将在您通过身份验证的账户中,除非您专门设置了跨账户并在另一个账户中担任角色。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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