@taimos/cdk-construct-gitlab-variable
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

npm version PyPI version

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

const secret = new Secret(this, 'DBSecret', {
    description: 'Some Secret',
    generateSecretString: {
        secretStringTemplate: '{"username":"admin2"}',
        generateStringKey: 'password',
        passwordLength: 20,
    }
});

const gitlabSecret = Secret.fromSecretArn(this, 'GitlabToken', 'arn:aws:secretsmanager:eu-central-1:123456789012:secret:GitlabToken-abcde');

const dbPassword = new GitlabVariable(this, 'GitlabVarPassword', {
    gitlabSecret,
    secret,
    secretField: 'password',
    projectId: 'group/secrets-test',
    variableName: '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.

Package Sidebar

Install

npm i @taimos/cdk-construct-gitlab-variable

Weekly Downloads

1

Version

1.0.1

License

Apache-2.0

Unpacked Size

17.2 MB

Total Files

24

Last publish

Collaborators

  • hoegertn
  • taimos-user