Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS::Lambda::Function - Code-ZipFile #80

Closed
rclark opened this issue Aug 1, 2019 · 50 comments
Closed

AWS::Lambda::Function - Code-ZipFile #80

rclark opened this issue Aug 1, 2019 · 50 comments
Labels
compute EC2, ECR, ECS, EKS, Lambda, Batch, Elastic Beanstalk, Serverless Application Repository
Milestone

Comments

@rclark
Copy link

rclark commented Aug 1, 2019

2. Scope of request

Support for function code via ZipFile in Lambda functions with any node.js/python runtime

3. Expected behavior

I should be able to use the ZipFile attribute for any node.js/python runtime I choose

6. Category (required) - Will help with tagging and be easier to find by other users to +1

Compute

@TheDanBlanco TheDanBlanco added the compute EC2, ECR, ECS, EKS, Lambda, Batch, Elastic Beanstalk, Serverless Application Repository label Aug 1, 2019
@kalrish
Copy link

kalrish commented Sep 16, 2019

Please consider Ruby as well.

@scliffo
Copy link

scliffo commented Oct 18, 2019

Node.js 8.10 reaches EOL on 31 Dec 2019.
What is the ETA for ZipFile support with Node.js 10.x runtime?

@benkehoe
Copy link
Contributor

@oussemos, it's generally better GitHub etiquette to use reactions rather than "+1" comments, which create clutter and generate notifications. It's the "+😀" button on the header bar for a comment. You can also click an existing reaction to add to it.
See also: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/

@nija-at
Copy link

nija-at commented Nov 13, 2019

Can we know what the status of this issue is?

With NodeJS8 being deprecated, this feature is crucial for customers to upgrade their Lambda function to Node10 when they are using inline code in their CloudFormation template.

@benkehoe
Copy link
Contributor

image

@nija-at
Copy link

nija-at commented Nov 13, 2019

Correcting myself - tried this out myself and it seems that CloudFormation now supports inline code for Nodejs10.

nija-at pushed a commit to aws/aws-cdk that referenced this issue Nov 18, 2019
Update NODE_10_X runtime to allow inline code in CloudFormation, per
aws-cloudformation/cloudformation-coverage-roadmap#80.

close #4653, close #4642
nija-at added a commit to aws/aws-cdk that referenced this issue Nov 18, 2019
Upgrade all internal uses of node8.10 lambda runtime to node10.x.

This includes all exported constructs that contain a lambda function within them.

Update NODE_10_X runtime to allow inline code in CloudFormation, per
aws-cloudformation/cloudformation-coverage-roadmap#80.

