Skip to content

Creating an AWS Container Registry

Let's set up your AWS Container Registry! This is where we'll store the Docker image for your arcade cabinet software. Think of it like a secure storage locker for your code! 📦

What is a Container Registry? 🤔

A container registry is like a special warehouse for storing your software:

  • It keeps your Docker images safe and organized
  • Makes it easy to deploy your software to AWS
  • Helps manage different versions of your code

What's a Docker Image?

A Docker image is like a blueprint for your software. It contains everything needed to run your arcade cabinet's payment system!

Prerequisites 📋

Before starting, make sure you have:

  • Completed Basic AWS Setup
  • AWS CLI installed on your computer
  • Your IAM user access keys handy

Creating Your Registry 🔧

1. Open Amazon ECR

1. Sign in to AWS Console
2. Search for "ECR" in the services search bar
3. Click "Amazon Elastic Container Registry"

2. Create a Repository

1. Click "Create repository"
2. For repository settings:
    * Visibility: "Private"
    * Repository name: "arcade-payment-system"
    * Tag immutability: Leave disabled
    * Scan on push: Enable
3. Click "Create repository"

About Repository Name

Choose a clear, descriptive name - you might create more repositories for future projects!

3. Configure Access

Make sure your IAM user has permission to use ECR:

  1. Go to IAM service
  2. Select your "arcade-admin" user
  3. Add "AmazonEC2ContainerRegistryFullAccess" policy

Using Your Registry 🚀

View Registry Details

  1. Click your new repository
  2. Note the Registry URI - you'll need this later!
  3. Looks like: 123456789012.dkr.ecr.region.amazonaws.com/arcade-payment-system

Authentication Setup

Run these commands in your terminal:

# Configure AWS CLI with your credentials
aws configure

# Login to ECR
aws ecr get-login-password --region your-region | docker login --username AWS --password-stdin your-registry-uri

Replace Values!

  • Change your-region to your AWS region (e.g., us-west-2)
  • Change your-registry-uri to your actual registry URI

Next Steps â–¶

Your container registry is ready! Keep your Registry URI handy - you'll need it when you:

Continue to Lambda Setup → Back to Basic Setup

Troubleshooting 🔧

Common issues:

  • Permission denied? Check your IAM user permissions
  • Login failed? Verify your AWS CLI configuration
  • Can't create repository? Make sure you're in the right region

Need Help?