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.

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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4bb80bef73afb9efd9a9e5750336183ee083eb40aacc6c4aedd939bec3299052
MD5 6df540e87d38a455a0a5d5ef4d2692c2
BLAKE2b-256 8e689e0c4ae33cc2b11eca4577874a44af214339d68bca02858c815a168c905d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c81d3896c49475ca7738fdb8ff1be115d778597c48fb9e974fc0290a4cd67199
MD5 3e9ef8aac17b6fb9abaecc7e312c6a0c
BLAKE2b-256 932e10d1283cc9fa8ea81c064974515f67f9bf1d1dece16a5fbc696c01334e59

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