You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a basic custom VPC with a single Private and Public Subnet, loaded with an Internet and NAT Gateway using Terraform Script (infrastructure as code), Also Setup private and public routes and a security group to allow ipV4 traffic on port 22 & 80. Further Provision and launch the static website running on the private EC2 instance using Elastic Load Balancer DNS name.
VPC cidr IpV4 Class A CIRD (Classless interdomain routing)
# VPC IP range :
10.0.0.0/26
64 IPs
# Public Subnet cidr :
10.0.0.0/28
16 - 5 (11) IPs
# Private Subnet cidr :
10.0.0.16/28
16 - 5 (11)
private_key name : ssh1.pem
- file("~/.ssh/ssh1.pem")
Terraform Commands
# First command to run for a new configuration
terraform init
> terraform fmt
> terraform validate
> terraform apply
> terraform destroy
Make a basic custom VPC with a single Private & Public Subnet, loaded with Internet & NAT Gateway using Terraform Script (infrastructure as code), Setup private and public routes and security group to allow ipV4 traffic on port 22 & 80. Further Provision and launch the static website running on the private EC2 instance using Elastic Load Balance…