Skip to main content

High level CDK construct to provision GitLab integrations with AWS

Project description

NPM version PyPI version Release


High level CDK construct to provision GitLab integrations with AWS


# Example automatically generated without compilation. See
from cdk_gitlab import Provider, FargateJobExecutor, FargateRunner, JobExecutorImage

provider = Provider(stack, "GitlabProvider", vpc=vpc)

# create a Amazon EKS cluster
provider.create_fargate_eks_cluster(stack, "GitlabEksCluster",
        "vpc": vpc,
        "version": eks.KubernetesVersion.V1_19

# create a default fargate runner with its job executor

# alternatively, create the runner and the executor indivicually.
# first, create the executor
executor = FargateJobExecutor(stack, "JobExecutor",

# second, create the runner with the task definition of the executor
FargateRunner(stack, "FargateRunner",

# TBD - create Amazon EC2 runner for the GitLab

Fargate Runner with Aamzon ECS

On deployment with createFargateRunner(), the Fargate Runner will be provisioned in Amazon ECS with AWS Fargate and Amazon ECS Capacity Providers. By default, the FARGATE and FARGATE_SPOT capacity providers are available for the Amazon ECS cluster and the runner and job executor will run on FARGATE_SPOT. You can specify your custom clusterDefaultCapacityProviderStrategy and serviceDefaultCapacityProviderStrategy properties from the FargateRunner construct for different capacity provider strategies.



Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cdk-gitlab, version 0.1.96
Filename, size File type Python version Upload date Hashes
Filename, size cdk_gitlab-0.1.96-py3-none-any.whl (46.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cdk-gitlab-0.1.96.tar.gz (48.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page