Project to IAC. The idea is construct a complete IAC with CI/DI. But, now, I started by AWS. :D
Gradually, other providers will be added until the complete creation of a CI/DI.
This code create a small and complete infrastructure in AWS to a web server. It create:
- VPC and public/private subnets
- Security Groups
- Instances (You choose the number of instances)
- Load Balance
After creates all infrastructure, it do a upload of a files in webserver to view a some information about the instances created. This files are here.
The main files are:
-
- Configure the provider and region of infrastructure
-
Variables used to facility the view and modification. Here choose region of AWS, number of instances to create, base name to services, AZ's and IP's to public/private subnets.
-
Virtual Private Cloud. Create and configure the network, internet gateway, private/public subnet and route table to be used by the services.
-
Infrastructure security groups . Allow rules to access the instances and others services.
-
Create a load balance and attach instances it.
-
Show information from services such as instance_dns.