AWS EB CLI 3套弥补错误的开户申请 [英] aws eb cli 3 sets up application for wrong account
问题描述
我有多个AWS账户,我尝试了新的命令行界面弹性魔豆EB CLI 3.当我运行下面的命令 EB的init
我得到提示该地区(好),然后问我选择一个应用程序使用,它里面列出从其他AWS账户的应用程序(分期)。如果我继续前进,创建新的应用程序该应用程序会在我的分期帐户创建。
I have multiple AWS accounts and I'm trying out the new command line interface for elastic beanstalk EB CLI 3. When I run the following command eb init
I get prompted for the region (good) and then it asks me to "Select an application to use" where it lists the applications from another AWS account (for staging). If I go ahead and "Create new application" that application will be created in my staging account.
是否有某种方式来配置EB cli3得到它使用不同的快捷键?
Is there some way to configure eb cli3 and get it to use different access keys?
推荐答案
您可以<一href="http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-multiple-profiles">set一个新的资料与EB CLI来使用。配置文件是在AWS CLI和EB CLI之间共享。
You can set up a new profile to use with the EB CLI. Profiles are shared between the AWS CLI and the EB CLI.
打开您的AWS的配置文件:〜/ .aws /配置
并添加以下行:
Open up your aws config file: ~/.aws/config
and add the following lines:
[profile profilename]
aws_access_key_id = aaaaaa
aws_secret_access_key = aaaaaaaaa123
然后就可以调用 EB初始化--profile设置profilename
。这将建立EB CLI使用该特定配置文件的特定目录中。
Then you can call eb init --profile profilename
. This will set up the EB CLI to use that specific profile for that specific directory.
这篇关于AWS EB CLI 3套弥补错误的开户申请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!