Commit 403ddf4b authored by Dani Hodovic's avatar Dani Hodovic Committed by Anton Babenko

Ignore changes in the ebs_block_device (#46)

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:

https://github.com/terraform-providers/terraform-provider-aws/issues/1297#issuecomment-319359965
parent 072096dc
......@@ -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"]
}
}
......@@ -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"]
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment