AWS Elastic Container Registry

9
Amazon Web Services Elastic Container Registry AWS ECR FTW

Transcript of AWS Elastic Container Registry

Page 1: AWS Elastic Container Registry

Amazon Web Services Elastic Container RegistryAWS ECR FTW

Page 2: AWS Elastic Container Registry

Who am I?• Richard Wilson Boyd II but just call me Rich• Senior DevOps Engineer at Civitas• https://github.com/richardboydii/• @richardboydii• Likes: my family, good beer, animals cooked

expertly, automation, learning new things• Dislikes: a**holes, manual processes,

stagnant engineering organizations

Page 3: AWS Elastic Container Registry

What is it?• Amazon’s version of a Docker Registry• Supports the Docker Registry HTTP API V2• Full support for Docker CLI commands

Page 4: AWS Elastic Container Registry

Service Basics• Each AWS Account has a default Registry (each account only gets one for now)• The Registry contains Repositories• Repositories are unique namespaces for images governed by their own access controls

Page 5: AWS Elastic Container Registry

Why is it special?• Ability to interact outside of the Docker CLI using the AWS CLI and SDKs• Highly available and no need to maintain individual instances• Logins generated on demand and with limited session lengths•Repositories can be locked down using IAM policies for more granular control

Page 6: AWS Elastic Container Registry

Why is it special? (cont’d)• Images can be shared between AWS accounts •Images are transmitted over HTTPS• When at rest the images are automatically encrypted and stored in S3• Third party integrations (in development)

Page 7: AWS Elastic Container Registry

Service LimitsResource Limits

Max Repositories per Account 1,000

Max Images per Repository 500

Max Number of Layers Per Image 127 (Current Docker Limit)

Max Layer Part Size 10 MiB

Min Layer Part Size 5 MiB

Max Number of Layer Parts 1,000

Page 8: AWS Elastic Container Registry

ECR Demo: Command Line• aws ecr get-login: Generates full login string with temporary credentials for the registry.• aws ecr describe-repositories: List all repositories in the registry.• aws ecr list-images --repository-name XXXX: List all images in a repository.• aws ecr get-authorization-token: Query the AWS token service for a token.

Page 9: AWS Elastic Container Registry

ECR Demo: GitHub Build Using AWS Services

?https://github.com/richardboydii/ecrdemo