Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to use account variable values in the image name value for a bitbucket-pipelines.yml?

I'm using a private image hosted via AWS ECR.

As can be seen at that link, the syntax for doing so involves setting an `` value in bitbucket-pipelines.yml ...

  name: <aws_account_id>.dkr.ecr.<region>
    access-key: $AWS_ACCESS_KEY
    secret-key: $AWS_SECRET_KEY

I would like to know whether it is possible to use an account variable value to define parts of the `` URI. For example, it would be nice to be able to set $AWS_ACCOUNT_ID, such that someone forking my repo could set their own value, and use my config as-is.

I've tried doing so, but as soon as I push the commit, I get feedback indicating that my config is invalid.

I've tried both of the following using no quotes, single quotes, and double quotes:


All of these variants show as valid using your online validation tool.

If this is not currently possible, would you consider making it so?

1 answer

1 accepted

0 votes
Answer accepted
Peter Plewa Atlassian Team Jan 05, 2020

Hi @RH Becker 

Unfortunately it is not possible at the moment. There is a support request that you can vote on and follow to get updates on this issue.


Hey Peter, any news on this? People have been voting since 2016 still no updates whatsoever

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

4,342 views 12 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you