AWS CloudFormation does not support Amazon Lex / AWS Lex. This is a Lambda-backed custom resource to add support for AWS Lex Intents to CloudFormation.
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.
After using this Launch Page, your CloudFormation templates will have access to
Custom::LexIntent 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:
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::LexIntent.
After you do, verify the slot exists in the Amazon Lex Console Intent view!
./example.template.json for a sample CloudFormation template. The example uses
Parameters and dynamic
ServiceToken ingestion using
Properties exactly follow the API endpoint parameter structure the nodejs SDK uses. The method can be found in the AWS docs here
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 :)
Want More CloudFormation?
Work is (extremely) active, published here:
Andrew's NPM Account