mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-13 01:00:50 -04:00
This example demonstrates both creating a network architecture *and* the use of data resources to minimize the number of variables needed for a child module by discovering additional data automatically.
12 lines
643 B
Markdown
12 lines
643 B
Markdown
# AWS Networking Example
|
|
|
|
This example creates AWS VPC resources, making a VPC in each of two regions and
|
|
then two subnets in each VPC in two different availability zones.
|
|
|
|
This example also demonstrates the use of modules to create several copies of
|
|
the same resource set with different arguments. The child modules in this
|
|
directory are:
|
|
|
|
* `region`: container module for all of the network resources within a region. This is instantiated once per region.
|
|
* `subnet`: represents a subnet within a given availability zone. This is instantiated twice per region, using the first two availability zones supported within the target AWS account.
|