Skip to content

Instantly share code, notes, and snippets.

@thomaskanzig
thomaskanzig / configure-gitlab-ci-runner-with-docker-executor-using-aws-ec2.md
Last active June 14, 2025 17:08
Configure GitLab CI Runner with Docker executor using AWS EC2

Configure GitLab CI Runner with Docker executor using AWS EC2

In this tutorial you will see how you can create you gitlab-ci.yml file in your repository and execute jobs on gitlab pipelines.

1. Create a VM on AWS EC2

  • In AWS, create an instance and choose the Amazon Linux 2 AMI machine.
  • Create a new key pair with the name similar like gitlab-runner. Isn't needed to be the same, just a name so you can identfy the purpose.
    • The key pair type can be ED25519
#GUID Settings
$guidChangePassword = new-object Guid ab721a53-1e2f-11d0-9819-00aa0040529b
$guidLockoutTime = new-object Guid 28630ebf-41d5-11d1-a9c1-0000f80367c1
$guidPwdLastSet = new-object Guid bf967a0a-0de6-11d0-a285-00aa003049e2
$guidComputerObject = new-object Guid bf967a86-0de6-11d0-a285-00aa003049e2
$guidUserObject = new-object Guid bf967aba-0de6-11d0-a285-00aa003049e2
$guidLinkGroupPolicy = new-object Guid f30e3bbe-9ff0-11d1-b603-0000f80367c1
$guidGroupPolicyOptions = new-object Guid f30e3bbf-9ff0-11d1-b603-0000f80367c1
$guidResetPassword = new-object Guid 00299570-246d-11d0-a768-00aa006e0529