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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.4.tar.gz
Algorithm Hash digest
SHA256 41bde2f3036a7b052c93464ceff8646786fd195588f3a528247b341d09798ac9
MD5 3fcc401a6fdcd81dad913ebcafe195ea
BLAKE2b-256 72d1c9070e18b0e2300796d0b8ee568e104946e84bf07ec7fb994cc79e89eacf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 420ec2e0bcdbe454405e5ce5294153b0a159231d0e2964c8366bbaff758573dc
MD5 1fadb8b91753d541424f7a2c2f28ef0e
BLAKE2b-256 2dfbb60d2b0bdacfc6a4db54d6786c50dae973636c8833b8a94b13e527d8e442

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