24 lines
559 B
JSON
24 lines
559 B
JSON
|
{
|
||
|
"Version": "2012-10-17",
|
||
|
"Statement": [
|
||
|
{
|
||
|
"Effect": "Allow",
|
||
|
"Action": [
|
||
|
"ec2:StartInstances",
|
||
|
"ec2:StopInstances"
|
||
|
],
|
||
|
"Resource": "arn:aws:ec2:*:*:instance/*",
|
||
|
"Condition": {
|
||
|
"StringEquals": {
|
||
|
"aws:ResourceTag/Owner": "${aws:username}"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"Effect": "Allow",
|
||
|
"Action": "ec2:DescribeInstances",
|
||
|
"Resource": "*"
|
||
|
}
|
||
|
]
|
||
|
}
|