You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`paused` - (Optional) State of the online archive. This is required for pausing an active online archive or resuming a paused online archive. If the collection has another active online archive, the resume request fails.
118
118
*`sync_creation` - (Optional) Flag that indicates whether the provider will wait for the state of the online archive to reach `IDLE` or `ACTIVE` when creating an online archive. Defaults to `false`.
119
119
*`timeouts`- (Optional) The duration of time to wait for Online Archive to be created. The timeout value is defined by a signed sequence of decimal numbers with a time unit suffix such as: `1h45m`, `300s`, `10m`, etc. The valid time units are: `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. The default timeout for Online Archive create is `3h`. Learn more about timeouts [here](https://www.terraform.io/plugin/sdkv2/resources/retries-and-customizable-timeouts).
120
+
*`delete_on_create_timeout`- (Optional) Flag that indicates whether to delete the resource if creation times out. Default is `true`. When Terraform apply fails, it returns immediately without waiting for cleanup to complete. If you suspect a transient error, wait before retrying to allow resource deletion to finish.
Timeout: d.Timeout(schema.TimeoutCreate) -time.Minute, // When using a CRUD function with a timeout, any StateChangeConf timeouts must be configured below that duration to avoid returning the SDK context: deadline exceeded error instead of the retry logic error.
247
-
MinTimeout: 1*time.Minute,
248
-
Delay: 3*time.Minute,
253
+
Timeout: d.Timeout(schema.TimeoutCreate) -oneMinute, // When using a CRUD function with a timeout, any StateChangeConf timeouts must be configured below that duration to avoid returning the SDK context: deadline exceeded error instead of the retry logic error.
254
+
MinTimeout: oneMinute,
255
+
Delay: oneMinute,
249
256
}
250
257
251
258
// Wait, catching any errors
252
-
_, err:=stateConf.WaitForStateContext(ctx)
253
-
iferr!=nil {
254
-
returndiag.FromErr(fmt.Errorf("error updating the online archive status %s for cluster %s", clusterName, archiveID))
259
+
_, errWait:=stateConf.WaitForStateContext(ctx)
260
+
deleteOnCreateTimeout:=true// default value when not set
261
+
ifv, ok:=d.GetOkExists("delete_on_create_timeout"); ok {
0 commit comments