This code shows an example of monolith Terraform architecture that using separate modules as a building blocks.
This pattern allows us to make reusable infrastructure that pretty simple to scale up, as showed for ec2 module.
Deploys several EC2 instances in two AZs into newly created VPC.
Things to consider:
- easily to start and deploy, good for prototyping
- same drawbacks as for monolith repository
Name | Version |
---|---|
aws | 4.27.0 |
Name | Version |
---|---|
aws | 4.27.0 |
Name | Source | Version |
---|---|---|
ec2-az1 | ../modules/aws-ec2-instance | n/a |
ec2-az2 | ../modules/aws-ec2-instance | n/a |
vpc | ../modules/aws-vpc | n/a |
Name | Type |
---|---|
aws_ami.ubuntu | data source |
No inputs.
No outputs.