I am trying to run this cli on a target group:
aws elbv2 describe-target-health
This IAM policy doesn't work:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1497933736509",
"Action": [
"elasticloadbalancing:DescribeTargetHealth"
],
"Effect": "Allow",
"Resource": "arn:aws:elasticloadbalancing:::*"
}
]
}
Error message:
An error occurred (AccessDenied) when calling the DescribeTargetHealth operation
This works:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1497933977893",
"Action": [
"elasticloadbalancing:DescribeTargetHealth"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
Question: why do I have to use * to include all AWS resources? Did I miss anything obvious here?