cdk-gitlab-runner
Use AWS CDK to create a gitlab runner, and use gitlab runner to help you execute your Gitlab pipeline job.
What it is and what it does
cdk-gitlab-runner is an AWS CDK construct library that automates the provisioning of GitLab Runner infrastructure on AWS. It generates EC2 instances, VPCs, subnets, security groups, and IAM roles needed to run GitLab CI/CD jobs directly in your AWS environment, eliminating the need to store credentials in GitLab variables.
The package wraps the complexity of setting up a self-hosted runner into a few lines of Python or TypeScript code. It supports customization of instance types, VPCs, IAM policies, security groups, and EBS volumes. By default it creates a T3.micro instance with a public subnet and associated networking. The runner authenticates to GitLab using a registration token and communicates back with your GitLab instance to receive and execute pipeline jobs.
Use it for:
- Deploy to AWS production from GitLab pipelines without exposing AWS credentials in environment variables.
- Run CI/CD jobs that require AWS IAM permissions (S3 access, EC2 management, etc.) with role-based authentication.
- Quickly spin up and tear down self-hosted runners for projects that exceed GitLab's free tier minute limits.
- Customize runner infrastructure (instance size, security groups, VPC) declaratively as part of your CDK stack.
- Integrate GitLab CI/CD with existing AWS CDK-managed infrastructure in a single deployment.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Defines AWS infrastructure for GitLab Runner using AWS CDK, enabling you to deploy and manage CI/CD runners on AWS EC2 with IAM role integration instead of credential management.
No. The repository is archived and abandoned; the maintainer is no longer accepting updates or fixes. While the package itself has no known vulnerabilities and low install friction, you are adopting unmaintained infrastructure-as-code that will not evolve with GitLab Runner or AWS CDK. For new projects, use an actively maintained alternative or manage the runner infrastructure directly with CDK or Terraform.
Install
cdk-gitlab-runner on PyPI
pip
pip install cdk-gitlab-runneruv
uv add cdk-gitlab-runnerpoetry
poetry add cdk-gitlab-runnerInstalling cdk-gitlab-runner
Before you install
Low install friction with a pure-Python wheel. Repository is archived and marked abandoned as of the latest release; maintenance has ceased, so expect no updates or security patches going forward.
License in practice
Licensed under Apache-2.0 (permissive), so you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install cdk-gitlab-runner
from cdk_gitlab_runner import GitlabContainerRunner
import aws_cdk as cdk
stack = cdk.Stack()
runner = GitlabContainerRunner(
stack, 'runner',
gitlabtoken='glrt-YOUR_TOKEN',
gitlabRunnerVersion='15.10'
)
Requires AWS CDK v2 installed and AWS credentials configured; you must obtain a GitLab Runner registration token from your GitLab project or group before instantiation.
Verify before relying
- Whether the package works with GitLab Runner versions after 16.0 or if it has compatibility gaps with recent GitLab releases.
- Current state of the abandoned repository—whether critical bugs or security issues in dependencies have emerged since the last release.
- Whether the default T3.micro instance and generated VPC/subnet configuration remain suitable for modern CI/CD workloads.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — aws-cdk-lib, constructs, jsii, publication |
| Maintenance | abandoned — 59 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 80,460/month — #14,291 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cdk_gitlab_runner-2.4.74-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
aws-cdk.aws-apprunner-alphaProvides AWS CDK constructs for deploying…
permissive · top 15,000 on PyPI
aws-cdk.aws-batchDefines AWS Batch infrastructure (compute…
permissive · top 15,000 on PyPI
aws-cdk.aws-ec2Provides AWS CDK constructs for defining EC2…
permissive · top 15,000 on PyPI
aws-cdk.aws-ecrProvides AWS CDK constructs for defining,…
permissive · top 15,000 on PyPI
aws-cdk-libProvides Python APIs to define and deploy AWS…
permissive · top 5,000 on PyPI
aws-cdk.aws-iamProvides Python constructs for defining AWS IAM…
permissive · top 15,000 on PyPI
aws-cdk.asset-awscli-v1Bundles AWS CLI v1 as a reusable asset for AWS…
permissive · top 5,000 on PyPI
aws-cdk.aws-ecsProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-autoscalingProvides CDK constructs for defining and…
permissive · top 15,000 on PyPI