gpt4 book ai didi

ubuntu - 具有多个 aws 帐户的 Eb 工具

转载 作者:太空宇宙 更新时间:2023-11-03 16:49:16 26 4
gpt4 key购买 nike

是否可以在同一台机器上将 Elastic Beanstalk 工具与两个单独的 aws 帐户一起使用?

更多说明:

按照描述安装弹性 beanstalk 工具后 here , 我可以使用

在我的项目中初始化设置
eb init

并提供 aws id 和 secret。此时一切都很好。这里的问题是凭据自动存储在 ~/.aws/config 中,并在执行 eb 命令时读取。

我有第二个 AWS 账户,也想在那里使用 eb 工具。是否可以让 eb 工具使用自定义配置文件?我在文档中找不到任何内容 here

谢谢。

最佳答案

是的,您可以使用 EB 工具创建多个配置文件。

要创建新的配置文件,您可以使用

aws configure --profile <your-profile-name>

它将在 ~/.aws/credentials 中生成一个新的配置文件和 ~/.aws/config .或者,您可以手动编辑这些文件。请阅读文档 here .

生成配置文件后,您可以附加 --profile <your-profile-name>给你的eb init命令:

eb init --profile <your-profile-name>

它将生成一个配置文件 ( .elasticbeanstalk/config.yml )。之后,如果要部署,只需使用:

eb deploy

关于ubuntu - 具有多个 aws 帐户的 Eb 工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31583297/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com