# @taimos/cdk-construct-gitlab-variable

> An AWS CDK Construct that creates GITLAB CI/CD variables from SecretsManager Secrets

Latest version **1.0.1** (published 2020-01-16) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @taimos/cdk-construct-gitlab-variable
pnpm add @taimos/cdk-construct-gitlab-variable
yarn add @taimos/cdk-construct-gitlab-variable
bun add @taimos/cdk-construct-gitlab-variable
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-01-16 |
| First published | 2020-01-15 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 16.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Thorsten Hoeger |
| Maintainers | hoegertn, taimos-user |
| Keywords | cdk, aws-cdk, construct, gitlab, ci, cd |

## Links

- npm: https://www.npmjs.com/package/@taimos/cdk-construct-gitlab-variable
- Repository: https://github.com/taimos/cdk-construct-gitlab-variable
- Homepage: https://github.com/taimos/cdk-construct-gitlab-variable#readme
- Issues: https://github.com/taimos/cdk-construct-gitlab-variable/issues
- npm.io page: https://npm.io/package/@taimos/cdk-construct-gitlab-variable

## Dependencies (5)

- [@aws-cdk/core](https://npm.io/package/@aws-cdk/core.md) 1.20.0
- [@aws-cdk/aws-lambda](https://npm.io/package/@aws-cdk/aws-lambda.md) 1.20.0
- [@aws-cdk/custom-resources](https://npm.io/package/@aws-cdk/custom-resources.md) 1.20.0
- [@aws-cdk/aws-cloudformation](https://npm.io/package/@aws-cdk/aws-cloudformation.md) 1.20.0
- [@aws-cdk/aws-secretsmanager](https://npm.io/package/@aws-cdk/aws-secretsmanager.md) 1.20.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-01-16
- 1.0.0 — 2020-01-15

## README

[![npm version](https://badge.fury.io/js/%40taimos%2Fcdk-construct-gitlab-variable.svg)](https://badge.fury.io/js/%40taimos%2Fcdk-construct-gitlab-variable)
[![PyPI version](https://badge.fury.io/py/taimos.cdk-construct-gitlab-variable.svg)](https://badge.fury.io/py/taimos.cdk-construct-gitlab-variable)

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

```bash
npm install @taimos/cdk-construct-gitlab-variable

pip3 install taimos.cdk-construct-gitlab-variable
```

## Usage

```ts

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](https://www.apache.org/licenses/LICENSE-2.0).

See [LICENSE](./LICENSE) for more information.

---
_Source: https://npm.io/package/@taimos/cdk-construct-gitlab-variable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
