是的,您可以使用EB工具创建多个配置文件。
要创建新的配置文件,您可以使用
aws configure --profile <your-profile-name>
~/.aws/credentials
和~/.aws/config
中生成一个新的配置文件。或者,您可以手动编辑这些文件。请在此处阅读文档。
生成配置文件后,您可以在eb init
命令后附加--profile <your-profile-name>
:
eb init --profile <your-profile-name>
它将生成一个配置文件 (.elasticbeanstalk/config.yml
)。之后,如果您想要部署,只需使用:
eb deploy