I need an iam to allow some actions but only if the resource name contains the prefix 'my-prefix-' I tried something like:
"Resource": "arn:aws:ec2:::my-prefix-*"
But it didn't work.
My problem is basically this one, but not only for s3 resource, since I need for others resources too: Variable resource name in AWS IAM policy I tried that solution and it didn't work