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_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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size cdk_gitlab-0.1.33-py3-none-any.whl (73.9 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size cdk-gitlab-0.1.33.tar.gz (75.5 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for cdk_gitlab-0.1.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b469f50340deb30e464bba1f7aa487df092cf78ea2fc48cb4371871d146d48eb |
|
MD5 | 948e8238758b510327a8d6300fecea55 |
|
BLAKE2-256 | 59e059c5e66e8ebe9e6c88b6d0b15b414d6df38b66c02d900b5fc96f720d7e32 |