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

providers/aws: reduce scope of block_device set hashcodes #1445

Merged
merged 1 commit into from
Apr 9, 2015

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Apr 9, 2015

Fixes #1409

Resource set hash calculation is a bit of a devil's bargain when it
comes to optional, computed attributes.

If you omit the optional, computed attribute from the hash function,
changing it in an existing config is not properly detected.

If you include the optional, computed attribute in the hash and do not
specify a value for it in the config, then you'll end up with a
perpetual, unresolvable diff.

We'll need to think about how to get the best of both worlds, here, but
for now I'm switching us to the latter and documenting the fact that
changing these attributes requires manual terraform taint to apply.

Fixes #1409

Resource set hash calculation is a bit of a devil's bargain when it
comes to optional, computed attributes.

If you omit the optional, computed attribute from the hash function,
changing it in an existing config is not properly detected.

If you include the optional, computed attribute in the hash and do not
specify a value for it in the config, then you'll end up with a
perpetual, unresolvable diff.

We'll need to think about how to get the best of both worlds, here, but
for now I'm switching us to the latter and documenting the fact that
changing these attributes requires manual `terraform taint` to apply.
@mitchellh
Copy link
Contributor

LGTM

phinze added a commit that referenced this pull request Apr 9, 2015
…out-both-volume-fields

providers/aws: reduce scope of block_device set hashcodes
@phinze phinze merged commit bfb3134 into master Apr 9, 2015
@phinze phinze deleted the b-ebs-perpetual-recreate-without-both-volume-fields branch April 9, 2015 15:24
displague added a commit to displague/deprecated-terraform-provider-linode that referenced this pull request Jul 25, 2018
@ghost
Copy link

ghost commented May 3, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ebs_block_device forces perpetual instance recreation unless volume_size and volume_type are set explicitly
2 participants