From 1621c37eef1a1ead7ff47328d079b9287af98b44 Mon Sep 17 00:00:00 2001 From: John Lin Date: Wed, 18 Sep 2019 15:30:03 +0800 Subject: [PATCH] update document about role-arn --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 828f447a..f7ab4647 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,16 @@ You can switch between different sets in the credentials file by passing cli53 list --profile my_profile +You can also assume a specific role by passing `--role-arn` to any command. +For example: + + cli53 list --role-arn arn:aws:iam::123456789012:role/myRole + +You can combine role with profile. +For example: + + cli53 list --profile my_profile --role-arn arn:aws:iam::123456789012:role/myRole + For more information, see: http://blogs.aws.amazon.com/security/post/Tx3D6U6WSFGOK2H/A-New-and-Standardized-Way-to-Manage-Credentials-in-the-AWS-SDKs Note: for Alpine on Docker, the pre-built binaries do not work, so either use Debian, or follow the instructions below for Building from source.