Currently using DockerImageFunction, but I can’t figure out how to set the CMD Override. Any advice would be appreciated.
Repo: https://github.com/alphaHades/Dockerized-Lambda-NR/blob/main/lib/docker-lambda-aws-stack.ts
Currently using DockerImageFunction, but I can’t figure out how to set the CMD Override. Any advice would be appreciated.
Repo: https://github.com/alphaHades/Dockerized-Lambda-NR/blob/main/lib/docker-lambda-aws-stack.ts
2
Answers
Here’s an example which is taken directly from the CDK documentation. It contains all relevant features, but importantly shows how to set
cmd
:https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AssetImageCodeProps.html