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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for cdk-iot-core-certificates-1.0.29.tar.gz
Algorithm Hash digest
SHA256 cf0280d34134f5e6599250591b1198eceae916c804141d5b0b71026158d2426b
MD5 35e191b58e95f4fec56222b5f26cf310
BLAKE2b-256 b62d27abe4555b0991bc9e80103b101f85c32986f2128d07997acf2b611c3cc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk_iot_core_certificates-1.0.29-py3-none-any.whl
Algorithm Hash digest
SHA256 8e81603669d84706a1cb5ae4865a5dad843ac5e96fc9bbe8dabfd79d1b1d14f3
MD5 9d7f99488f747d387c7aacb8681a1df8
BLAKE2b-256 794255491ed19376bc27b890b378ee34c6a6ebe2866891d4ea0a334d6521b44b

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