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.

elements

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.

View on Construct Hub Open in Visual Studio Code npm version Build Status Release Status License npm downloads

Installation

npm i cdk-iot-core-certificates-v3

Usage

import { ThingWithCert } from 'cdk-iot-core-certificate-v3';

const thing = 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',
});

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.2.tar.gz (14.4 MB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8deca965e42e2b3a2bb74567d15c482490ab12b8143fd68f89f8948704b13a69
MD5 a673562bb5bfadac7dadf95d424f6dd7
BLAKE2b-256 04c2ff73e3b8a5cf5dffbf63ccf12ff46edc01ba926b6a2782c343d104913231

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e97e23d980dc2f6a9ada967c6bab0d357214d372a9337def2cdb880fa7dc9b0c
MD5 7d637205843f65f1dc6b6124fe62f69b
BLAKE2b-256 0d9d3750b7aa541374216ef748623ae9bf8014b5cabeb41f230e33c2a481b164

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