Skip to main content

High level CDK construct to provision GitLab integrations with AWS

Project description

NPM version PyPI version release

cdk-gitlab

High level CDK construct to provision GitLab integrations with AWS

Sample

# Example automatically generated from non-compiling source. May contain errors.
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>

Project details


Release history Release notifications | RSS feed

This version

2.0.2

Download files

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

Source Distribution

cdk-gitlab-2.0.2.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_gitlab-2.0.2-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file cdk-gitlab-2.0.2.tar.gz.

File metadata

  • Download URL: cdk-gitlab-2.0.2.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for cdk-gitlab-2.0.2.tar.gz
Algorithm Hash digest
SHA256 2c6c997bc434fe823253a4d35cdee09a48bbc037ca80654ee5ecbee9d5b815fe
MD5 3085817d11c70143405e9835810f7d47
BLAKE2b-256 c191cf65b071fe378ad8454ce221a79044172d86123b16e50b34f4ace0d15bbf

See more details on using hashes here.

File details

Details for the file cdk_gitlab-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: cdk_gitlab-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for cdk_gitlab-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d764e265bfb71840710c2edd6c4dad83b1162517bf826701735703b0bb8d6c3f
MD5 c2ce8bd5daf95118c4f385bd67c5967b
BLAKE2b-256 4ed494ce68be3b557e82c71d9e5cc5fb220310da0d3c4f7429cd898140b898a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page