31 lines
733 B
JSON
31 lines
733 B
JSON
|
{
|
||
|
"Version": "2012-10-17",
|
||
|
"Statement": [
|
||
|
{
|
||
|
"Action": [
|
||
|
"ec2:DescribeInstances",
|
||
|
"ec2:DescribeSecurityGroups",
|
||
|
"ec2:DescribeSecurityGroupReferences",
|
||
|
"ec2:DescribeStaleSecurityGroups"
|
||
|
],
|
||
|
"Resource": "*",
|
||
|
"Effect": "Allow"
|
||
|
},
|
||
|
{
|
||
|
"Action": [
|
||
|
"ec2:AuthorizeSecurityGroupEgress",
|
||
|
"ec2:AuthorizeSecurityGroupIngress",
|
||
|
"ec2:RevokeSecurityGroupEgress",
|
||
|
"ec2:RevokeSecurityGroupIngress",
|
||
|
"ec2:StartInstances",
|
||
|
"ec2:StopInstances"
|
||
|
],
|
||
|
"Resource": [
|
||
|
"arn:aws:ec2:*:*:instance/i-instance-id",
|
||
|
"arn:aws:ec2:*:*:security-group/sg-security-group-id"
|
||
|
],
|
||
|
"Effect": "Allow"
|
||
|
}
|
||
|
]
|
||
|
}
|