Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevden01/terraform-aws-codebuild-cicd-pipeline
A demonstration of configuring a CI/CD pipeline using AWS CodeBuild and Terraform for infrastructure as code.
https://github.com/kevden01/terraform-aws-codebuild-cicd-pipeline
aws cicd codebuild terraform
Last synced: 1 day ago
JSON representation
A demonstration of configuring a CI/CD pipeline using AWS CodeBuild and Terraform for infrastructure as code.
- Host: GitHub
- URL: https://github.com/kevden01/terraform-aws-codebuild-cicd-pipeline
- Owner: KevDen01
- Created: 2024-11-25T08:24:55.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-26T14:07:00.000Z (3 months ago)
- Last Synced: 2024-12-16T20:53:55.957Z (about 2 months ago)
- Topics: aws, cicd, codebuild, terraform
- Language: HCL
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS CodeBuild CI/CD Pipeline with Terraform
This project demonstrates the configuration of a Continuous Integration and Continuous Deployment (CI/CD) pipeline using AWS CodeBuild and Terraform.
## Project Structure
- `main.tf`: Contains the main Terraform configuration.
- `variables.tf`: Defines the input variables for Terraform.
- `outputs.tf`: Specifies the outputs of the Terraform configuration.
- `buildspec.yml`: Defines the build commands and settings for AWS CodeBuild.
- `README.md`: Project documentation.## Prerequisites
- AWS account with appropriate permissions.
- Terraform installed on your local machine.
- AWS CLI configured with your credentials.
- Basic understanding of AWS CodeBuild and Terraform.## Setup Instructions
1. **Clone the Repository:**
```bash
git clone https://github.com/KevDen01/Terraform-AWS-CodeBuild-CICD-Pipeline.git
cd Terraform-AWS-CodeBuild-CICD-Pipeline
```2. **Initialize Terraform:**
```bash
terraform init
```3. **Review and Apply the Terraform Configuration:**
- **Plan the Deployment:**
```bash
terraform plan
```- **Apply the Configuration:**
```bash
terraform apply
```*Note: Review the plan output carefully before applying.*
4. **Configure AWS CodeBuild:**
- Ensure that the `buildspec.yml` file is correctly set up to define the build commands and settings for your project.
5. **Trigger the Build:**
- Initiate a build in AWS CodeBuild to start the CI/CD pipeline.
## Application Usage
- **Monitoring Builds:**
- Navigate to the AWS CodeBuild console to monitor the status of your builds.
- **Managing Infrastructure:**
- Use Terraform commands to manage and update your infrastructure as code.
## Contributing
Contributions are welcome! Please fork the repository and submit a pull request.