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

provider/aws: fixing some logic issues with the aws-instance resource #712

Merged
merged 1 commit into from
Dec 25, 2014
Merged

provider/aws: fixing some logic issues with the aws-instance resource #712

merged 1 commit into from
Dec 25, 2014

Conversation

svanharmelen
Copy link
Contributor

  1. The schema contained a few fields that where not marked as computed, while they were updated inside the resource.
  2. While updating the volume_size it was doing so with a string, but in the schema this field is set as int.
  3. The set func for calculating the hashes for the block set items, also used computed values to calculate the hash. As these values will not be in the config, but only in the state, this will always show as a diff. The solution is to only use the fields that aren’t computed in order to get consistent hashes.

These where all issues before, but weren’t visible as such. All should be good again now.

1. The schema contained a few fields that where not marked as
`computed`, while they were updated inside the resource.

2. While updating the `volume_size` it was doing so with a `string`,
but in the schema this field is set as `int`.

3. The set func for calculating the hashes for the `block` set items,
also used computed values to calculate the hash. As these values will
not be in the config, but only in the state, this will always show as a
diff. The solution is to only use the fields that aren’t computed in
order to get consistent hashes.

These where all issues before, but weren’t visible as such. All should
be good again now.
svanharmelen pushed a commit that referenced this pull request Dec 25, 2014
provider/aws: fixing some logic issues with the aws-instance resource
@svanharmelen svanharmelen merged commit d448c1b into hashicorp:master Dec 25, 2014
@svanharmelen svanharmelen deleted the f-fix-aws-instance-resource branch December 25, 2014 17:51
pmoust added a commit to PeoplePerHour/terraform that referenced this pull request Dec 25, 2014
@mitchellh
Copy link
Contributor

Great! Thanks.

@ghost
Copy link

ghost commented May 4, 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 4, 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.

2 participants