Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

saidsef/aws-ecr-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS ECR Push

This script will build a Dockerfile in the root directory and then will push the resulting container into AWS ECR.

Prerequisite

For this script to run successfully, you will need:

  • Amazon AWS Account - free tier
  • AWS EC2 Instance with IAM Role*
  • AWS CLI
  • Docker
  • JQ

IAM Role

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ecr:GetAuthorizationToken",
                "ecr:InitiateLayerUpload",
                "ecr:UploadLayerPart",
                "ecr:CompleteLayerUpload",
                "ecr:BatchCheckLayerAvailability",
                "ecr:PutImage"
            ],
            "Resource": "*"
        }
    ]
}

Usage

Place a Dockerfile in the root directory and then run the following command:

./ecr-push.sh <repository> <tag>

About

Push docker container to AWS ECR

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages