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
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