Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rbalahadia/reusable-aws-terraform-script
This is a reusable terraform script for creating an entire AWS infrastructure.
https://github.com/rbalahadia/reusable-aws-terraform-script
terraform
Last synced: about 2 months ago
JSON representation
This is a reusable terraform script for creating an entire AWS infrastructure.
- Host: GitHub
- URL: https://github.com/rbalahadia/reusable-aws-terraform-script
- Owner: rbalahadia
- License: gpl-3.0
- Created: 2024-07-02T03:49:01.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T04:11:48.000Z (5 months ago)
- Last Synced: 2024-08-29T07:23:07.584Z (4 months ago)
- Topics: terraform
- Language: HCL
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reusable-AWS-terraform-script
This is a reusable **terraform** script for creating an entire **AWS** infrastructure.Only need to add values in **main.tf** for the dynamic changes in the infrastructure.
_Versions:_
Terraform version : **v1.9.4**
AWS module version : **v5.62.0**_Services included in this re-usable terraform._
1. VPC
a. 2 Private subnets
b. 2 Public subnets
c. 1 Internet gateway
d. 1 NAT gateway
2. EC2 instance/s (number of instance depends on count)
a. Security group
b. userdata
3. Application Load Balancer
a. Security group
4. Target groups
5. Web Application Firewall
6. Cloudfront_steps to run/apply the TF:_
1. Clone the repository.
2. Make sure you have terraform 1.9.4 in your local
3. Update main.tf to your desired parameters of your infra( name, region, etc.)
4. EXPORT AWS_ACCESS_KEY_ID="xxxxxxxx"
5. EXPORT AWS_SECRET_ACCESS_KEY="xxxxxxxx"
6. Run terraform init
7. Run terraform plan
8. Run terraform apply
9. Congratulations! you should see your new Infra in your AWS account.**_Feel free to clone this repository as basis for your own terraform :)_ **
Created by: Russell Balahadia