Connect Spinnaker to Amazon Elastic Container Registry

Learn how to configure Spinnaker to connect to AWS ECR.

Adding ECR as a Docker registry

When configuring a registry, you normally use standard SpinnakerService configuration when using the Operator.

Update your Spinnaker installation

dockerRegistry:
  enabled: true
  primaryAccount: dockerhub
  accounts:
  - name: dockerhub
    requiredGroupMembership:
    providerVersion: V1
    address: 012345678910.dkr.ecr.us-east-1.amazonaws.com
    username: AWS 
    passwordCommand: "aws --region ue-east-2ecr get-authorization-token --output text --query 'authorizationData[].authorizationToken' | base64 -d | sed 's/^AWS://"

Success! Now you will be able to use ECR as a Docker registry in the configuration stage.


Last modified July 20, 2022: (83f09a79)