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
* remove logs
* use WithoutTimeout funcs
* timeouts
* delete_on_create_timeout
* changelog
* more generic doc so can be used for any resource
* rename to errWait
* TestAccNetworkNetworkPeering_timeouts
* change doc
* add clarification
* also change error message
* fix TestAccNetworkRSNetworkPeering_Azure
* don't use default
* Revert "fix TestAccNetworkRSNetworkPeering_Azure"
This reverts commit ca9f4e0.
* no need to exclude delete_on_create_timeout in import if Default is not used
* use d.GetOkExists to distinguish empty from zero (false) value
* Update .changelog/3515.txt
Co-authored-by: Javier Armendáriz <[email protected]>
* Update internal/common/cleanup/handle_timeout.go
Co-authored-by: Javier Armendáriz <[email protected]>
* improve changelog
* use new context in cleanup
---------
Co-authored-by: Javier Armendáriz <[email protected]>
*`project_id` - (Required) The unique ID for the MongoDB Atlas project.
331
331
*`container_id` - (Required) Unique identifier of the MongoDB Atlas container for the provider (GCP) or provider/region (AWS, AZURE). You can create an MongoDB Atlas container using the network_container resource or it can be obtained from the cluster returned values if a cluster has been created before the first container.
332
332
*`provider_name` - (Required) Cloud provider to whom the peering connection is being made. (Possible Values `AWS`, `AZURE`, `GCP`).
333
+
*`timeouts`- (Optional) The duration of time to wait for the resource to be created, updated, or deleted. The default timeout is `1h`. 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`. Learn more about timeouts [here](https://www.terraform.io/plugin/sdkv2/resources/retries-and-customizable-timeouts).
334
+
*`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.
returnerrors.Join(errWait, errors.New("cleanup won't be run because delete_on_create_timeout is false"))
26
+
}
27
+
errWait=errors.Join(errWait, errors.New("will run cleanup because delete_on_create_timeout is true. If you suspect a transient error, wait before retrying to allow resource deletion to finish"))
28
+
// cleanup uses a new context as existing one is expired.
0 commit comments