Skip to content

Commit 4e2a344

Browse files
committed
ignore some things
1 parent 41ea7b5 commit 4e2a344

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

custom.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ variable "alarm_sns_topic_arn" {
88
description = "The ARN of the SNS topic to notify when on critical alerts"
99
}
1010

11+
variable "ignore_in_lifecycle" {
12+
default = []
13+
description = "ignore instance type changes"
14+
}
15+
1116
variable "environment" {
1217
type = string
1318
description = "The environment tag to apply to all resources. eg: production, testing, staging, etc"

main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ resource "aws_instance" "this" {
188188
delete = try(var.timeouts.delete, null)
189189
}
190190

191+
lifecycle {
192+
ignore_changes = var.ignore_in_lifecycle
193+
}
194+
191195
tags = merge({
192196
"Name" = var.name,
193197
"Environment" = var.environment,

0 commit comments

Comments
 (0)