Shout out to @nmussy who got this most of the way (#4655)

close #4653, close #4642
@aws-cloudformation aws-cloudformation deleted a comment from oussemos Nov 21, 2019
@arnulfojr
Copy link

arnulfojr commented Nov 22, 2019

I had faced this issue but for node12.x any updates on support for node12.x?
I think the node12.x support will be released next week in the CDK in version 1.18.0 aws/aws-cdk#5107

@monken
Copy link

monken commented Nov 24, 2019

Guess it's Groundhog Day. Both python3.8 and nodejs12.x are not supported by CloudFormation inline functions. How about a more fundamental fix? Why is this parameter even typed? Let the Lambda API return an error if the desired runtime is not available.

@luiseduardocolon
Copy link
Contributor

Zipfile support for nodejs10.x is deployed and completed. Also, nodejs12.x work is completed and docs will be available soon.

@monken
Copy link

monken commented Jan 11, 2020

@luiseduardocolon Thank you!!

@direvus
Copy link

direvus commented Feb 10, 2020

Still no support for inline code with python3.8.

@luiseduardocolon
Copy link
Contributor

Moving from shipped to working on it, because of python 3.8 support not quite being there yet.

@laurelmay
Copy link

Will the Python 3.8 support result in a change to the cfnresponse module since the version of botocore in the Python 3.8 Lambda runtime no longer has the vendored requests module?

@ChrisPearce
Copy link

Another point to note is that the change is not yet included in https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/ReleaseHistory.html

@dotcypress
Copy link

Still currently failing to deploy to us-east-1 with Node 14:
Resource handler returned message: "Invalid request provided: The ZipFile attribute is not supported for the runtime 'nodejs14.x'".

Mine are also Edge Functions.

Same issue on us-east-1

@VincentvdE
Copy link

Same issue on eu-central-1

@bitconym
Copy link

Node v14.x not working for us-east-1 had to revert to Node v12.x

@ChrisPearce
Copy link

With NodeJS 16 then due to reach LTS on 26 Oct 2021, is there also a plan for that to then be supported as well?

@adcreare
Copy link

Its absolutely nuts that this is taking so long to get supported.. It's not new functionally, it's just adding that functionality to a current runtime. I don't understand why we are months down the track from that runtime release and this still isn't implemented.. I guess I'll log a case with with out account manager.

@tlindsay42
Copy link

Same issue in us-west-2. Reverting to Node.js 12.x worked.

@EBeureux
Copy link

Issue still exists with nodejs14.x as of today on eu-west-3...

@heikkima
Copy link

heikkima commented Jun 30, 2021

I received error The ZipFile attribute is not supported for the runtime 'nodejs14.x'" when I tried to deploy a new edge lambda to us-east-1 region.

I was able to first deploy the same lambda as nodejs12.x and after the CloudFormation stack was in COMPLETE state I updated the lambda to nodejs14.x

It's a temporary work-around but I hope it's helpful for others.

@chipironcin
Copy link

Happening in eu-west-1 too 😢
I would prefer not run my code with Node12.x

@bitconym
Copy link

bitconym commented Jul 5, 2021

History repeats with every new Node.js AWS Lambda runtime https://forums.aws.amazon.com/thread.jspa?threadID=303166

@paulsnappet
Copy link

It seems to be a per-account thing for me! Deploying to eu-west-1 in account A works fine, but deploying to same region in Account B gives the dreaded The ZipFile attribute is not supported for the runtime 'nodejs14.x'" message.

@abdennour
Copy link

happen in us-east-1 while deploying lambda edge thru cfn.
quick release of the revert will be helpful

@bitconym
Copy link

Is this fixed already? We're almost August and Node.js v16 will get into LTS active status in October https://nodejs.org/en/about/releases/ so suppose this will be the new Node.js version in AWS Lambda shortly.
I really think Amazon should make this ZipFile support automatic when a new Node.js version gets implemented into AWS Lambda. Don't get why we need to wait years before this works. Does it really need custom development for each version?

@hortondust
Copy link

I was able to deploy a ZipFile with node 14.x in us-west-2 today

@bitconym
Copy link

bitconym commented Aug 3, 2021

Finally, this works! Just tested with Node.js v14.x in us-east-1 all my Lambdas successfully deployed with the InlineCode directive in the SAM template definition file.

@ChrisPearce
Copy link

It is now working for eu-west-2

@hoangenouvo
Copy link

working now for ap-southeast-2 region 😃

@WaelA WaelA changed the title AWS::Lambda::Function-Code-ZipFile AWS::Lambda::Function - Code-ZipFile Aug 4, 2021
@vileppanen
Copy link

Bumping up --> I'm getting the ZipFile unsupported error in eu-west-1 in my own account, for both node12 and node14.

Is there any written analysis somewhere on what is causing the issue?

@michaelbrewer
Copy link

is Python3.9 now also supported

@micahduron
Copy link

@michaelbrewer Yes, you can now inline python3.9 code using ZipFile.

We introduced a change that enables the use of the ZipFile property with all nodejs and python runtimes, so newly released versions of these runtimes will have day-one support for inlined code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compute EC2, ECR, ECS, EKS, Lambda, Batch, Elastic Beanstalk, Serverless Application Repository
Projects
None yet
Development

No branches or pull requests