Skip to content

Commit

Permalink
add user data ignore lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
Becram committed Sep 22, 2021
1 parent ae09a00 commit 345b9cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,8 @@ resource "aws_instance" "this" {
credit_specification {
cpu_credits = local.is_t_instance_type ? var.cpu_credits : null
}

lifecycle {
ignore_changes = [user_data]
}
}

0 comments on commit 345b9cf

Please sign in to comment.