Skip to content

Commit

Permalink
ignore-new-AMI-version (#105)
Browse files Browse the repository at this point in the history
This change prevents instances from being recreated because there is a newer version of the AMI.
---------

Co-authored-by: Niklas Schmidtmer <[email protected]>
  • Loading branch information
wierdvanderhaar and hammerhead authored Dec 27, 2023
1 parent 10fd54a commit 3fd0f7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ resource "aws_instance" "cratedb_node" {
}

lifecycle {
ignore_changes = [user_data]
ignore_changes = [user_data, ami]
}

tags = {
Expand Down
2 changes: 1 addition & 1 deletion aws/ec2_utility.tf
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ resource "aws_instance" "utilities" {
}

lifecycle {
ignore_changes = [user_data]
ignore_changes = [user_data, ami]
}

tags = {
Expand Down

0 comments on commit 3fd0f7f

Please sign in to comment.