DEPRECATED - CDK Secrets
This project is deprecated. The original goal of this construct was to provide an API for creating EC2 Key Pairs. The custom resource provider I used had much more functionality. It turned out this additional functionality was never needed and creating EC2 Key Pairs was overly complicated.
To create EC2 Key Pairs you now can use my new construct: cdk-ec2-key-pair
AWS CDK construct to manage secrets. It makes use of a custom resource provider from binxio/cfn-secret-provider.
This package is written in TypeScript and made available via JSII to all other supported languages. Package are available on:
The secret provider can create RSA keys, DSA keys, EC2 key-pairs, IAM user passwords and access keys and generally secrets stored in parameter store or secret store.
All this functionality is provided by the binxio/cfn-secret-provider custom resource.
When it comes to security, you should not trust anyone. By default the secret provider uses the lambda function stored at s3://binxio-public-${AWS_REGION}/lambdas/cfn-secret-provider-1.0.0.zip. You might want to download this file, review its contents and store it in your own bucket or along with your code. You then can create the lambda function from that zip file instead like so:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
code = lambda.Code.from_asset(path.join(__dirname, "../cfn-secret-provider-1.0.0.zip"))
secret_provider = secret.Provider(self, "SecretProvider",
code=code
)
Examples
There is an example application in ./example showing how to create a new EC2 key pair.
Metadata
Release files for cdk-secrets 0.4.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cdk-secrets-0.4.9.tar.gz | 96.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cdk_secrets-0.4.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 191.0 kB
Release files / cdk-secrets-0.4.9.tar.gz
| Download URL | cdk-secrets-0.4.9.tar.gz |
|---|---|
| Size | 96.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4992c92b2e21093ce06c6f72cfbd1bb21c9e2aef5a94fd72f41a815916ea6cb5
|
|
BLAKE2b-256 checksum How to use checksums |
01af4a668f2eff7f2c940d3329d7ed897e7ba04270926d762043d4613c90bc9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
|
Release files / cdk_secrets-0.4.9-py3-none-any.whl
| Download URL | cdk_secrets-0.4.9-py3-none-any.whl |
|---|---|
| Size | 94.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f510381fc654386c9c4c690b745ec80e5bde406328a52a987b9ed457d550f65
|
|
BLAKE2b-256 checksum How to use checksums |
d90bb08e44655ac779c77be1dd3d7a5a8c8ddcc78457b97f15f84da652bc462a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
|