Skip to content

Commit 9b7c4e1

Browse files
knqyf263aknysh
authored andcommitted
Add web_acl_id (#35)
1 parent bfeeb53 commit 9b7c4e1

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ Available targets:
147147
| use_regional_s3_endpoint | When set to 'true' the s3 origin_bucket will use the regional endpoint address instead of the global endpoint address | string | `false` | no |
148148
| viewer_protocol_policy | allow-all, redirect-to-https | string | `redirect-to-https` | no |
149149
| lambda_function_association | A config block that triggers a lambda function with specific actions | list | `<list>` | no |
150+
| web_acl_id | ID of the AWS WAF web ACL that is associated with the distribution | string | `` | no |
150151

151152
## Outputs
152153

docs/terraform.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
| use_regional_s3_endpoint | When set to 'true' the s3 origin_bucket will use the regional endpoint address instead of the global endpoint address | string | `false` | no |
5151
| viewer_protocol_policy | allow-all, redirect-to-https | string | `redirect-to-https` | no |
5252
| lambda_function_association | A config block that triggers a lambda function with specific actions | list | `<list>` | no |
53+
| web_acl_id | ID of the AWS WAF web ACL that is associated with the distribution | string | `` | no |
5354

5455
## Outputs
5556

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ resource "aws_cloudfront_distribution" "default" {
165165
}
166166

167167
custom_error_response = ["${var.custom_error_response}"]
168+
web_acl_id = "${var.web_acl_id}"
168169

169170
tags = "${module.distribution_label.tags}"
170171
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,9 @@ variable "lambda_function_association" {
263263
default = []
264264
description = "A config block that triggers a lambda function with specific actions"
265265
}
266+
267+
variable "web_acl_id" {
268+
type = "string"
269+
default = ""
270+
description = "ID of the AWS WAF web ACL that is associated with the distribution"
271+
}

0 commit comments

Comments
 (0)