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
The configuration below must go under spinnakerConfig.config.providers
,
as explained in Connect Docker Registries.
apiVersion: spinnaker.armory.io/v1alpha2
kind: SpinnakerService
metadata:
name: spinnaker
spec:
spinnakerConfig:
config:
providers:
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 us-east-2 ecr get-authorization-token --output text --query 'authorizationData[].authorizationToken' | base64 -d | sed 's/^AWS://'"
Success! Now you can use ECR as a Docker registry in the configuration stage.
Feedback
Was this page helpful?
Thank you for letting us know!
Sorry to hear that. Please tell us how we can improve.
Last modified October 17, 2023: (aa87b671)