Skip to content

Commit

Permalink
Ignore changes in the ebs_block_device (terraform-aws-modules#46)
Browse files Browse the repository at this point in the history
Any change in the ebs block device currently triggers re-creation of
this resource which I assume is not intended.

Workaround by ignoring these changes as suggested in:

hashicorp/terraform-provider-aws#1297 (comment)
  • Loading branch information
danihodovic authored and antonbabenko committed Sep 4, 2018
1 parent cc21716 commit 20d783e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "aws_instance" "this" {
# Due to several known issues in Terraform AWS provider related to arguments of aws_instance:
# (eg, https://github.com/terraform-providers/terraform-provider-aws/issues/2036)
# we have to ignore changes in the following arguments
ignore_changes = ["private_ip", "root_block_device"]
ignore_changes = ["private_ip", "root_block_device", "ebs_block_device"]
}
}

Expand Down Expand Up @@ -83,6 +83,6 @@ resource "aws_instance" "this_t2" {
# Due to several known issues in Terraform AWS provider related to arguments of aws_instance:
# (eg, https://github.com/terraform-providers/terraform-provider-aws/issues/2036)
# we have to ignore changes in the following arguments
ignore_changes = ["private_ip", "root_block_device"]
ignore_changes = ["private_ip", "root_block_device", "ebs_block_device"]
}
}

0 comments on commit 20d783e

Please sign in to comment.