Skip to content
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

increase in ebs volume size doesn't work when used in aws_instance #4219

Closed
ghost opened this issue Apr 16, 2018 · 4 comments · Fixed by #12620
Closed

increase in ebs volume size doesn't work when used in aws_instance #4219

ghost opened this issue Apr 16, 2018 · 4 comments · Fixed by #12620
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@ghost
Copy link

ghost commented Apr 16, 2018

This issue was originally opened by @amjad489 as hashicorp/terraform#17868. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

Terraform v0.11.4

Terraform Configuration Files

resource "aws_instance" "test_instance" {
  ...
  root_block_device {
    volume_type           = "gp2"
    volume_size           = "30"
    delete_on_termination = "false"
  }

....
  ebs_block_device {
    device_name           = "/dev/sdg"
    volume_type           = "gp2"
    volume_size           = "30"
  }

....
}

Debug Output

Crash Output

Expected Behavior

when the template is run for the first time it will create instance with root and ebs volume which is fine. later if we want to increase the ebs volume size it should increase the size

Actual Behavior

doesn't increase the size

Steps to Reproduce

  1. terraform init
  2. terraform apply
  3. Increase the ebs_volume size
  4. terraform apply
    nothing changes

Additional Context

References

@bflad bflad added bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. enhancement Requests to existing resources that expand the functionality or scope. and removed bug Addresses a defect in current functionality. labels Apr 17, 2018
@ivanich
Copy link

ivanich commented Apr 20, 2018

The same applies for iops in case of io1 type, terraform doesn't detect iops and size changes in ebs_block_device.

@Vlad1mir-D
Copy link

Duplicate of closed #4029

@ghost
Copy link
Author

ghost commented Apr 17, 2020

This has been released in version 2.58.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link
Author

ghost commented May 17, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators May 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
4 participants