Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Question
I want to create a VPC and a ACL. The ACL should be the default ACL of the VPC. How to set it?
I'd have to set a cross dependency in ibm_is_vpc and ibm_is_network_acl which causes Terraform to throw "Cycle" error.
using a static name for default_network_acl_name doesn't work too: "Provided Name (acl) is not unique"
New or Affected Resource(s) or Datasource(s)
ibm_is_vpc
ibm_is_network_acl
Potential Terraform Configuration
resource ibm_is_vpc default {
name = "vpc"
default_network_acl_name = ibm_is_network_acl.default.name
}
resource ibm_is_network_acl default {
name = "acl"
vpc = ibm_is_vpc.default.id
rules {
name = "out-any"
action = "allow"
source = "0.0.0.0/0"
destination = "0.0.0.0/0"
direction = "inbound"
}
rules {
name = "in-any"
action = "allow"
source = "0.0.0.0/0"
destination = "0.0.0.0/0"
direction = "outbound"
}
}
Community Note
Question
I want to create a VPC and a ACL. The ACL should be the default ACL of the VPC. How to set it?
I'd have to set a cross dependency in ibm_is_vpc and ibm_is_network_acl which causes Terraform to throw "Cycle" error.
using a static name for
default_network_acl_name
doesn't work too: "Provided Name (acl) is not unique"New or Affected Resource(s) or Datasource(s)
Potential Terraform Configuration
References