-
Navigate to AWS ECR and create private repository in same region as Code Build.
- Repo name: "hello-world"
-
Naviage to AWS Console -> CodeBuild -> Create vuild project
- Provide "Project name" with "Description"
- Connect this public github repository
- Choose "Environment Image" as "Managed Image"
- "Operating System" -> "Amazon Linux 2"
- "Runtime(s)" -> "Standard"
- "Image" -> "aws/codebuild/amazonlinux2-x86_64-standard:3.0"
- "Privileged" -> "Enable the toggle" # Because we build a docker image, we need this enabled.
- "Service role" -> "New service role"
- "Role name" -> "choose your own name. Eg: poc-codepipeline-ecs-integration"
- Note: This new role will not have ECR permissions. so, you should add it manually.
- "Build specifications" -> "Use a buildspec file"
- Leave everything else blank (optional) and then "Create build project"
-
Select "Build project" -> Start build -> Check status -> Success? or Failed?
- Failed -> what is the error? not authorized? then fix IAM 1. "retry build" after fixing the errors
- Success -> Navigate to ECR and validate if repository "hello-world" have "latest" image tag
-
How to deploy this to ECS?
- Navigate to ECS Cluster
- Create Task Definition name "hello-world" with hello-world as image
- Create a Service with name "hello-world" in ECS Cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Cjcascade/codepipeline-with-ecs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
CodePipeline integration with ECS - POC
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published