Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29245

AWS EC2 policy cannot change User Data

$
0
0

I'm trying to create a policy that allows changing User Data of stopped instances that have tags: "Name":"MyApp" but it only allows me to see the User Data. When I click save, it says I'm not authorised.

"Effect": "Allow",
"Action": "ec2:*",
"Resource": "*",
"Condition": {
    "StringLike": {
      "ec2:ResourceTag/Name": "MyApp"
    }
}

The only way I can make it work is to remove the "Condition". However, it seems like my condition is valid. I've used my condition with other actions like: "ec2:StartInstances" and it works.


Viewing all articles
Browse latest Browse all 29245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>