terraform-google-modules / terraform-google-vpc-service-controls

Handles opinionated VPC Service Controls and Access Context Manager configuration and deployments
https://registry.terraform.io/modules/terraform-google-modules/vpc-service-controls/google
Apache License 2.0
59 stars 67 forks source link

Using the example for bridge_service_perimeter module fails #25

Closed bharathkkb closed 4 years ago

bharathkkb commented 4 years ago

Using the example in readme for bridge_service_perimeter fails because bridge_service_perimeter_1 does not wait for regular_service_perimeter_1 and regular_service_perimeter_2 to be created. Error: Error: Error creating ServicePerimeter: googleapi: Error 400: A project is in a Service Perimeter Bridge but no regular Service Perimeter. Each project in a Service Perimeter Bridge must be in a regular Service Perimeter. Solutions: I was able to fix this by introducing a computed attribute as an output like create_time into the output.

aaron-lane commented 4 years ago

@bharathkkb please submit a pull request if you have a working solution!

bharathkkb commented 4 years ago

@aaron-lane sounds good