Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk_iot_core_certificates_v3-0.0.0.tar.gz (14.4 MB view details)

Uploaded Source

Built Distribution

File details

Details for the file cdk_iot_core_certificates_v3-0.0.0.tar.gz.

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.0.tar.gz
Algorithm Hash digest
SHA256 943148dc48356c2712a9e23cd720feb79511022bbb040a145758ccb2f2473b6d
MD5 650a8610632b94938155d7eed291399a
BLAKE2b-256 9fa0bf210dfba8f173b950b6384a060327e88c26dfb82412699669fdb0ea729d

See more details on using hashes here.

File details

Details for the file cdk_iot_core_certificates_v3-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36aa0d6405e0c47cbc652604604798eb0e8d908a7fa3795630983822021075a9
MD5 3f4e83f5dd2f57efa40e8486aabfce48
BLAKE2b-256 f402d2a278c997e17bff90af31c5cce1ca264fa77e5b1da4c98760a2911c4b17

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page