mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-27 00:46:25 -06:00
0e3256b6f4
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.
10 lines
172 B
HCL
10 lines
172 B
HCL
variable "region" {
|
|
description = "The name of the AWS region to set up a network within"
|
|
}
|
|
|
|
variable "base_cidr_block" {}
|
|
|
|
provider "aws" {
|
|
region = "${var.region}"
|
|
}
|