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
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,11 +104,12 @@ module "cdn" {
104
104
source = "cloudposse/cloudfront-s3-cdn/aws"
105
105
# Cloud Posse recommends pinning every module to a specific version
106
106
# version = "x.x.x"
107
-
namespace = "eg"
108
-
stage = "prod"
109
-
name = "app"
110
-
aliases = ["assets.cloudposse.com"]
111
-
parent_zone_name = "cloudposse.com"
107
+
namespace = "eg"
108
+
stage = "prod"
109
+
name = "app"
110
+
aliases = ["assets.cloudposse.com"]
111
+
dns_alias_enabled = true
112
+
parent_zone_name = "cloudposse.com"
112
113
}
113
114
```
114
115
@@ -222,7 +223,7 @@ Available targets:
222
223
| default\_root\_object | Object that CloudFront return when requests the root URL |`string`|`"index.html"`| no |
223
224
| default\_ttl | Default amount of time (in seconds) that an object is in a CloudFront cache |`number`|`60`| no |
224
225
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.<br>Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. |`string`|`null`| no |
225
-
| dns\_alias\_enabled |Explicitly opt into DNS aliasing the CDN. |`bool`|`false`| no |
226
+
| dns\_alias\_enabled |Create a DNS alias for the CDN. Requires `parent_zone_id` or `parent_zone_name`|`bool`|`false`| no |
226
227
| enabled | Set to false to prevent the module from creating any resources |`bool`|`null`| no |
227
228
| encryption\_enabled | When set to 'true' the resource will have aes256 encryption enabled by default |`bool`|`true`| no |
228
229
| environment | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' |`string`|`null`| no |
@@ -259,8 +260,8 @@ Available targets:
259
260
| origin\_path | An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. It must begin with a /. Do not add a / at the end of the path. |`string`|`""`| no |
260
261
| origin\_ssl\_protocols | The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS. |`list(string)`| <pre>[<br> "TLSv1",<br> "TLSv1.1",<br> "TLSv1.2"<br>]</pre> | no |
261
262
| override\_origin\_bucket\_policy | When using an existing origin bucket (through var.origin\_bucket), setting this to 'false' will make it so the existing bucket policy will not be overriden |`bool`|`true`| no |
262
-
| parent\_zone\_id | ID of the hosted zone to contain this record (or specify `parent_zone_name`) |`string`|`""`| no |
263
-
| parent\_zone\_name | Name of the hosted zone to contain this record (or specify `parent_zone_id`) |`string`|`""`| no |
263
+
| parent\_zone\_id | ID of the hosted zone to contain this record (or specify `parent_zone_name`). Requires `dns_alias_enabled` set to true|`string`|`""`| no |
264
+
| parent\_zone\_name | Name of the hosted zone to contain this record (or specify `parent_zone_id`). Requires `dns_alias_enabled` set to true|`string`|`""`| no |
264
265
| price\_class | Price class for this distribution: `PriceClass_All`, `PriceClass_200`, `PriceClass_100`|`string`|`"PriceClass_100"`| no |
265
266
| redirect\_all\_requests\_to | A hostname to redirect all website requests for this distribution to. If this is set, it overrides other website settings |`string`|`""`| no |
266
267
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. |`string`|`null`| no |
Copy file name to clipboardExpand all lines: docs/terraform.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@
66
66
| default\_root\_object | Object that CloudFront return when requests the root URL |`string`|`"index.html"`| no |
67
67
| default\_ttl | Default amount of time (in seconds) that an object is in a CloudFront cache |`number`|`60`| no |
68
68
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.<br>Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. |`string`|`null`| no |
69
-
| dns\_alias\_enabled |Explicitly opt into DNS aliasing the CDN. |`bool`|`false`| no |
69
+
| dns\_alias\_enabled |Create a DNS alias for the CDN. Requires `parent_zone_id` or `parent_zone_name`|`bool`|`false`| no |
70
70
| enabled | Set to false to prevent the module from creating any resources |`bool`|`null`| no |
71
71
| encryption\_enabled | When set to 'true' the resource will have aes256 encryption enabled by default |`bool`|`true`| no |
72
72
| environment | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' |`string`|`null`| no |
@@ -103,8 +103,8 @@
103
103
| origin\_path | An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. It must begin with a /. Do not add a / at the end of the path. |`string`|`""`| no |
104
104
| origin\_ssl\_protocols | The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS. |`list(string)`| <pre>[<br> "TLSv1",<br> "TLSv1.1",<br> "TLSv1.2"<br>]</pre> | no |
105
105
| override\_origin\_bucket\_policy | When using an existing origin bucket (through var.origin\_bucket), setting this to 'false' will make it so the existing bucket policy will not be overriden |`bool`|`true`| no |
106
-
| parent\_zone\_id | ID of the hosted zone to contain this record (or specify `parent_zone_name`) |`string`|`""`| no |
107
-
| parent\_zone\_name | Name of the hosted zone to contain this record (or specify `parent_zone_id`) |`string`|`""`| no |
106
+
| parent\_zone\_id | ID of the hosted zone to contain this record (or specify `parent_zone_name`). Requires `dns_alias_enabled` set to true|`string`|`""`| no |
107
+
| parent\_zone\_name | Name of the hosted zone to contain this record (or specify `parent_zone_id`). Requires `dns_alias_enabled` set to true|`string`|`""`| no |
108
108
| price\_class | Price class for this distribution: `PriceClass_All`, `PriceClass_200`, `PriceClass_100`|`string`|`"PriceClass_100"`| no |
109
109
| redirect\_all\_requests\_to | A hostname to redirect all website requests for this distribution to. If this is set, it overrides other website settings |`string`|`""`| no |
110
110
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. |`string`|`null`| no |
0 commit comments