Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DOCKER_SERVER=$(aws ecr get-authorization-token --query 'authorizationData[].proxyEndpoint' --output text)
- DOCKER_PASSWORD=$(aws ecr get-authorization-token --query 'authorizationData[].authorizationToken' --output text | base64 -D | cut -d: -f2)
- kubectl create secret docker-registry ecrcreds \
- --docker-server=$DOCKER_SERVER \
- --docker-username=AWS \
- --docker-password=$DOCKER_PASSWORD \
- --docker-email=none
Add Comment
Please, Sign In to add comment