Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use AWS OIDC to pull global images from ECR

agung wibowo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 23, 2025

I see this example in bitbucket pipelines documentation that say we can use oidc-role 
https://support.atlassian.com/bitbucket-cloud/docs/docker-image-options/#OIDC-roles 
but currently my pipeline always failed to pull my private image in ECR the error say 

Error

Unable to fetch step. Refer to the Troubleshooting runners document for help resolving the issue.

 

export: true

image:

  name: amazonaws.com/image:latest

  aws:

    oidc-role: $AWS_ROLE

clone:

  depth: full

  steps:

    - step: &hello-step

        name: "Hello"

        services: [docker]

        oidc: true

        script:

        - |

          echo "Hello"

definitions:

  pipelines:

    pull-requests:

      - step:

          <<: *hello-step

          runs-on:

            - 'self.hosted'

            - 'hosted-runner'

  services:

    docker:

      memory: 1024

      type: docker

options:

  docker: true


for context I am using this pipeline as import pipeline, previously I am using AWS key in global image and oidc in other step its works fine, the error happen when I am trying to use oidc also on global image
  

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events