Skip to content

Commit cfa9964

Browse files
aslafy-zaknysh
authored andcommitted
Add wait_for_deployment (#41)
Signed-off-by: Zadkiel Aharonian <[email protected]>
1 parent 9926519 commit cfa9964

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
| trusted_signers | The AWS accounts, if any, that you want to allow to create signed URLs for private content. 'self' is acceptable. | list | `<list>` | no |
148148
| 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 |
149149
| viewer_protocol_policy | allow-all, redirect-to-https | string | `redirect-to-https` | no |
150+
| wait_for_deployment | When set to 'true' the resource will wait for the distribution status to change from InProgress to Deployed | string | `true` | no |
150151
| web_acl_id | ID of the AWS WAF web ACL that is associated with the distribution | string | `` | no |
151152

152153
## Outputs

docs/terraform.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
| trusted_signers | The AWS accounts, if any, that you want to allow to create signed URLs for private content. 'self' is acceptable. | list | `<list>` | no |
5151
| 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 |
5252
| viewer_protocol_policy | allow-all, redirect-to-https | string | `redirect-to-https` | no |
53+
| wait_for_deployment | When set to 'true' the resource will wait for the distribution status to change from InProgress to Deployed | string | `true` | no |
5354
| web_acl_id | ID of the AWS WAF web ACL that is associated with the distribution | string | `` | no |
5455

5556
## Outputs

main.tf

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

168168
custom_error_response = ["${var.custom_error_response}"]
169169
web_acl_id = "${var.web_acl_id}"
170+
wait_for_deployment = "${var.wait_for_deployment}"
170171

171172
tags = "${module.distribution_label.tags}"
172173
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,9 @@ variable "web_acl_id" {
275275
default = ""
276276
description = "ID of the AWS WAF web ACL that is associated with the distribution"
277277
}
278+
279+
variable "wait_for_deployment" {
280+
type = "string"
281+
default = "true"
282+
description = "When set to 'true' the resource will wait for the distribution status to change from InProgress to Deployed"
283+
}

0 commit comments

Comments
 (0)