From 03a7c0c079c5a2f3fece3b690d241d85e102f150 Mon Sep 17 00:00:00 2001 From: Jonas Holst Damtoft <56115984+jhd-lego@users.noreply.github.com> Date: Mon, 4 Mar 2024 11:08:08 +0100 Subject: [PATCH 1/3] chore: update brew install steps --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c70accb..5a261d5 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Copy the script to a directory that is in your `$PATH`. Perform the following steps: ```bash +brew tap LEGO/assume-aws-sso-role https://github.com/LEGO/assume-aws-sso-role brew install LEGO/assume-aws-sso-role/assume-aws-sso-role ``` From f6121566d558b4c461a84a047260251e555ed843 Mon Sep 17 00:00:00 2001 From: Jonas Holst Damtoft <56115984+jhd-lego@users.noreply.github.com> Date: Mon, 4 Mar 2024 11:51:00 +0100 Subject: [PATCH 2/3] chore: update readme for external cred process --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a261d5..5b97b1b 100644 --- a/README.md +++ b/README.md @@ -110,10 +110,10 @@ then it's used in the assume role step. ## Use as external process in AWS config profiles Add a profile using the `credential_process` setting and use the options for supplying -account number, role, and region. +account number, role, and region. Assuming `assume-aws-sso-role` is in your `$PATH`, you can use the binary without a path, +otherwise you will need to replace `assume-aws-sso-role` with `/absolute/path/to/assume-aws-sso-role`, so that it knows where to find it. ```ini [profile example] -# Replace "/path/to" with the absolute path to the script on your disk. -credential_process=/path/to/assume-aws-aws-role -q -a 123456789012 -r SSO-Example -e eu-west-1 +credential_process=assume-aws-sso-role -q -a 123456789012 -r SSO-Example -e eu-west-1 ``` From e57e7f63067fbcd11979f64114ca40143dd66049 Mon Sep 17 00:00:00 2001 From: Jonas Holst Damtoft <56115984+jhd-lego@users.noreply.github.com> Date: Mon, 4 Mar 2024 11:52:15 +0100 Subject: [PATCH 3/3] chore: more clarification --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5b97b1b..2690819 100644 --- a/README.md +++ b/README.md @@ -110,8 +110,10 @@ then it's used in the assume role step. ## Use as external process in AWS config profiles Add a profile using the `credential_process` setting and use the options for supplying -account number, role, and region. Assuming `assume-aws-sso-role` is in your `$PATH`, you can use the binary without a path, -otherwise you will need to replace `assume-aws-sso-role` with `/absolute/path/to/assume-aws-sso-role`, so that it knows where to find it. +account number, role, and region. Assuming `assume-aws-sso-role` is in your `$PATH`, you can use the binary without a path. +Homebrew automatically installs the binary into your `$PATH`. + +Otherwise you will need to replace `assume-aws-sso-role` with `/absolute/path/to/assume-aws-sso-role`, so that it knows where to find it. ```ini [profile example]