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

0.6.16 BUG with IAM Role Attribute Mismatch #6834

Closed
eedwardsdisco opened this issue May 23, 2016 · 6 comments
Closed

0.6.16 BUG with IAM Role Attribute Mismatch #6834

eedwardsdisco opened this issue May 23, 2016 · 6 comments

Comments

@eedwardsdisco
Copy link

Terraform Version

0.6.16

Affected Resource(s)

Please list the resources as a list, for example:

  • aws_iam_role
  • aws_iam_instance_profile

Terraform Configuration Files

https://gist.github.com/eedwardsdisco/5706ca2000a9adb4caf739b371e7b8b9

Debug Output

https://gist.github.com/eedwardsdisco/4e84559902baf96d31dbc2a19cbca904

Panic Output

https://gist.github.com/eedwardsdisco/419cb65ae7e497130f17c59d79d177e4

Expected Behavior

terraform apply succeeds

Actual Behavior

terraform apply fails and exits on a bug

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

succeeds if I run apply again after the fact

References

@eedwardsdisco
Copy link
Author

possibly related to #6788 ?

@eedwardsdisco
Copy link
Author

possibly related to #6806 ?

@eedwardsdisco
Copy link
Author

Here's a breakdown of the diff.

Seems to be an issue with the roles.X field, where the plan phase has a different role id than the apply phase?

https://gist.github.com/eedwardsdisco/0163b5de916cdf4307d9084c28a55a73

@eedwardsdisco
Copy link
Author

eedwardsdisco commented May 23, 2016

I managed to get past it by changing from using a rendered template output for the name of the policy

name = "${template_file.cluster_name.rendered}-opsworks-service"

I changed the above (and all other references to this template) to instead be the value that was getting calculated in the template itself.

name = "${lower(var.cluster_name_prefix)}-${lower(var.cluster_environment_name)}-opsworks-service"

I suspect there is a problem with the plan phase and rendering template output.

e.g. sounds related to #5462 in that I've also seen the 'ERROR PARSING JSON' problem on PLAN but not on APPLY (when the JSON comes from a template output).

@mitchellh
Copy link
Contributor

This should be fixed in higher versions of 0.7.x. I can't get this to reproduce and it looks like the same as your other issue!

@ghost
Copy link

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

No branches or pull requests

3 participants