-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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: ARM lambdas resulting in bad-format #27673
Comments
prod is just a name, right? If you're having issues just in the prod environment wouldn't that be an issue with how you've defined prod + props? The details aren't present in how you've defined these environments differently |
Yes, But apart from
But the So technically what is delivered to all DEV -> TEST -> PRODUCTION is the same code branch (main) I cannot see how it differs. ALSO I have 3 other repos we use the exactly same method and it does work fine ARM on PROD. Scratching my head. |
I'm not sure if the issue, but the error is not pointing at your executable, but the cloud watch extension:
If this is part of your zip, double check what you're including. If the above executable is part of the standard al2 environment, talk to AWS support. Also, try synthesising each environment and comparing the generated cloud assemblies, this might show an inadvertent difference that is otherwise not apparent. If this seems infeasible, compare the template from the cloudformation stacks. |
I will open a ticket with AWS Support. Regarding the above, I do not include any custom extensions and certainly not Thanks for your inputs, |
I had a quick look just for interest's sake:
|
I'm not an AWS employee, just an interested bystander 😄 I suspect that if you've just switched this Lambda to ARM and updated by CFN, the layer added manually by the console hasn't changed from the x86 version. If you want insights, you'll probably have more success if you add it via the Depending on your cost sensitivity, this could be implemented on all environments or just in your production stage. |
Closing the issue after confirming that disabling the insights setting from UI prior to installing the NEW format version worked fine. Really want to thank @jamestelfer for digging into this |
|
Describe the bug
Deploying a ARM lambda using Pipelines (in-series) works on DEV and TEST but FAILS on PROD
Expected Behavior
I would expect in a serial deployment from DEV -> TEST -> PROD to see some consistency.
This troubles me especially because I rely on DEV and TEST to ensure what I push to PROD worked fine.
Current Behavior
I approve for PROD, and it deploys, but the LAMBDA is DEAD. Gateway returns
In cloudwatch I see
Reproduction Steps
I have a golang lambda
which is build in a Makefile using
All this is deployed using pipelines in series: DEV -> TEST -> PROD
Now, it all DEPLOYES without build issues, or any indication of issues.
When testing the LAMBDA on DEV then TEST all PASS and the REST API is accessible.
I approve for PROD, and it deploys, but the LAMBDA is DEAD. Gateway returns
In cloudwatch I see
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.100
Framework Version
No response
Node.js Version
18
OS
linux
Language
Go
Language Version
1.20.10
Other information
No response
The text was updated successfully, but these errors were encountered: