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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.3.tar.gz
Algorithm Hash digest
SHA256 43c4d4af81eb8fb6f38adbc430cb2fb1fb71f8f9fd505ea3e105d094d964c413
MD5 dac5591e0957b12dad182c71c88202bb
BLAKE2b-256 ec4271c9083d9aeb1671f2881853919d566854e3e050c2cfb26677693b983661

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cdd37108d0ebab97a3864e9554e879901a5ee815b474873adebf87caf43802df
MD5 f3c1d0ba4d5cc1de5b99ae33a64cb082
BLAKE2b-256 99cdf941af80ebc630f89fd4f118ba91b998d4d449edf2b5e911625575db0a35

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