These terraform modules provide basic infrastructure in AWS environment.
- Creation of VPC
- Enable DNS hostnames
- Enable DNS support
- Creation of public and private subnets
- Creation of public and private subnet route table
- Assocation of subnets to route tables
- Creation of internet gateway
- Association of internet gateway with vpc
- Creation of Elastic IPs
- Creation of NAT gateways
- Allocation of Elastic IPs to NAT Gateways
- Association of NAT Gateways with public subnets
- Creation of security groups
- Creation of security group rules with CIDR block as input
- Creation of security group rules with security group IDs as input
- Association of security group rules with security groups
- Creation of Instances
- Specification of root volume details
- Attachment of additional volume to instance
- Associating VPC and subnet in which instance need to be created
- Adding user data file to execute at initial launch of instance/server
- Associationg key file to access server via SSH
- Associating security group in which this instance need to be under
- Importing of certificates from local to ACM
- Creation of Elastic Load Balancer
- Assigning of multiple subnets to ELB
- Assigning of security groups
- Associating instances for load balancing
- Configuration of listener ports and protocols
- Assigning health check parameters
- Specification of Load Balancer type
- Specification of Load Balancer usage
- Creation of Load Balancer
- Assigning of multiple subnets to NLB
- Assigning of multiple security groups to ALB
- Creation of Target Group
- Specify the target type, instance ID or ip
- Specify the port on which targets receive traffic, Required when target_type is instance or ip
- Specify the protocol to use for routing traffic to the targets, Required when target_type is instance or ip
- Associating VPC
- Configuring health check parameters
- Creation of Load Balancer Listener with port 80 and and forwarding to a Target Group
- Creation of Load Balancer Listener with port 443, asssociatig a SSL certificate from AMC and forwarding to a Target Group
- Association of created Listerners to Load Balancers
- Creation of a Launch Configuration template
- Specify the AMI ID
- Specify instance type
- Adding user data file to execute at initial launch of instance/server
- Associating key file to access server via SSH
- Associating security group in which this instances need to be under
- Creation of Autoscaling Group
- Association of launch configuration template
- Specify desired capacity of servers need to be available
- Association of availability zones or association of subnets to specify availability zones
- Specify maximum size of scaling capacity
- Specify minimum size of scaling capacity
- Association of load balancer with autoscaling group (only in Classic load balancer [ELB])
- Association of load balancer with Target Groups (only in Classic load balancer [NLB/ALB])
NOTE: Using the resource tags
functionality we can audit, track and manage resources.
terraform output -json > output_values.json
terraform output > output_values.txt
Originally created and maintained by RUDRA LAKSHMI PHANINDRA