terraform/backend/remote-state
Brian Flad ed37d07632
backend/s3: Configure AWS Client MaxRetries and provide enhanced S3 NoSuchBucket error message
The AWS Go SDK automatically provides a default request retryer with exponential backoff that is invoked via setting `MaxRetries` or leaving it `nil` will default to 3. The terraform-aws-provider `config.Client()` sets `MaxRetries` to 0 unless explicitly configured above 0. Previously, we were not overriding this behavior by setting the configuration and therefore not invoking the default request retryer.

The default retryer already handles HTTP error codes above 500, including S3's InternalError response, so the extraneous handling can be removed. This will also start automatically retrying many additional cases, such as temporary networking issues or other retryable AWS service responses.

Changes:
* s3/backend: Add `max_retries` argument
* s3/backend: Enhance S3 NoSuchBucket error to include additional information
2019-01-09 13:01:37 -05:00
..
artifactory Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
azure backend/azurerm: Support for authenticating using the Azure CLI (#19465) 2018-12-10 21:23:30 +00:00
consul backend/remote-state: Get all the backend tests building again 2018-10-16 19:14:11 -07:00
etcdv2 Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
etcdv3 backend/remote-state: Get all the backend tests building again 2018-10-16 19:14:11 -07:00
gcs backend/remote-state: Get all the backend tests building again 2018-10-16 19:14:11 -07:00
http Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
inmem backend/remote-state/inmem: remove FIXME guards on tests that no longer hang 2018-10-16 19:14:11 -07:00
manta Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
s3 backend/s3: Configure AWS Client MaxRetries and provide enhanced S3 NoSuchBucket error message 2019-01-09 13:01:37 -05:00
swift Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
backend.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
backend_test.go backend/remote-state 2017-01-26 14:33:49 -08:00
testing.go Move TestRemoteLocks to state/remote 2017-02-08 11:25:52 -05:00