High level CDK construct to provision GitLab integrations with AWS
Project description
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_eks_cluster(stack, "GitlabEksCluster",
vpc=vpc,
version=eks.KubernetesVersion.V1_18
)
# 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={"task": executor.task_definition_arn}
)
# TBD - create Amazon EC2 runner for the GitLab
provider.create_ec2_runner(...)
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.8.tar.gz
(36.3 kB
view hashes)
Built Distribution
cdk_gitlab-0.1.8-py3-none-any.whl
(34.9 kB
view hashes)
Close
Hashes for cdk_gitlab-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d35c4be7a09fc7912aa6ee64ab90f74f239a416e8a9b4556c5010450ce57abc |
|
MD5 | 79867391d95c643a34f805ecec025f68 |
|
BLAKE2b-256 | c738051f988a54b022c38cf5c5cfc792462219a794d50ceb9e8f80f9f9920912 |