-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 with aws_iam_instance_profile and aws_security_group #5200
Comments
BTW, occasionally when I run |
+1 running into this issue right now too. In a crunch but i'll try and get my templates posted tonight. |
Hey folks, sorry for the trouble here - when you hit these there's some valuable information that's dropped into the debug log. If you set
These will point us to exactly what's happening. |
@phinze OK, here's the (hopefully) relevant
Note that I only got the |
And here's the
|
Any updates on this? I love Terraform, but it's frustrating always seeing |
An update: it seems like this issue might be tied to the ASG setting |
I just stumbled across this issue. In my case, it's related to attempting to use template strings as names (I believe). I did the debug logging, and found this discrepancy in the diffs: diff one (leaving out most of the detail):
diff 2:
|
Note the 'roles.######' is different as well, but I hope that's not the problem... |
I'm not sure what changed, but I'm getting this error again now. I tried updating to 0.6.14, but that hasn't helped. |
@zapman449, I think you might be on to something. I'm not using template strings as names, but I am using variables, and that pops up as the only difference between "Diff One" and "Diff Two" in the error message: Diff 1: |
Oh, and for completeness, this is what the resource "aws_iam_instance_profile" "instance_profile" {
name = "${var.name}"
roles = ["${aws_iam_role.instance_role.name}"]
lifecycle {
create_before_destroy = true
}
} |
We fixed a lot of these issues a number of months back, but since this issue was buried in others we didn't see this. Given the lack of responses I'm going to close this but if it still happens please open an issue again. Very sorry! |
Terraform 0.7.13; inputrc file * Terraform 0.7.13, because maybe it fixes hashicorp/terraform#5200 * add inputrc file so that shortcuts like ctrl+left work See merge request !2
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. |
When I run
terraform apply
, I get the following two errors:If I re-run
terraform apply
, everything works fine. It looks a bit like #529, but I don't have anyself = true
entries in my security group, plus I have the extra error about theinstance_profile
, so just in case, I filed a separate bug.My templates are fairly large, so I'm trying to extract just the relevant pieces:
The reason for all the
create_before_destroy = true
entries is to get rolling deployment as described here.The text was updated successfully, but these errors were encountered: