Skip to content

fix: set ignore_changes on EC2 example templates #10773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: set ignore_changes on EC2 example templates
  • Loading branch information
ericpaulsen committed Nov 17, 2023
commit 5b5780ac7fd8b21db8b5fed3c5a5dd6b01c2a75e
3 changes: 3 additions & 0 deletions examples/templates/aws-linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ resource "aws_instance" "dev" {
# Required if you are using our example policy, see template README
Coder_Provisioned = "true"
}
lifecycle {
ignore_changes = [ami]
}
}

resource "coder_metadata" "workspace_info" {
Expand Down
3 changes: 3 additions & 0 deletions examples/templates/aws-windows/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ resource "aws_instance" "dev" {
# Required if you are using our example policy, see template README
Coder_Provisioned = "true"
}
lifecycle {
ignore_changes = [ami]
}
}

resource "coder_metadata" "workspace_info" {
Expand Down