Open Jalle19 opened 2 days ago
Because cidr_block
default value is read, but cidr_block
is not computed. One of cidr_block
、ipv6_cidr_block
、source_security_id
and address_template_*
must be set.
Okay, in that case the documentation could be improved:
NOTE: cidr_block, ipv6_cidr_block, source_security_id and addresstemplate* are exclusive and cannot be set in the same time.
I got the impression that none is required, only that they're mutually exclusive.
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
I'm not comfortable pasting sensitive debug output anywhere at this point.
Panic Output
Expected Behavior
terraform plan
should not have generated a change setActual Behavior
terraform plan
insists on removingcidr_block
. After applying, runningterraform plan
again will produce the same plan:To fix the issue,
cidr_block = "0.0.0.0/0"
must be defined.Steps to Reproduce
cidr_block
terraform plan
terraform apply
terraform plan
againImportant Factoids
References