There seems to be an issue when you try to create an Access Policy because one exist with "parent" already. I know you can create multiple policies in the Google Console no problem but it seem terraform doesn't allow it?
Expected behavior
Using the module I expect a new access policy to be created.
Observed behavior
│ Error: Error creating AccessPolicy: googleapi: Error 409: Policy already exists with parent organizations/*48148867***
│
│ with module.vpc-service-controls_example_simple_example_access_level.module.access_context_manager_policy.google_access_context_manager_access_policy.access_policy,
│ on .terraform/modules/vpc-service-controls_example_simple_example_access_level/main.tf line 17, in resource "google_access_context_manager_access_policy" "access_policy":
│ 17: resource "google_access_context_manager_access_policy" "access_policy" {
TL;DR
There seems to be an issue when you try to create an Access Policy because one exist with "parent" already. I know you can create multiple policies in the Google Console no problem but it seem terraform doesn't allow it?
Expected behavior
Using the module I expect a new access policy to be created.
Observed behavior
│ Error: Error creating AccessPolicy: googleapi: Error 409: Policy already exists with parent organizations/*48148867*** │ │ with module.vpc-service-controls_example_simple_example_access_level.module.access_context_manager_policy.google_access_context_manager_access_policy.access_policy, │ on .terraform/modules/vpc-service-controls_example_simple_example_access_level/main.tf line 17, in resource "google_access_context_manager_access_policy" "access_policy": │ 17: resource "google_access_context_manager_access_policy" "access_policy" {
Terraform Configuration
Terraform Version
Additional information
Seeing the same error when using https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/access_context_manager_access_policy