Skip to content

Commit

Permalink
Merge pull request #1052 from udondan/update-aws-managed-policies
Browse files Browse the repository at this point in the history
  • Loading branch information
udondan authored Jan 6, 2025
2 parents 039564c + d35c908 commit ff1d007
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,15 +370,17 @@
"arn:aws:ec2:*:*:security-group/*",
"arn:aws:ec2:*:*:volume/*",
"arn:aws:ec2:*:*:snapshot/*",
"arn:aws:ec2:*:*:instance/*"
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ec2:*:*:network-interface/*"
],
"Condition": {
"StringEquals": {
"ec2:CreateAction": [
"CreateSecurityGroup",
"CreateVolume",
"CreateSnapshot",
"RunInstances"
"RunInstances",
"CreateNetworkInterface"
]
},
"Bool": {
Expand Down Expand Up @@ -600,6 +602,65 @@
]
}
}
},
{
"Sid": "ConsoleFullAccess41",
"Effect": "Allow",
"Action": [
"ec2:CreateVolume"
],
"Resource": "arn:aws:ec2:*:*:snapshot/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSElasticDisasterRecoveryManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Sid": "ConsoleFullAccess42",
"Effect": "Allow",
"Action": [
"ec2:CreateNetworkInterface"
],
"Resource": "arn:aws:ec2:*:*:network-interface/*",
"Condition": {
"Null": {
"aws:RequestTag/AWSElasticDisasterRecoveryManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Sid": "ConsoleFullAccess43",
"Effect": "Allow",
"Action": [
"ec2:CreateNetworkInterface"
],
"Resource": [
"arn:aws:ec2:*:*:subnet/*",
"arn:aws:ec2:*:*:security-group/*"
]
},
{
"Sid": "ConsoleFullAccess44",
"Effect": "Allow",
"Action": [
"ec2:CreateNetworkInterfacePermission"
],
"Resource": "arn:aws:ec2:*:*:network-interface/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSElasticDisasterRecoveryManaged": "false"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"ec2:DescribeDhcpOptions",
"ec2:DescribeManagedPrefixLists",
"ec2:GetManagedPrefixListEntries",
"ec2:GetManagedPrefixListAssociations"
"ec2:GetManagedPrefixListAssociations",
"ec2:DescribeNetworkInterfaces"
],
"Resource": "*"
},
Expand Down Expand Up @@ -327,7 +328,8 @@
"arn:aws:ec2:*:*:security-group/*",
"arn:aws:ec2:*:*:volume/*",
"arn:aws:ec2:*:*:snapshot/*",
"arn:aws:ec2:*:*:instance/*"
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ec2:*:*:network-interface/*"
],
"Condition": {
"StringEquals": {
Expand All @@ -336,7 +338,8 @@
"CreateSecurityGroup",
"CreateVolume",
"CreateSnapshot",
"RunInstances"
"RunInstances",
"CreateNetworkInterface"
]
}
}
Expand All @@ -359,6 +362,68 @@
"Effect": "Allow",
"Action": "cloudwatch:GetMetricData",
"Resource": "*"
},
{
"Sid": "DRSServiceRolePolicy29",
"Effect": "Allow",
"Action": [
"ec2:CreateVolume"
],
"Resource": "arn:aws:ec2:*:*:snapshot/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSElasticDisasterRecoveryManaged": "false"
}
}
},
{
"Sid": "DRSServiceRolePolicy30",
"Effect": "Allow",
"Action": [
"ec2:CreateNetworkInterface"
],
"Resource": "arn:aws:ec2:*:*:network-interface/*",
"Condition": {
"Null": {
"aws:RequestTag/AWSElasticDisasterRecoveryManaged": "false"
}
}
},
{
"Sid": "DRSServiceRolePolicy31",
"Effect": "Allow",
"Action": [
"ec2:CreateNetworkInterface"
],
"Resource": [
"arn:aws:ec2:*:*:subnet/*",
"arn:aws:ec2:*:*:security-group/*"
]
},
{
"Sid": "DRSServiceRolePolicy32",
"Effect": "Allow",
"Action": [
"ec2:CreateNetworkInterfacePermission",
"ec2:DeleteNetworkInterface",
"ec2:ModifyNetworkInterfaceAttribute"
],
"Resource": "arn:aws:ec2:*:*:network-interface/*",
"Condition": {
"Null": {
"aws:ResourceTag/AWSElasticDisasterRecoveryManaged": "false"
}
}
},
{
"Sid": "DRSServiceRolePolicy33",
"Effect": "Allow",
"Action": [
"ec2:ModifyNetworkInterfaceAttribute"
],
"Resource": [
"arn:aws:ec2:*:*:instance/*"
]
}
]
}

0 comments on commit ff1d007

Please # to comment.