User-data script to bootstrap self-hosted runner on ASG (#4)
authorAsh Berlin-Taylor <ash_github@firemirror.com>
Mon, 1 Mar 2021 10:56:24 +0000 (10:56 +0000)
committerGitHub <noreply@github.com>
Mon, 1 Mar 2021 10:56:24 +0000 (10:56 +0000)
commitecaa76ea8c4c351a2001ae3dd150e6edbcbe19d5
treeb985e9dd50bdaaa5a07e5f4bd0e83ea0364b409c
parente3c7cd4268e5ba956d6046e4730715a2042e3d3d
User-data script to bootstrap self-hosted runner on ASG (#4)

This runner-supervisor script has been manually uploaded to S3 (it was too big
to include in the userdata)

The cloud init script has been manually uploaded by running, and the ASG
is configured to pick the Latest version already, so new instances will
start using the new script.

```
aws --profile airflow ec2 create-launch-template-version \
    --launch-template-name GithubRunner \
    --launch-template-data UserData="$(base64 -w0 cloud-init.yml)" \
    --source-version='$Latest'
```
.gitignore [new file with mode: 0644]
cloud-init.yml [new file with mode: 0644]
scripts/runner-supervisor.py [new file with mode: 0755]