Terraform: Set an existing IAM role to an instance at spinup

Created on 28 May 2015  ยท  3Comments  ยท  Source: hashicorp/terraform

New to terraform. Love it so far.

I need to attach an existing IAM Role to an instance at spinup but I cannot find the correct syntax. Can someone give me some insight on how to accomplish this?

Thanks,

ZZ

Most helpful comment

Found it after some digging:

iam_instance_profile = "Role_Name"

All 3 comments

Found it after some digging:

iam_instance_profile = "Role_Name"

thanks for that @zeninfinity. Works for me.

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.

Was this page helpful?
0 / 5 - 0 ratings