npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cdk-iot-greengrass-fleet-provisioning

v1.0.3

Published

CDK Construct for AWS IoT Greengrass Fleet Provisioning (with AWS IoT Certificates)

Readme

Source PRs Welcome GitHub npm package GitHub Workflow GitHub release Gitpod ready-to-code

CDK Construct for AWS IoT Greengrass Fleet Provisioning (with AWS IoT Certificates)

AWS CDK L3 construct for managing AWS IoT fleet provisioning for Greengrass devices (including AWS IoT Core Certificates).

This construct was largely inspired by the CDK IoT Core Certificates construct developped by devops-at-home which was archived on GitHub hence the need for a new CDK Construct.

As mentioned in the orginal construct, CloudFormation doesn't directly support creation of certificates for AWS IoT Core. Also, in order to provison fleets of devices, the AWS IoT Greengrass requires a number of assets that needs to be manually created including an AWS IoT Certificate.

This construct provides an easy interface for creating AWS IoT Greengrass fleet provisioning assests.

It will create the following:

  • Token Exchange IAM Role
  • Token Exchange IoT Role Alias
  • Fleet Provisioning IAM Role
  • IoT Claim Policy
  • IoT Default Device Policy
  • IoT Fleet Provisioning Template
  • Lambda based Custom resource

The Lambda based Custom resource will:

  • Create an AWS IoT Certificate
  • Store the IoT Certificate generated assest (PEM, Keys and Root CA) in S3
  • Store the IoT Certificate generated assest (PEM, Keys and Root CA) as SSM Parameters

Certificates in S3 & Certificates in SSM Parameter Store

The certificates stored in S3 will be using the following path format :

`<prefix>/<certificate-id>.<object-type>`

The certificates stored in SSM Parameter Store will be using the following name format :

`/<prefix>/<certificate-id>/<object-type>`

where :

  • prefix : provided via the construct attribute resourcePrefix
  • certificate-id : represents the generated AWS IoT Certificate Id
  • object-type : one of the following
    • arn: contains the AWS IoT Certificate ARN
    • pem: contains the AWS IoT Certificate PEM
    • key.prv / key-private: contains the AWS IoT Certificate Public Key
    • key.pub / key-public : contains the AWS IoT Certificate Private Key
    • root / root-ca: contains the AWS Root CA

An additional S3 file with no extension will contain the AWS IoT Certificate Id.

An additional SSM Parameter Store entry (/<prefix>/certificateId) will contain the AWS IoT Certificate Id.

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-greengrass-fleet-provisioning

Usage

import { GreengrassFleetProvisioning } from 'cdk-iot-greengrass-fleet-provisioning';

const {
    tokenExchangeRole, /* iam.Role */
    fleetProvisioningRole, /* iam.Role */
    provisioningClaimPolicy, /* iot.CfnPolicy */
    tokenExchangeRoleAlias, /* iot.CfnRoleAlias */
    deviceDefaultPolicy, /* iot.CfnPolicy */
    fleetProvisionTemplate, /* iot.CfnProvisioningTemplate */
    fleetProvisionCustomResource, /* cfn.CfnCustomResource */

    certificateId, /* string */
    certificateArn, /* string */
    credentialEndpoint, /* string - AWS IoT Credential Endpoint*/
    dataEndpoint, /* string - AWS IoT Data Endpoint*/
} = new GreengrassFleetProvisioning(this, 'greengrass-fleet-provisioning', {
    env: env /* cdk.Environment */,
    resourcePrefix: resourcePrefix /* string*/ ,
    certificateBucket: certificateBucket /* cdk.aws_s3.Bucket*/,
    certificatePrefix: certificatePrefix /* string */,
});