Skip to content

Commit 640c818

Browse files
authored
add stop alarm instructions
1 parent 87a9dba commit 640c818

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ Just don't forget to turn the instance off when validated it to work.
123123
Finally, once created, the script needs to be updated to that new AMI id (key `ec2-image-id`) in `.github/workflows/main.py`
124124

125125

126+
## Stop instance alarm
127+
128+
It looks like occasionally the instance doesn't stop and continues running.
129+
130+
I added a stop alarm to automatically kill the instance after 1h if util < 10% following the exact instructions from:
131+
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UsingAlarmActions.html
132+
133+
126134
## Guides
127135

128136
Set up guide: https://github.com/machulav/ec2-github-runner

0 commit comments

Comments
 (0)