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

"diffs didn't match during apply" for aws_instance credit_specification cpu_credits #19315

Closed
kurtwheeler opened this issue Nov 7, 2018 · 6 comments
Labels

Comments

@kurtwheeler
Copy link

Terraform Version

Terraform v0.11.8

Terraform Configuration Files

https://github.com/AlexsLemonade/refinebio/tree/dev/infrastructure

Debug Output

Because this is a production deploy it is not easy to simply modify the terraform command.

Crash Output

https://gist.github.com/kurtwheeler/dfaa53937b352bac831e1aa06223255d

Expected Behavior

It shouldn't have crashed

Actual Behavior

It did crash.

Steps to Reproduce

This was caused by an automated script triggered by CircleCI. This script:
https://github.com/AlexsLemonade/refinebio/blob/dev/.circleci/remote_deploy.sh
calls this script: https://github.com/AlexsLemonade/refinebio/blob/dev/.circleci/run_terraform.sh
which ran this script:
https://github.com/AlexsLemonade/refinebio/blob/dev/infrastructure/deploy.sh
which is what actually runs terraform commands.

However this has run successfully many times and I'm not sure what was different about this one.

Additional Context

This happened during our automated deploy process to our production stack. This is the first deploy to our production stack after modifying the process, but this has been tested about half a dozen time on our staging stack. I have rerun our deploy process and it completed successfully. I'm not sure what was different this time or when it might happen again.

@apparentlymart apparentlymart changed the title Terraform crashed because of "diffs didn't match during apply" for aws_instance credit_specification cpu_credits Nov 7, 2018
@bflad
Copy link
Contributor

bflad commented Nov 7, 2018

@kurtwheeler could you also provide your AWS provider version? This may be related: hashicorp/terraform-provider-aws#5853

@kurtwheeler
Copy link
Author

I have a .terraform/plugins/linux_amd64/terraform-provider-aws_v1.31.0_x4 file so I think it's 1.31.0

@kurtwheeler
Copy link
Author

Does anyone have any ideas of what I might be able to do to workaround this until a fix is devised? I had to redeploy prod today and I've hit this three times in a row. I can't stand my API server back up because of this so my website is down.

@kurtwheeler
Copy link
Author

Oh wait, now I see! I will try updating my AWS provider version!

@kurtwheeler
Copy link
Author

Updating my provider version fixed this issue. Thank!

@ghost
Copy link

ghost commented Mar 31, 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 Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants