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. 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 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

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.224.tar.gz (49.5 kB view details)

Uploaded Source

Built Distribution

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

cdk_gitlab-0.1.224-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdk-gitlab-0.1.224.tar.gz
  • Upload date:
  • Size: 49.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for cdk-gitlab-0.1.224.tar.gz
Algorithm Hash digest
SHA256 2fe4c7f85d33165e92c9eb405845b490cf9ea036fcd3ca51b96749812c79be15
MD5 c2591683498d0e8ba02e308a79177934
BLAKE2b-256 2454c5fef4cd589ece0233428de6f301804a30c08f16c6ea7e6a59e5c5114e51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cdk_gitlab-0.1.224-py3-none-any.whl
  • Upload date:
  • Size: 47.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for cdk_gitlab-0.1.224-py3-none-any.whl
Algorithm Hash digest
SHA256 14e4389a5a90d1a6233c9e3c8001208ff45066e5a0160e55e7a05411bcbbd4f6
MD5 89e5987cf72c95ef98c0f736a75269d2
BLAKE2b-256 f6b1e6031d1f3347df494d369716be3a05397798edffafc56e7fb124132a5e11

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