aws-samples / aws-lex-v2-cfn-cr Goto Github PK
View Code? Open in Web Editor NEWAmazon Lex V2 CloudFormation Custom Resource
License: Apache License 2.0
Amazon Lex V2 CloudFormation Custom Resource
License: Apache License 2.0
Hello,
I noticed that boto3
now supports an additional engine
property for voiceSettings
when creating or updating a bot locale.
This value can be either standard
or neural
and allows for the use of Polly neural voice synthesis which results in a significantly better experience when interacting with a Lex bot.
When I attempted to use the new engine
property with version 0.3.0
of this package from the Serverless Application Repository, the custom resource function produced the following error:
{
"timestamp": "2021-11-24 00:02:37,490",
"level": "ERROR",
"location": "root.update_bot:484",
"RequestType": "Update",
"StackId": "arn:aws:cloudformation:us-east-1:1234567890:stack/StackName/StackId",
"RequestId": "[FILTERED]",
"LogicalResourceId": "Resource",
"aws_request_id": "[FILTERED]",
"message": "failed to create locale: 'engine'"
}
From what I can see, this new attribute was added in boto3 >= 1.20.9
(documentation).
I believe this custom resource can support the new property by simply updating the boto3
package to a newer version and publishing a new release to the Serverless Application Repository.
Hi there!
Thanks for making such a great resource - we've always struggled with Lex tooling in the past, so it's great to see others providing options and custom resources!
It looks like a previous commit removed the poll_create
and poll_update
functions due to limitations with rule payload sizes.
I see the poll_delete
function still exists though. Was it missed?
We're able to build a rather large bot, but it fails to delete or roll back properly if there's an error in the stack.
Here's the error message we're getting:
Received response status [FAILED] from custom resource.
Message returned: ERROR: (truncated) , "CrHelperRule": "arn:aws:events:us-east-1:123456789000:rule/LexBotExample", "CrHelperPermission": "LexBotExample"}' at 'targets.1.member.input' failed to satisfy constraint:
Member must have length less than or equal to 8192
Is there a way this error can be resolved?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.