Skip to content

Commit e73c0eb

Browse files
committed
chore: Add notes/docs based on PR review
1 parent 14f3500 commit e73c0eb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ module "vpc" {
2727
}
2828
```
2929

30+
> [!WARNING]
31+
> v6.x of the module still supports creating a VPC Flow Log within the root (VPC) module. However, this is deprecated behavior and will be removed in v7.0.0. Please use the [standalone flow log](https://github.com/terraform-aws-modules/terraform-aws-vpc/tree/master/modules/flow-log) module instead.
32+
3033
## External NAT Gateway IPs
3134

3235
By default this module will provision new Elastic IPs for the VPC's NAT Gateways.
@@ -116,6 +119,20 @@ If you need private subnets that should have no Internet routing (in the sense o
116119

117120
Since AWS Lambda functions allocate Elastic Network Interfaces in proportion to the traffic received ([read more](https://docs.aws.amazon.com/lambda/latest/dg/vpc.html)), it can be useful to allocate a large private subnet for such allocations, while keeping the traffic they generate entirely internal to the VPC.
118121

122+
## Conditional creation
123+
124+
Prior to Terraform 0.13, you were unable to specify `count` in a module block. If you wish to toggle the creation of the module's resources in an older (pre 0.13) version of Terraform, you can use the `create_vpc` argument.
125+
126+
```hcl
127+
# This VPC will not be created
128+
module "vpc" {
129+
source = "terraform-aws-modules/vpc/aws"
130+
131+
create_vpc = false
132+
# ... omitted
133+
}
134+
```
135+
119136
## Public access to RDS instances
120137

121138
Sometimes it is handy to have public access to RDS instances (it is not recommended for production) by specifying these arguments:

0 commit comments

Comments
 (0)