Even AWS – being one of the most professional cloud platforms globally – can sometimes produce an error that tells you nothing. Have you ever been in a situation where you need your IAM permissions to be as strict as possible? If yes, you sure know that it can be very painful sometimes to get the permissions right. IAM can be very helpful. It will tell you what’s wrong with your permissions. But there is one case where it fails.

This error does not tell you much, especially when you do not have extensive experience with IAM (and AWS in general). The problem is that the resource, which you want to grant access to, does not exist. For instance, let’s say that you want to grant access to elasticloadbalancing
resource targetgroup
:
{ "Effect": "Allow", "Action": [ "elasticloadbalancing:*" ], "Resource": [ "arn:aws:elasticloadbalancing:::targetgroup/my_targetgroup" ] }
You will not succeed, because targetgroup
resources have a unique name after the resource type.
arn:aws:elasticloadbalancing:::targetgroup/my_targetgroup/random_id
So if you’re seeing the This action does not have an applicable resource error
, you should search AWS documentation for correct resource names and then replace them in your code. For instance, to allow all actions on all targetgroups, we can use the example from above, together with a correct resource string:
{ "Effect": "Allow", "Action": [ "elasticloadbalancing:*" ], "Resource": [ "arn:aws:elasticloadbalancing:::targetgroup/*/*" ] }
Head to AWS console and check if the error disappeared. You can apply this fix to all resources, not only elasticloadbalancing
. All you have to do is to find the correct syntax for that specific resource, and you’re good to go.
Hi! Just wondering- what template did you use for your website? I want to use it on my blog at https://garminexpress.global
I really like your writing style..Its so easily understandable. You can visit my blog at https://garminexpress.global and then maybe you can share your thought about mine.
Waiting patiently for you to come home and fuck me! http://bitly.ws/znHX
Waiting patiently for you to come home and fuck me! http://bitly.ws/znHX
Waiting patiently for you to come home and fuck me! https://cutt.ly/R9omJXa
Waiting patiently for you to come home and fuck me! https://bit.ly/3UKFVxa
Waiting patiently for you to come home and fuck me! https://bit.ly/3UKFVxa