Skip to content

Commit 266fcbd

Browse files
committed
limit termination to only the instance itself
1 parent 29ce8ec commit 266fcbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/runners/policies/instance-ec2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"Resource": "*",
88
"Condition": {
99
"StringEquals": {
10-
"ec2:ResourceTag/Application": "github-action-runner"
10+
"aws:ARN": "$${ec2:SourceInstanceARN}"
1111
}
1212
}
1313
}

0 commit comments

Comments
 (0)