Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Bitbucket runner does not work with AWS EC2 Instance Iam Role credentials

After following the deployment instruction for Bitbucket Runner on an AWS EC2 instance I can't get the pipeline to access the instance role. 

I tried setting up the credential file inside the container using:


 This works inside the bitbucket runner container but not the running pipeline. I imagine it's related to the fact that the instance gets these credentials from the url role/ which work in the bitbucket runner container but not the running pipeline one.

I understand that I can create a user with credentials to get around that but my infra team requires access through the instance role. 


1 answer

I have a very closely related problem and something very close to a solution but for the ability to inject an environment variable from the outer container in ECS-EC2 into the inner container running the script of a pipeline step...

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events