You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not comfortable pasting sensitive debug output anywhere at this point.
Panic Output
Expected Behavior
terraform plan should not have generated a change set
Actual Behavior
terraform plan insists on removing cidr_block. After applying, running terraform plan again will produce the same plan:
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# tencentcloud_security_group_rule_set.security-group-rule-set will be updated in-place
~ resource "tencentcloud_security_group_rule_set" "security-group-rule-set" {
id = "sg-xxxxxx"
# (2 unchanged attributes hidden)
~ egress {
- cidr_block = "0.0.0.0/0" -> null
# (11 unchanged attributes hidden)
}
~ ingress {
- cidr_block = "0.0.0.0/0" -> null
# (11 unchanged attributes hidden)
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
To fix the issue, cidr_block = "0.0.0.0/0" must be defined.
Steps to Reproduce
Define a security group rule set that omits cidr_block
terraform plan
terraform apply
terraform plan again
Important Factoids
References
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: