This project demonstrates the deployment of EC2 instances on AWS using Terraform and GitHub Actions. It includes a CI/CD pipeline for secure and automated infrastructure provisioning.
- AWS (Amazon Web Services)
- Terraform
- GitHub Actions
- Automated validation and deployment of Terraform code
- Secure handling of AWS credentials using GitHub Secrets
- Real-world deployment of EC2 instances
- AWS Account
- GitHub Account
- Click on Settings
- In the left sidebar, click Secrets and variables, then click Actions
- Click New repository secret and add the following:
- Name: AWS_ACCESS_KEY_ID and Enter the value
- Name: AWS_SECRET_ACCESS_KEY and Enter the value
- Clone the repository:
git clone https://github.com/rajiv-njit/aws-terraform-ec2-CI-CD-deployment.git
- Navigate to the directory:
cd aws-terraform-ec2-CI-CD-deployment
- Follow the instructions in the
deploy.yml
file for setting up GitHub Actions and storing your AWS credentials in GitHub Secrets.
Feel free to submit issues or pull requests. Contributions are welcome!