1 Answer
- Newest
- Most votes
- Most comments
1
You can use an identity-based policy to do that. Here is an example that only allows users who have their username as the Owner of the instance to start\stop instance. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_ec2_tag-owner.html
Relevant content
- asked 5 years ago
- Accepted Answerasked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 7 months ago
"aws:ResourceTag/Owner": "${aws:username}"== I unable to understnad this line, rest all json i understood, please explain the above line indetail to me