You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.