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 Downloads npm downloads

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


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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f974797f012463e9138e82f3ad013772eb76e67c7e5c2a9293d8cc594cb230f2
MD5 4b7919907f09416d9ed5b6b114602df6
BLAKE2b-256 fc1957568ed7489afad4277319ec3eaea4869ea90211a5ca350ec23873a8f6a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3377c088d2539cb32b23817afa56e2524f23c43975441663bff5cdf01e77a22e
MD5 c65192806dde4179c326203553add525
BLAKE2b-256 76756869fdf10976eadcdcb0e097864b5dc03c80eb04ec7bcf39d75fee3bb005

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