In order to build Docker images for Lambda functions with CDK on ARM or other non-Intel platforms, but want the Lambda to be on an x8664 platform, use the platform parameter…
Posts for: #Cdk
Including Assets from Parent Directories in Dockerized Lambda Functions with CDK
If you have a Docker based Lambda that is defined in some directory and there are assets that the Lambda needs in the parent directory, fromimageasset() takes directory and…
CDK Deployment Troubleshooting
There are a number of avenues to explore for troubleshooting a CDK deployment.
Rebuilding Missing Resources in CDK
In AWS CDK, if a resource like a DynamoDB table is missing (maybe it was accidentally manually deleted) with a ResourceNotFound or Unable to retrieve arn error, you can recover…
Passing Secrets into Lambdas in CDK
same: AWS Lambda Return Values for API Triggering, To Build a Lambda from a Dockerfile in CDK
Install Specific CDK Version And-Or By Project
You can install the CDK toolkit for a specific project by omitting -g from the npm install command then invoking it with npx aws-cdk. You can also install the toolkit for a…
AWS API Gateway Changes Break Deployment
If you try to rename a parameter in a deployed API Gateway object via CDK, deployment will break (you won’t be able to deploy the change). This seems to do with how…
To Build a Lambda from a Dockerfile in CDK
To set up a Dockerfile for a Lambda function that relies on non-AWS base images, you have to include the Python package awslambdaric in your requirements and install it. Then,…