-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google_cloudiot_registry: creation fails with transient 403 #3007
Comments
…icorp#3007) Signed-off-by: Modular Magician <[email protected]>
… (#5562) Signed-off-by: Modular Magician <[email protected]>
@drigz it seems to be fine with me for creating resource "google_pubsub_topic" "default-devicestatus" {
name = "default-devicestatus"
}
resource "google_pubsub_topic" "default-telemetry" {
name = "default-telemetry"
}
resource "google_cloudiot_registry" "default-registry" {
name = "default-registry"
event_notification_configs {
pubsub_topic_name = google_pubsub_topic.default-telemetry.id
}
state_notification_config = {
pubsub_topic_name = google_pubsub_topic.default-devicestatus.id
}
http_config = {
http_enabled_state = "HTTP_ENABLED"
}
mqtt_config = {
mqtt_enabled_state = "MQTT_ENABLED"
}
credentials {
public_key_certificate = {
format = "X509_CERTIFICATE_PEM"
certificate = file("rsa_cert.pem")
}
}
} |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform Version
Terraform v0.11.7
Affected Resource(s)
Expected Behavior
Resource created successfully, even if Terraform just created the project.
Actual Behavior
Terraform fails to create the resource:
When I run Terraform a second time, it successfully creates the registry.
Steps to Reproduce
I don't have a minimal Terraform config, sorry, but I you can reproduce the 403 with gcloud:
Important Factoids
Cloud Pub/Sub has a different failure mode when a topic is created shortly after project creation:
This corresponds to a 412 Precondition Failed error, so Terraform retries until the policy is initialized and it works. However, Terraform doesn't retry 403 errors.
Should
resourceCloudIoTRegistryCreate
convert the 403 to a 412?The text was updated successfully, but these errors were encountered: