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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_instance => ebs_block_device => 'delete_on_termination = true' does not change it to 'false' with terraform apply #19725

Open
ssinghj opened this issue Jun 9, 2021 · 3 comments
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@ssinghj
Copy link

ssinghj commented Jun 9, 2021

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

 Terraform v0.15.5
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v3.42.0
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/template v2.2.0

Affected Resource(s)

  • aws_ec2_instance

Terraform Configuration Files

ebs_block_device {
  volume_size   = "100"
  volume_type   = "gp2"
  device_name   = "/dev/sdf"
  snapshot_id   = "snap-0068b9561XXXXXX"
  delete_on_termination =  false
  tags          =  merge( var.default_tags,
                {
                "Name" =  "Data_Vol1",
                "Snapshot" = "true"
                })
}

Debug Output

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration and found no
differences, so no changes are needed.

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Panic Output

Expected Behavior

change delete_on_termination default true to false

Actual Behavior

Nothing changed

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/ec2 Issues and PRs that pertain to the ec2 service. labels Jun 9, 2021
@ssinghj ssinghj changed the title aws_instance => ebs_block_device => delete_on_termination not change it to 'false' with terraform apply aws_instance => ebs_block_device => 'delete_on_termination = true' does not change it to 'false' with terraform apply Jun 9, 2021
@breathingdust breathingdust added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 31, 2021
@fransf-wtax
Copy link
Contributor

I think this is the same issue as #19406 : changes to ebs_block_device in your Terraform script are not actually applied to AWS on terraform apply : the ebs_block_device configuration is only used to create the EBS volume.

Copy link

github-actions bot commented Feb 6, 2024

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Feb 6, 2024
@fransf-wtax
Copy link
Contributor

Both this and #19406 still seem to be existing bugs, so this issue should not be made stale.

@github-actions github-actions bot removed the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

No branches or pull requests

3 participants