Self-hosted GitHub Actions on ECS

How do Self-hosted GitHub Runners work?

Dockerisation

Environment Variables

Deploying to ECS

Task Definition

GitHub Actions Settings

Testing with a workflow

It works! 🎉

curl 169.254.170.2$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI{
"AccessKeyId": "ACCESS_KEY_ID",
"Expiration": "EXPIRATION_DATE",
"RoleArn": "TASK_ROLE_ARN",
"SecretAccessKey": "SECRET_ACCESS_KEY",
"Token": "SECURITY_TOKEN_STRING"
}

Considerations and wrap up

--

--

--

Climber and Software Engineer. Passionate about mountains (especially winter sports), software engineering, people and the trivia in-between.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Type II Fun - The wafflings of Simon Mayes

Type II Fun - The wafflings of Simon Mayes

Climber and Software Engineer. Passionate about mountains (especially winter sports), software engineering, people and the trivia in-between.

More from Medium

232. Implement Queue using Stacks

How to exclude specific log in Fluent Bit?

Kubernetes Architecture

Jenkins + k8s + Buildkit: life behind the corporate proxy