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-certificate-v3
Usage
import { ThingWithCert } from 'cdk-iot-core-certificate-v3';
const thing = new ThingWithCert(this, 'MyThing', {
thingName: 'MyThing',
saveToParamStore: true,
paramPrefix: 'test',
});
const thingArn = thing.thingArn;
const certId = thing.certId;
const certPem = thing.certPem;
const privateKey = thing.privKey;
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.0.tar.gz
.
File metadata
- Download URL: cdk_iot_core_certificates_v3-0.0.0.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 | 943148dc48356c2712a9e23cd720feb79511022bbb040a145758ccb2f2473b6d |
|
MD5 | 650a8610632b94938155d7eed291399a |
|
BLAKE2b-256 | 9fa0bf210dfba8f173b950b6384a060327e88c26dfb82412699669fdb0ea729d |
File details
Details for the file cdk_iot_core_certificates_v3-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: cdk_iot_core_certificates_v3-0.0.0-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 | 36aa0d6405e0c47cbc652604604798eb0e8d908a7fa3795630983822021075a9 |
|
MD5 | 3f4e83f5dd2f57efa40e8486aabfce48 |
|
BLAKE2b-256 | f402d2a278c997e17bff90af31c5cce1ca264fa77e5b1da4c98760a2911c4b17 |