Skip to main content

cdk-iot-core-certificates

Project description

CDK IoT Core Certificates

Source Release GitHub Docs

npm package

Downloads npm downloads

AWS CDK L3 construct for managing certificates for AWS IoT Core

CloudFormation doesn't directly support creation of certificates for AWS IoT Core. This construct provides an easy interface for creating certificates through a custom CloudFormation resource. The private key is stored in AWS Parameter Store.

Installation

This package has peer dependencies, which need to be installed along in the expected version.

For TypeScript/NodeJS, add these to your dependencies in package.json:

  • cdk-iot-core-certificates

Usage

import { ThingWithCert } from 'cdk-iot-core-certificates';

// Creates new AWS IoT Thing called thingName
// Saves certs to /devices/thingName/certPem and /devices/thingName/privKey
// thingName and paramPrefix cannot start with '/'
const { thingArn, certId, certPem, privKey } = new ThingWithCert(this, 'ThingWithCert', {
    thingName: 'integrationTest',
    saveToParamStore: true,
    paramPrefix: 'devices',
});

new CfnOutput(this, 'Output-ThingArn', {
    value: thingArn,
});

new CfnOutput(this, 'Output-CertId', {
    value: certId,
});

new CfnOutput(this, 'Output-CertPem', {
    value: certPem,
});

new CfnOutput(this, 'Output-PrivKey', {
    value: privKey,
});

Project details


Release history Release notifications | RSS feed

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-1.0.53.tar.gz (32.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_iot_core_certificates-1.0.53-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file cdk-iot-core-certificates-1.0.53.tar.gz.

File metadata

File hashes

Hashes for cdk-iot-core-certificates-1.0.53.tar.gz
Algorithm Hash digest
SHA256 058c045561dd4ebe04ad75abc5f4c9b3bdbcb5791094fc2c65985e8b566d338a
MD5 40d755129d4b03d51e3572c7b6c13d4b
BLAKE2b-256 169bd08345b94118a0ef3c13eb78b53e74e92746e645f6b792d6b5ef6677ccb9

See more details on using hashes here.

File details

Details for the file cdk_iot_core_certificates-1.0.53-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk_iot_core_certificates-1.0.53-py3-none-any.whl
Algorithm Hash digest
SHA256 7662f76d7e20edc06cdd575d0a60a04afa5d35de0cec14e499d73fb0de43408b
MD5 47f39f0c5ac6c4f682cd9cfd48688486
BLAKE2b-256 798fc7a36a5063b26ed8261ab4e2ac6ce3798d98b43b485b4149f5c0be4feae6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page