diff --git a/google/resource_cloudiot_registry.go b/google/resource_cloudiot_registry.go index 2f3754cef41..a7aa0d066bf 100644 --- a/google/resource_cloudiot_registry.go +++ b/google/resource_cloudiot_registry.go @@ -225,7 +225,10 @@ func resourceCloudIoTRegistryCreate(d *schema.ResourceData, meta interface{}) er registryId := fmt.Sprintf("%s/registries/%s", parent, deviceRegistry.Id) d.SetId(registryId) - _, err = config.clientCloudIoT.Projects.Locations.Registries.Create(parent, deviceRegistry).Do() + err = retryTime(func() error { + _, err := config.clientCloudIoT.Projects.Locations.Registries.Create(parent, deviceRegistry).Do() + return err + }, 5) if err != nil { d.SetId("") return err