Closed balaji2711996 closed 1 year ago
@balaji2711996 are you able to hard-code the resource and repro the issue? Please share the hard-coded config
for eg, data.terraform_remote_state.vpc_qa.outputs.env_vpc_subnets list has below subnets. And correspondingly for all other data blocks as well
env_vpc_subnets = [ "projects/projectA/regions/us-east4/subnetworks/tt-sub-cicd-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-core-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-core-qa-loadbalancers", "projects/projectA/regions/us-east4/subnetworks/tt-sub-dataanalytics-qa-composernodes", "projects/projectA/regions/us-east4/subnetworks/tt-sub-dataanalytics-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-dataanalytics-qa-loadbalancers", "projects/projectA/regions/us-east4/subnetworks/tt-sub-dataservices-qa-composernodes", "projects/projectA/regions/us-east4/subnetworks/tt-sub-dataservices-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-inboundconverter-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-inboundconverter-qa-dataflow", "projects/projectA/regions/us-east4/subnetworks/tt-sub-infraservices-qa-infra", "projects/projectA/regions/us-east4/subnetworks/tt-sub-infraservices-qa-lb-proxy", "projects/projectA/regions/us-east4/subnetworks/tt-sub-infraservices-qa-vpc-serverless", "projects/projectA/regions/us-east4/subnetworks/tt-sub-integrationcenter-qa-composernodes", "projects/projectA/regions/us-east4/subnetworks/tt-sub-integrationcenter-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-integrationcenter-qa-loadbalancers", "projects/projectA/regions/us-east4/subnetworks/tt-sub-leadservices-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-leadservices-qa-loadbalancers", "projects/projectA/regions/us-east4/subnetworks/tt-sub-messagingservices-qa-composernodes", "projects/projectA/regions/us-east4/subnetworks/tt-sub-messagingservices-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-messagingservices-qa-loadbalancers", "projects/projectA/regions/us-east4/subnetworks/tt-sub-namecenter-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-priorityengine-qa-composernodes", "projects/projectA/regions/us-east4/subnetworks/tt-sub-priorityengine-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-priorityengine-qa-loadbalancers", "projects/projectA/regions/us-east4/subnetworks/tt-sub-productinnovation-qa-composernodes", "projects/projectA/regions/us-east4/subnetworks/tt-sub-productinnovation-qa-compute", "projects/projectA/regions/us-east4/subnetworks/tt-sub-productinnovation-qa-loadbalancers", ]
@balaji2711996 this doesn't work for me. Can you replace all variables and dynamic code in the config and provide the detail steps so I can repro?
@balaji2711996 closing this assuming this is no longer an issue
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
We are using google_folder_organization_policy resource with constraints for shared vpc. We are allowing a list of subnets through data block. The data block has list of subnets which needs to allowed from this constraint. Though one of the subnet is present in the data block (list), the plan shows that the subnet to be removed from the policy allow list.
plan : - >
google_folder_organization_policy.shared_vpc_subnets["dataanalytics"] will be updated in-place
~ resource "google_folder_organization_policy" "shared_vpc_subnets" { id = "folders/projectID/compute.restrictSharedVpcSubnetworks"
(5 unchanged attributes hidden)
google_folder_organization_policy.shared_vpc_subnets["dataservices"] will be updated in-place
~ resource "google_folder_organization_policy" "shared_vpc_subnets" { id = "folders/283009904173/constraints/compute.restrictSharedVpcSubnetworks"
(5 unchanged attributes hidden)