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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.6.tar.gz
Algorithm Hash digest
SHA256 f34f10a71a492208c7ff5d28f90eb2a1fb5cc5345fce2534b3e26c77aa613c87
MD5 b4370ac4efdc34576b082d45b54ee869
BLAKE2b-256 7e550820569c2323c298330ffe5723293c7916795be3bc2025ab0229f2c567ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates_v3-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5cd5d137cf7d4bbe4181bfa8152b88646e3315e42376355e18bd8d1208f05eb9
MD5 4c90b5681a18e81c31fde33165042463
BLAKE2b-256 306225e6af104d31045e90b75d096bd110331d015071679da269c2a99c4ff748

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