CDK Construct for AWS IoT Core certificates and things
Project description
AWS IoT Core Thing with Certificate v3 construct
This is a CDK construct that creates an AWS IoT Core Thing with a certificate and policy using aws-sdk-js-v3.
Cloudformation does not support creating a certificate for an IoT Thing, so this construct uses the AWS SDK to create a certificate and attach it to the Thing.
This construct is a modified version of this excellent construct (cdk-iot-core-certificate) to work with aws-sdk-js-v3.
Installation
npm i cdk-iot-core-certificates-v3
Usage
import { ThingWithCert } from 'cdk-iot-core-certificates-v3';
const { thingArn, certId, certPem, privKey } = new ThingWithCert(this, 'MyThing', {
// The name of the thing
thingName: 'MyThing',
// Whether to save the certificate and private key to the SSM Parameter Store
saveToParamStore: true,
// The prefix to use for the SSM Parameter Store parameters
paramPrefix: 'test',
});
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
Built Distribution
File details
Details for the file cdk_iot_core_certificates_v3-0.0.4.tar.gz
.
File metadata
- Download URL: cdk_iot_core_certificates_v3-0.0.4.tar.gz
- Upload date:
- Size: 14.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41bde2f3036a7b052c93464ceff8646786fd195588f3a528247b341d09798ac9 |
|
MD5 | 3fcc401a6fdcd81dad913ebcafe195ea |
|
BLAKE2b-256 | 72d1c9070e18b0e2300796d0b8ee568e104946e84bf07ec7fb994cc79e89eacf |
File details
Details for the file cdk_iot_core_certificates_v3-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: cdk_iot_core_certificates_v3-0.0.4-py3-none-any.whl
- Upload date:
- Size: 14.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 420ec2e0bcdbe454405e5ce5294153b0a159231d0e2964c8366bbaff758573dc |
|
MD5 | 1fadb8b91753d541424f7a2c2f28ef0e |
|
BLAKE2b-256 | 2dfbb60d2b0bdacfc6a4db54d6786c50dae973636c8833b8a94b13e527d8e442 |