File tree Expand file tree Collapse file tree 2 files changed +21
-20
lines changed Expand file tree Collapse file tree 2 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,13 @@ module "s3-static-website" {
39
39
40
40
| Name | Description | Type | Default | Required |
41
41
| ------| -------------| :----:| :-------:| :--------:|
42
- | cert_arn | The ARN of the SSL Certificate to use for this domain | string | - | yes |
43
- | domain_name | Domain name for the S3 Static Website | string | - | yes |
44
- | redirects | Optional list of domains that should redirect to ` domain_name ` (i.e. for redirecting naked domain to www-version) | list | ` <list> ` | no |
45
- | secret | Random alphanumeric string for allowing CloudFront Distribution's traffic to S3 | string | - | yes |
46
- | tags | A mapping of tags to assign to each resource (S3 and CloudFront) | map | ` <map> ` | no |
47
- | zone_id | The Route 53 Zone ID in which to create the record set | string | - | yes |
42
+ | cert_arn | ARN of the SSL Certificate to use for the Cloudfront Distribution | string | - | yes |
43
+ | domain_name | Domain name for the website (i.e. ` www.example.com ` ) | string | - | yes |
44
+ | public_dir | Directory in S3 Bucket from which to serve public files | string | ` /public ` | no |
45
+ | redirects | A list of domains that should redirect to domain_name (i.e. for redirecting naked domain to www-version) | list | ` <list> ` | no |
46
+ | secret | A secret string between CloudFront and S3 to control access | string | - | yes |
47
+ | tags | A mapping of tags to assign to each resource | map | ` <map> ` | no |
48
+ | zone_id | ID of the Route 53 Hosted Zone in which to create an alias record set | string | - | yes |
48
49
49
50
## Outputs
50
51
Original file line number Diff line number Diff line change 1
- variable "domain_name " {
2
- description = " Domain name for the website (i.e. www.example.com) "
1
+ variable "cert_arn " {
2
+ description = " ARN of the SSL Certificate to use for the Cloudfront Distribution "
3
3
type = " string"
4
4
}
5
5
6
- variable "redirects " {
7
- description = " A list of domain names which redirect to domain_name "
8
- default = []
6
+ variable "domain_name " {
7
+ description = " Domain name for the website (i.e. www.example.com) "
8
+ type = " string "
9
9
}
10
10
11
11
variable "public_dir" {
12
- description = " Directory from which to serve public files (default: /public) "
12
+ description = " Directory in S3 Bucket from which to serve public files"
13
13
default = " /public"
14
14
}
15
15
16
+ variable "redirects" {
17
+ description = " A list of domains that should redirect to domain_name (i.e. for redirecting naked domain to www-version)"
18
+ default = []
19
+ }
20
+
16
21
variable "secret" {
17
22
description = " A secret string between CloudFront and S3 to control access"
18
23
type = " string"
19
24
}
20
25
21
- variable "cert_arn " {
22
- description = " ARN of the SSL Certificate to use for the Cloudfront Distribution "
23
- type = " string "
26
+ variable "tags " {
27
+ description = " A mapping of tags to assign to each resource "
28
+ default = {}
24
29
}
25
30
26
31
variable "zone_id" {
27
32
description = " ID of the Route 53 Hosted Zone in which to create an alias record"
28
33
type = " string"
29
34
}
30
-
31
- variable "tags" {
32
- description = " A map of tags to add to all resources"
33
- default = {}
34
- }
You can’t perform that action at this time.
0 commit comments