Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@
// launch templates. That authorization check covers every EC2 resource
// referenced by the template and ASG placement, not only the template.
{
"label": "Use runtime launch templates",
"grant": {
"actions": ["ec2:RunInstances"]
},
"binding": {
"stack": {
"resources": [
"arn:aws:ec2:${awsRegion}:${awsAccountId}:launch-template/*",
"arn:aws:ec2:${awsRegion}:${awsAccountId}:security-group/*"
"arn:aws:ec2:${awsRegion}:${awsAccountId}:launch-template/*"
],
"condition": {
"StringEquals": {
Expand All @@ -77,8 +77,7 @@
},
"resource": {
"resources": [
"arn:aws:ec2:${awsRegion}:${awsAccountId}:launch-template/*",
"arn:aws:ec2:${awsRegion}:${awsAccountId}:security-group/*"
"arn:aws:ec2:${awsRegion}:${awsAccountId}:launch-template/*"
],
"condition": {
"StringEquals": {
Expand All @@ -89,6 +88,41 @@
}
}
},
// The ComputeCluster security group is setup-owned boundary
// infrastructure. Runtime may use it to launch workers, but may not
// mutate or delete it through this permission.
{
"label": "Use setup compute security groups",
"grant": {
"actions": ["ec2:RunInstances"]
},
"binding": {
"stack": {
"resources": [
"arn:aws:ec2:${awsRegion}:${awsAccountId}:security-group/*"
],
"condition": {
"StringEquals": {
"aws:ResourceTag/${stackTag}": "${stackPrefix}",
"aws:ResourceTag/${managedByTag}": "setup",
"aws:ResourceTag/${resourceTag}": "compute"
}
}
},
"resource": {
"resources": [
"arn:aws:ec2:${awsRegion}:${awsAccountId}:security-group/*"
],
"condition": {
"StringEquals": {
"aws:ResourceTag/${stackTag}": "${stackPrefix}",
"aws:ResourceTag/${managedByTag}": "setup",
"aws:ResourceTag/${resourceTag}": "compute"
}
}
}
}
},
{
"grant": {
"actions": ["ec2:RunInstances"]
Expand Down
Loading
Loading