High level CDK construct to provision GitLab integrations with AWS


License
Apache-2.0
Install
pip install cdk-gitlab==0.1.58

Documentation

NPM version PyPI version Release

cdk-gitlab

High level CDK construct to provision GitLab integrations with AWS

Sample

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

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

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

// 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: { task: executor.taskDefinitionArn },
});

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

});

Deploy

cdk deploy -c GITLAB_REGISTRATION_TOKEN=<TOKEN>