Skip to content

Commit 2bd154b

Browse files
committedJan 23, 2025·
updated acm lifecycle
·
4.1.54.1.3
1 parent 75afbfe commit 2bd154b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed
 

‎route53-acm.tf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
# Route53 and ACM #
44
##################################################################################
55

6-
locals {
7-
acm_lifecycle = var.acm_lifecycle != null ? var.acm_lifecycle : false
8-
}
9-
106
resource "aws_acm_certificate" "this" {
117
count = var.acm_details.domain_name == "" ? 0 : 1
128
domain_name = var.acm_details.domain_name
@@ -15,7 +11,7 @@ locals {
1511
provider = aws.acm
1612

1713
lifecycle {
18-
create_before_destroy = local.acm_lifecycle
14+
create_before_destroy = var.acm_lifecycle
1915
}
2016

2117
tags = var.tags

‎variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ variable "acm_details" {
399399
}
400400
variable "acm_lifecycle" {
401401
type = bool
402-
default = false
402+
default = true
403403
description = "Enables AWS ACM lifecycle management, automatically removing certificates attached to CloudFront distributions when no longer needed and before destroying it."
404404
}
405405

0 commit comments

Comments
 (0)
Please sign in to comment.