question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(aws-lambda): cannot deploy DockerImageFunction

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
FloWicommented, Apr 3, 2021

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 😉

1reaction
nija-atcommented, Apr 7, 2021

Since this seems to have been resolved, marking this as ‘closing soon’. Let us know if the issue still persists.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found