Category: HowTo

AWS Chime StartBotConversation Service Limit

I am working on a Amazon Chime application that provides natural language and GenAI features to a legacy phone system. After deploying the app into a new account, I got the following error in my SMA Lambda Handler when trying to invoke the Amazon Lex bot:

How to Deploy CDK Using Lambda

I really like the declarative nature of CloudFormation - you describe an end-state, and it computes the diffs. CDK gives me even more flexibility in creating complex apps. Recently I built a CDK web a

CDK Construct for Athena DynamoDB Connector

The AWS Athena connector for DynamoDB enables you to query data stored in Amazon DynamoDB using Amazon Athena, which is typically used to query structured data in S3 using standard SQL. Since DynamoDB

Dynamic AWS IAM Policies

We maintain a CloudFormation custom resource provider for Amazon Connect. The provider has grown organically, and as new features were added, the default role policy has become large. The provider can

10x API Start-up Boost

I while ago I optimized my Screen Saver Gallery API by loading a flat data file into lambda memory. A nightly job selects a random subset of the database and stores it in S3, and the API uses that fil

AWS SAM Multi-Region Packaging Script

I use this bash loop to package an AWS SAM template to multiple regions. This script stages the CloudFormation template and assets in a regional bucket. You can share the bucket with other accounts vi

Adding Assets to CDK Staging Bucket

Today I discovered that you can deploy arbitrary files to the CDK staging bucket with a human-readable file name! This feature is awesome if you are pre-synthing CDK apps to CloudFormation Templates.

CDK package.json Scripts

I found the following package.json scripts very convenient when managing a complex CDK app. The key is the -- operator, which allows us to append additional parameters.

Speed up CDK Pipelines Deployment

I recently converted a large CDK app to use CDK Pipelines. I LOVE how quickly it was to get working but it generated a UGLY and SLOW pipeline.

Write config.json to S3 with AWS CDK

To make prebuilt SPA installers with CDK I like to keep environment configuration outside of the minified code via a config.json file. This allows me to build the app once and move it between environments and stages.