hashicorp / terraform-aws-consul

A Terraform Module for how to run Consul on AWS using Terraform and Packer
Apache License 2.0
401 stars 488 forks source link

Need IAM Policy Name not ARN/ID #106

Closed estein9825 closed 5 years ago

estein9825 commented 5 years ago

Terraform doesn't allow iam role lookups by ID or ARN, so it doesn't help much that you guys return that info, especially given you're doing name_prefix and not name in your call.

brikis98 commented 5 years ago

Sounds like a good addition. Would you be up for a really quick PR?

tomaspinho commented 5 years ago

Need this, opened PR.

brikis98 commented 5 years ago

Update: it's a bit confusing, but in Terraform, the id output of aws_iam_role is the same as name. So between id and arn outputs, you should have everything you need.