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 🙏

© 2024 – Pkg Stats / Ryan Hefner

cfn-lex-bot

v1.0.3

Published

AWS CloudFormation Custom Lambda Resource | AWS Lex Bot

Downloads

5

Readme

cfn-lex-bot

Purpose

AWS CloudFormation does not support Amazon Lex / AWS Lex. This is a Lambda-backed custom resource to add support for AWS Lex Bots to CloudFormation.

This package on NPM
This package on GitHub

Implementation

This Lambda makes use of the Lambda-Backed CloudFormation Custom Resource flow module, cfn-lambda (GitHub / NPM).

Installation

This package uses cfn-lambda (GitHub / NPM) Launcher Pages, so you can install this in your AWS Account without downloading anything! Just visit my (the maintainer) Launch Page and click Launch on the us-east-1 region. It only supports installation in the us-east-1 region right now, since that's the only AWS region Amazon Lex is supported in right now.

Maintainer's Launcher Page

After using this Launch Page, your CloudFormation templates will have access to Custom::LexBot resources as long as you add ServiceToken to the Properties for the resource and use it like in the example template. The ServiceToken is available to you in the Outputs of the CloudFormation Stack the Launch Page link creates.

Furthermore, you can simply Fn::ImportValue the installed ServiceToken Lambda ARN using:

  "Fn::ImportValue": "cfn-lex-bot-1-0-3-ServiceToken"

If you clone this repo and run npm run deploy, it will do the same thing / install the same way that clicking on the Launch link will.

You can then deploy the example template included in this module: Example Template for Custom::LexBot.

After you do, verify the slot exists in the Amazon Lex Console Bot view!

Usage

See ./example.template.json for a sample CloudFormation template. The example uses Parameters and dynamic ServiceToken ingestion using Fn::ImportValue fully.

The Properties exactly follow the API endpoint parameter structure the nodejs SDK uses. The method can be found in the AWS docs here

Miscellaneous

Collaboration & Requests

Submit pull requests or tweet @ayetempleton if you want to get involved with roadmap as well, or if you want to do this for a living :)

License

MIT

Want More CloudFormation?

Work is (extremely) active, published here:
Andrew's NPM Account