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 without compilation. See https://github.com/aws/jsii/issues/826
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",
    cluster_options={
        "vpc": vpc,
        "version": eks.KubernetesVersion.V1_19
    }
)

# create a default fargate runner with its job executor
provider.create_fargate_runner()

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

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

# TBD - create Amazon EC2 runner for the GitLab
provider.create_ec2_runner(...)

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.

Deploy

cdk deploy -c GITLAB_REGISTRATION_TOKEN=<TOKEN>

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.

Source Distribution

cdk-gitlab-0.1.47.tar.gz (76.2 kB view details)

Uploaded Source

Built Distribution

cdk_gitlab-0.1.47-py3-none-any.whl (78.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdk-gitlab-0.1.47.tar.gz
  • Upload date:
  • Size: 76.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

File hashes

Hashes for cdk-gitlab-0.1.47.tar.gz
Algorithm Hash digest
SHA256 26d999c4d448b468b2124243b2093ccafebacdaa4db9135dc4fbc5bdbf42ecca
MD5 998a3435223aa58ae560d90a3e5be2b1
BLAKE2b-256 2b904ebd51380749aa17a3a68dc60baeaa7633c9d2fd2c641808542cf595ba40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cdk_gitlab-0.1.47-py3-none-any.whl
  • Upload date:
  • Size: 78.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

File hashes

Hashes for cdk_gitlab-0.1.47-py3-none-any.whl
Algorithm Hash digest
SHA256 c360b3d2f227770bb8e25185ed280ed1cddbe2d9621769e3bedfa0d4b7581425
MD5 13cec19e7c85e0db00846531233caa06
BLAKE2b-256 74c76aac343f3d27a61a4ff1ea5ff7bd0767e088e39e2f73cce7ad2db0ce4985

See more details on using hashes here.

Supported by

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