i am trying to execute below command from bitbucket pipeline. its throwing error to execute aws configure command.
I am looking to read AWS_ACCESS_KEY and AWS_SECRET_ACCESS_KEY from assume role .
The below command working file in mine local command prompt.
- CRED =$(AWS STS assume-role --ROLE-ARN ARN:AWS:IAM::xxxx:role/assume-role --role-session-name "RoleSession1" --query 'Credentials.[AccessKeyId,SecretAccessKey,SessionToken]' --output text)
- export AWS_ACCESS_KEY_ID=${CRED[1]}
- export AWS_SECRET_ACCESS_KEY=${CRED[2]}
- export AWS_SESSION_TOKEN=${CRED[3]}
Below error in pipeline while executing above commands-
How can i execute above commands from bitbucket pipeline.
Hi Manish,
Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you! Welcome to the Atlassian Community!
You mentioned that: "Below error in pipeline while executing above commands"
Can you please share with us, what's the error you receive in Pipelines while you execute the command? That'll help us troubleshooting your issue.
We're looking forward to hear from you.
Best Regards,
Norbert
Atlassian Bitbucket Cloud Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.