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
Added optional regional s3 endpoint. Added Example (#17)
* Added the ability to specify a regional endpoint. Updated README. Created working example.
* Added output in example that provided instructions for beginners
* Added origin_force_destroy to all s3 buckets so that the module can be destroyed if required.
* Fixed another destruction issue.
* Updated for consistency
* Changed the 'static' bucket
* added variable for static_s3_bucket
This is a fundamental requirement of CloudFront, and you will need to request the certificate in `us-east-1` region.
40
41
41
-
42
+
If there are warnings around the outputs when destroying using this module.
43
+
Then you can use this method for supressing the superfluous errors.
44
+
`TF_WARN_OUTPUT_ERRORS=1 terraform destroy`
42
45
43
46
## Variables
44
47
@@ -85,6 +88,7 @@ This is a fundamental requirement of CloudFront, and you will need to request th
85
88
|`origin_path`| `` | Element that causes CloudFront to request your content from a directory in your Amazon S3 bucket. Begins with `/`. CAUTION! Do not use bare `/` as `origin_path`. | No |
86
89
|`parent_zone_id`| `` | ID of the hosted zone to contain this record (or specify `parent_zone_name`) | Yes |
87
90
|`parent_zone_name`| `` | Name of the hosted zone to contain this record (or specify `parent_zone_id`) | Yes |
91
+
|`use_regional_s3_endpoint`|`"false"`| Use a regional endpoint for the bucket instead of the global endpoint. Useful for speeding up the deploy process caused by the s3 replication latency | No |
88
92
89
93
90
94
## Outputs
@@ -108,3 +112,7 @@ If the bucket is created in a region other than `us-east-1`, it will take a whil
108
112
> All buckets have at least two REST endpoint hostnames. In eu-west-1, they are example-bucket.s3-eu-west-1.amazonaws.com and example-bucket.s3.amazonaws.com. The first one will be immediately valid when the bucket is created. The second one -- sometimes referred to as the "global endpoint" -- which is the one CloudFront uses -- will not, unless the bucket is in us-east-1. Over a period of seconds to minutes, variable by location and other factors, it becomes globally accessible as well. Before that, the 307 redirect is returned. Hence, the bucket was not ready.
0 commit comments