-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
data store "aws_iam_policy" can't get the policy arn #6132
Comments
Seems this managed policy If compare with other managed policies, it has extra arn:aws:iam::aws:policy/ |
AWS has a few different resource paths for their managed policies:
It does look like we are incorrectly not returning an error in the data source when its not found, so I'll file this as a bug in that regard. We do have a feature request for |
If the data store Normally, I prefer to use data store to get ARN from its Name. Sure, I will upvote that PR |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Affected Resource(s)
data sources
Terraform Configuration Files
Debug Output
Panic Output
Check
terraform.tfstate
Expected Behavior
I should see the ARN for AWS manged policy
AWSLambdaVPCAccessExecutionRole
as well.Actual Behavior
I only see the ARN for AWS manged policy
ReadOnlyAccess
Steps to Reproduce
So if I try to use
data.aws_iam_policy.AWSLambdaVPCAccessExecutionRole
,I got below error:
The text was updated successfully, but these errors were encountered: