Skip to main content

NPM version PyPI version release

cdk-gitlab

High level CDK construct to provision GitLab integrations with AWS

Install

Use the npm dist tag to opt in CDKv1 or CDKv2:

// for CDKv2
npm install cdk-gitlab
or
npm install cdk-gitlab@latest

// for CDKv1
npm install cdk-gitlab@cdkv1

Sample

import { Provider, FargateJobExecutor, FargateRunner, JobExecutorImage } from 'cdk-gitlab';

const provider = new Provider(stack, 'GitlabProvider', { vpc });

// create a Amazon EKS cluster
provider.createFargateEksCluster(stack, 'GitlabEksCluster', {
  clusterOptions: {
    vpc,
    version: eks.KubernetesVersion.V1_19,
  },
});

// create a default fargate runner with its job executor
provider.createFargateRunner();

// alternatively, create the runner and the executor indivicually.
// first, create the executor
const executor = new FargateJobExecutor(stack, 'JobExecutor', {
  image: JobExecutorImage.DEBIAN,
});

// second, create the runner with the task definition of the executor
new FargateRunner(stack, 'FargateRunner', {
  vpc,
  executor,
});

// TBD - create Amazon EC2 runner for the GitLab
provider.createEc2Runner(...);

});

Fargate Runner with Amazon 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.

Deploy

cdk deploy -c GITLAB_REGISTRATION_TOKEN=<TOKEN>

Metadata

Release files for cdk-gitlab 2.0.241

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdk-gitlab 2.0.241
File Size Uploaded Provenance Actions
cdk-gitlab-2.0.241.tar.gz 2.7 MB Without provenance Details for cdk-gitlab-2.0.241.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cdk-gitlab 2.0.241
File Interpreter ABI Platform Actions
cdk_gitlab-2.0.241-py3-none-any.whl Python 3 none any Details for cdk_gitlab-2.0.241-py3-none-any.whl

Total release size: 5.3 MB

Release files / cdk-gitlab-2.0.241.tar.gz

Download URL cdk-gitlab-2.0.241.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
d5f500631cf067aeeab9a225faf0a7ad2efdaf88bbed3ed538f2f641381de344
BLAKE2b-256 checksum
How to use checksums
ae11e0ee7c01b1296309004f1dda9442fe32c0453659b90ddb17a92bd2368dfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / cdk_gitlab-2.0.241-py3-none-any.whl

Download URL cdk_gitlab-2.0.241-py3-none-any.whl
Size 2.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0e6990781fa591bc0b2f6f1b51848cad3161f2b8a92dce536695c39d99e647ee
BLAKE2b-256 checksum
How to use checksums
ff3629ed8659c5e504e2fb500459c362950306537e1e25452a702f88c2c38cc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for cdk-gitlab 2.0.241

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.241 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page