add retry
ptone opened this issue · 1 comments
Perhaps retry helper could be used to deal with this transient issue on new projects:
https://www.terraform.io/docs/extend/resources/retries-and-customizable-timeouts.html#retry
Error: Error creating Topic: googleapi: Error 400: The topic projects/tf-test4-0aa6/topics/repo-events cannot be created or updated due to an organization policy specified at the project or organization level. The organization policy does not allow message storage in any GCP region where Cloud Pub/Sub is present. The organization policy may be updated by your project or organization administrator. See https://console.cloud.google.com/iam-admin/orgpolicies/gcp-resourceLocations?project=tf-test4-0aa6. If the topic's project was recently created, you may need to wait a few minutes for the project's organization policy to be properly initialized, and then retry this operation.
Applying the same main.tf a moment later worked
@ptone Could you open an upstream issue on the Terraform provider? That's where the retry will need to be added.