(aws-lambda): cannot deploy DockerImageFunction
See original GitHub issueWhen I try to deploy a simple DockerImageFunction using the default parameters, I get an error related to code signing not being supported.
Reproduction Steps
test_function = lambda_.DockerImageFunction(
self,
"TestLambda",
code=lambda_.DockerImageCode.from_ecr(
repository=ecr.Repository.from_repository_name(
self,
“TestEcr",
repository_name=“test",
),
tag=“0.0.1",
),
)
What did you expect to happen?
A new Lambda is deployed.
What actually happened?
Resource handler returned message: "Code signing is not supported for functions created with container images. (Service: Lambda, Status Code: 400,
Request ID: 901461c4-b094-4b22-bf87-fc3d4cdb3b67, Extended Request ID: null)" (RequestToken: fc7310cc-6c90-a01c-78da-a422c2c2848b, HandlerErrorCod
e: InvalidRequest)
Environment
- CDK CLI Version : 1.95.2
- aws-cdk.core: 1.96.0
- aws-cdk.aws-lambda: 1.96.0
- Node.js Version: v14.15.5
- OS : macOS Catalina Version v14.15.5
- Language (Version): Python 3.8.2
Other
The change happened overnight. It was working one day and the next one not, without any change in the environment. Also, when I manually create a Lambda from the console using the same Iamge, it works.
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Deploying Lambda functions as container images
Lambda supports two types of deployment packages: container images and .zip ... You cannot convert an existing container image function to use a...
Read more >Creating Lambda container images - AWS Documentation
Create a container image for a Lambda function by using an AWS provided ... To deploy a container image to Lambda, you need...
Read more >Troubleshoot deployment issues in Lambda
This issue can occur when you specify an Amazon S3 object in a call to UpdateFunctionCode, or use the package and deploy commands...
Read more >DockerImageFunction — AWS Cloud Development Kit 2.55.1 ...
Create a lambda function where the handler is a docker image. ... Optional [ bool ]) – Lambda Functions in a public subnet...
Read more >DockerImageFunction — AWS Cloud Development Kit 1.183.0 ...
Create a lambda function where the handler is a docker image. ... Optional [ bool ]) – Lambda Functions in a public subnet...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for opening the issue. I have the same problem. Worked on Thursday and now it’s broken 😦 I guess it’s aws’ way of telling us to not work over the easter-holidays 😉
Since this seems to have been resolved, marking this as ‘closing soon’. Let us know if the issue still persists.