-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final test version pushing with readme
- Loading branch information
1 parent
940e9e1
commit 7306b11
Showing
13 changed files
with
74 additions
and
16 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 |
---|---|---|
|
@@ -31,4 +31,6 @@ override.tf.json | |
|
||
# Ignore CLI configuration files | ||
.terraformrc | ||
terraform.rc | ||
terraform.rc | ||
|
||
*.lock.hcl |
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 |
---|---|---|
@@ -1 +1,34 @@ | ||
# AWS_LB_WITH_TF_PIPELINE | ||
# Project | ||
Load Balancer in AWS | ||
|
||
# Solution Diagram | ||
![plot](./docs/soliution_diagram.drawio.png) | ||
|
||
|
||
|
||
# Tested on | ||
- Terraform version : 1.5.7 | ||
- aws provider version : 5.39.0 | ||
- AWS Free Tier | ||
|
||
# What it does | ||
1. Creates VPC , Private & Public Subnets, Creates ALB with Autoscaling | ||
2. Runs a pipeline in GitHub Actions whenever code is pushed to main branch | ||
|
||
|
||
# Output | ||
1. Tested locally and it can run automatically on GitHub Actions , didn't apply as it'll incur cost | ||
|
||
![plot](./docs/Terraform_successful_apply.png) | ||
|
||
2. Nginx Web Server running through LB | ||
|
||
![plot](./docs/NginxOnLB.png) | ||
|
||
3. Loadbalancer in AWS | ||
|
||
![plot](./docs/LOadBalancer.png) | ||
|
||
4. Desired EC2 instances running in AWS | ||
|
||
![plot](./docs/EC2_instances.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,3 @@ | ||
output "dns" { | ||
value = aws_lb.mv_lb.dns_name | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
#sudo yum update -y | ||
sudo yum install -y nginx | ||
echo "<h1>Hello from $(hostname -f)</h1>" > /var/www/html/index.html | ||
service nginx start | ||
service nginx start | ||
echo "<h1>Hello from Mahaveer's Nginx Web Server running at $(hostname -f)</h1>" > /var/www/html/index.html |
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