hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.87k stars 9.21k forks source link

[Enhancement]: Lookup a aws_iam_role data source by arn #29168

Open dreinhardt89 opened 1 year ago

dreinhardt89 commented 1 year ago

Description

Currently you need to lookup iam role data sources via friendly name. Often with our terrafrom code we now the arn and can get the friendly name using terraform functions but this turns into a giant pain when there are complicated path prefixes (or if those prefixes change. Seems weird we can't lookup by arn.

Affected Resource(s) and/or Data Source(s)

No response

Potential Terraform Configuration

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue