Closed jenny-miggin closed 1 year ago
Hey @jenny-miggin,
This is the expected behavior. If you wanted to run the assume_role_with_web_identity
it simply just generates the keys for you. In order for you to tie it to any profile, you need to run the aws configure set
commands, which is what happens in the setup
command.
The purpose of the profile in the assume_role_with_web_identity
command is to provide the aws sts assume-role-with-web-identity
command with a profile that contains the proper keys that allow this operation to be run.
I think because we already have a valid web-identity-token
with the CIRCLE_OIDC_TOKEN_V2
, a specific profile is not needed to generate new keys.
-Brian
When using the
profile_name
parameter, the profile name is not shared when using theassume_role_with_web_identity
command.Expected behaviour
When using the
profile_name
parameter in theassume_role_with_web_identity
command, this profile name should be saved and be made available in later AWS commandsActual behaviour
The profile name is not persisted, and the downstream AWS commands fail if a profile is specified
Steps to reproduce
Given the below sample
config.yml
:the
list images
job fails with the below error:If using the
setup
command instead, the downstream AWS commands work successfully