-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64137e5
commit f985ebc
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Continuous Deployment with AWS | ||
|
||
This document explains how to set up Continuous Deployment (CD) with AWS using GitHub Actions. | ||
|
||
## Prerequisites | ||
|
||
Before you start, make sure you have the following: | ||
|
||
1. **AWS Account**: You need an AWS account. Sign up [here](https://aws.amazon.com/). | ||
|
||
2. **Amazon ECR (Elastic Container Registry) Setup**: | ||
- Create a new repository in Amazon ECR. | ||
- Note down the repository URI, which will be used in the GitHub Actions workflow. | ||
|
||
3. **AWS Credentials**: | ||
- AWS Access Key ID | ||
- AWS Secret Access Key | ||
- These credentials should have permissions to interact with ECR and ECS. | ||
|
||
4. **GitHub Repository Setup**: | ||
- Secrets: Add the following secrets to your GitHub repository: | ||
- `AWS_ACCESS_KEY_ID`: Your AWS Access Key ID. | ||
- `AWS_SECRET_ACCESS_KEY`: Your AWS Secret Access Key. | ||
- Variables: Add the following variables to your GitHub repository: | ||
- `AWS_REGION`: The region where your ECR and ECS are set up (e.g., `us-east-1`). | ||
- `ECR_REPOSITORY`: The name of your ECR repository. | ||
- `ECS_TASK_DEFINITION`: The ARN of your ECS task definition. | ||
- `ECS_TASK_DEFINITION_PATH`: The path to your ECS task definition file. | ||
- `CONTAINER_NAME`: The name of the container defined in your ECS task definition. | ||
- `ECS_SERVICE`: The name of your ECS service. | ||
- `ECS_CLUSTER`: The name of your ECS cluster. |