Setting iops for gp2 block device in launch configuration causes recreation of instances #4002
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
This issue was originally opened by @rsheldon as hashicorp/terraform#17745. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Expected Behavior
When I run terraform apply after making no new changes, it says that I don't have any changes.
Actual Behavior
If I run plan immediately after I have run apply it should detect no differences. However, it says it needs to recreate the block device again. I have tracked this down to me setting (well defaulting) IOPS on the block device, when using a "gp2" device type.
I can work around this by changing my code to be
I was defaulting the IOPS to 1500. If IOPS is not applicable for the "gp2" data type, then it should be ignored (whether it's set or not).
Steps to Reproduce
terraform init
terraform apply
terraform plan
Additional Context
References
I think these may be related:
#3239
#72
The text was updated successfully, but these errors were encountered: