This project demonstrates how to automate the deployment of AWS resources using AWS CloudFormation and GitHub. The project includes a CloudFormation template and a deployment pipeline that automatically deploys the template when changes are pushed to the GitHub repository.
Before you can deploy this project, you need to have the following prerequisites:
- An AWS account with the necessary permissions to create AWS resources
- The AWS CLI installed on your local machine
- A GitHub account with a repository to store the CloudFormation template and deployment pipeline code
- The AWS CodePipeline GitHub App installed on your GitHub account
-
To deploy this project, follow these steps:
-
Clone this repository to your local machine:
$ git clone https://github.com/<your-github-username>/cloudformation-automation.git
-
Modify the CloudFormation template ('template.yaml') to suit your needs.
This template creates an Amazon S3 bucket and an Amazon DynamoDB table. -
Commit and push your changes to the GitHub repository:
$ git add template.yaml
$ git commit -m "Update CloudFormation template"
$ git push
-
Wait for the AWS CodePipeline deployment to complete. This will automatically create the CloudFormation stack based on the updated template.
-
Verify that the resources were created as expected by checking the AWS Management Console or using the AWS CLI.
This project demonstrates how to automate the deployment of AWS resources using AWS CloudFormation and GitHub.
By following the steps above, you can easily modify and deploy your own CloudFormation templates using GitHub and AWS CodePipeline.