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.5.tar.gz
.
File metadata
- Download URL: cdk_iot_core_certificates_v3-0.0.5.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 | f974797f012463e9138e82f3ad013772eb76e67c7e5c2a9293d8cc594cb230f2 |
|
MD5 | 4b7919907f09416d9ed5b6b114602df6 |
|
BLAKE2b-256 | fc1957568ed7489afad4277319ec3eaea4869ea90211a5ca350ec23873a8f6a5 |
File details
Details for the file cdk_iot_core_certificates_v3-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: cdk_iot_core_certificates_v3-0.0.5-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 | 3377c088d2539cb32b23817afa56e2524f23c43975441663bff5cdf01e77a22e |
|
MD5 | c65192806dde4179c326203553add525 |
|
BLAKE2b-256 | 76756869fdf10976eadcdcb0e097864b5dc03c80eb04ec7bcf39d75fee3bb005 |