How to use multiple AWS Accounts from the command line?

前端 未结 7 1648
故里飘歌
故里飘歌 2020-12-22 16:35

I\'ve got two different apps that I am hosting (well the second one is about to go up) on Amazon EC2.

How can I work with both accounts at the command line (Mac OS X

7条回答
  •  眼角桃花
    2020-12-22 17:22

    The new aws tools now support multiple profiles.

    If you configure access with the tools, it automatically creates a default in ~/.aws/config.

    You can then add additional profiles - more details at:

    http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-multiple-profiles

提交回复
热议问题