terraform/backend
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
..
atlas Make the Atlas backend work after updating depencies 2018-11-15 20:34:31 +01:00
init Change how to fall back from remote to local backend 2018-11-20 22:25:52 +01:00
local backend/local: Render CBD replacement (+/-) correctly (#19642) 2018-12-14 13:45:47 +00:00
remote backend/remote: log early to indicate execution started 2019-01-08 17:06:24 +01:00
remote-state backend/s3: Configure AWS Client MaxRetries and provide enhanced S3 NoSuchBucket error message 2019-01-09 13:01:37 -05:00
backend.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
cli.go backend: Update interface and implementations for new config loader 2018-10-16 18:39:12 -07:00
nil.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
nil_test.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operation_type.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operationtype_string.go Update various files for new version of "stringer" 2017-12-11 13:26:29 -08:00
testing.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
unparsed_value.go Add a VariableSourceType for names .tfvars files 2018-11-05 19:29:34 +01:00