Creating user policy to invoke lambda with specific alias
<p>I have a specific user that must only invoke lambdas with alias "dev".
<br>Following the documentation, I tried the policy:</p>

<pre><code>{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "lambda:InvokeFunction"
            ],
            "Resource": "arn:aws:lambda:us-east-1:*********:function:HelloWorld:dev"
        }
    ]
}
</code></pre>

<p>I removed the other statements (Gets and Lists) to improve readability.</p>

<p>But on console, trying to invoke that lambda I receive:</p>

<blockquote>
  <p>User: x is not authorized to perform: lambda:InvokeFunction on resource: arn:aws:lambda:us-east-1:*********:function:HelloWorld"</p>
</blockquote>

<p>Is it possible to allow only a specific alias to a specific user?
<br>Obs: It is a user and not a role between resources.</p>