Skip to content

Latest commit

 

History

History

2-modules

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Terraform infrastructure with modules example

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

Requirements

Name Version
aws 4.27.0

Providers

Name Version
aws 4.27.0

Modules

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

Resources

Name Type
aws_ami.ubuntu data source

Inputs

No inputs.

Outputs

No outputs.