An AWS CDK Construct that creates GITLAB CI/CD variables from SecretsManager Secrets
Project description
A CDK L3 Construct for storing Gitlab CI variables from a SecretsManager secret
Installation
You can install the library into your project using npm or pip.
npm install @taimos/cdk-construct-gitlab-variable
pip3 install taimos.cdk-construct-gitlab-variable
Usage
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
secret = Secret(self, "DBSecret",
description="Some Secret",
generate_secret_string={
"secret_string_template": "{\"username\":\"admin2\"}",
"generate_string_key": "password",
"password_length": 20
}
)
gitlab_secret = Secret.from_secret_arn(self, "GitlabToken", "arn:aws:secretsmanager:eu-central-1:123456789012:secret:GitlabToken-abcde")
db_password = GitlabVariable(self, "GitlabVarPassword",
gitlab_secret=gitlab_secret,
secret=secret,
secret_field="password",
project_id="group/secrets-test",
variable_name="RDS_PASSWORD"
)
Contributing
We welcome community contributions and pull requests.
License
The CDK construct library is distributed under the Apache License, Version 2.0.
See LICENSE for more information.
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
File details
Details for the file taimos.cdk-construct-gitlab-variable-1.0.1.tar.gz
.
File metadata
- Download URL: taimos.cdk-construct-gitlab-variable-1.0.1.tar.gz
- Upload date:
- Size: 15.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8df0c06a265cc68170cecc9615bbc2441965d0e40cba8ec84a9c4660861d7aa |
|
MD5 | 6fbb4e0698d268b15987a6a7f94e9e5f |
|
BLAKE2b-256 | b32e672613c14739f06a941a3a410cb9d0612007797b7253265b8409b796081f |