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

Lambda: invalid inline code examples #3601

Closed
1 of 5 tasks
nmussy opened this issue Aug 9, 2019 · 0 comments · Fixed by #3602
Closed
1 of 5 tasks

Lambda: invalid inline code examples #3601

nmussy opened this issue Aug 9, 2019 · 0 comments · Fixed by #3602
Labels
needs-triage This issue or PR still needs to be triaged.

Comments

@nmussy
Copy link
Contributor

nmussy commented Aug 9, 2019

Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.

  • I'm submitting a ...

    • 🪲 bug report
    • 🚀 feature request
    • 📚 construct library gap
    • ☎️ security issue or vulnerability => Please see policy
    • ❓ support request => Please see note at the top of this template.
  • What is the current behavior?
    If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce

The Lambda DLQ example uses inline code with the NODEJS_10_X runtime, which doesn't support inline code:

public static readonly NODEJS_10_X = new Runtime('nodejs10.x', RuntimeFamily.NODEJS, { supportsInlineCode: false });

Trying to run it throws the following error, as expected:

Inline source not allowed for nodejs10.x
  • What is the expected behavior (or behavior of feature suggested)?

Another runtime should be used in the examples

  • What is the motivation / use case for changing the behavior or adding this feature?

Fix the README example

  • Please tell us about your environment:

    • CDK CLI Version: 1.3.0
    • Module Version: 1.3.0
    • OS: all
    • Language: all
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)

Inline support might have been added for NODEJS_10_X since #2544 from what I can see on the UI Console:

image

EDIT: I tried forcing a NODEJS_10_X inline deployment, but I get a CloudFormation error:

 ZipFile canonly be used when Runtime is set to either of nodejs, nodejs4.3, nodejs6.10, nodejs8.10, python2.7, python3.6, python3.7.

There's an issue open for it on the Roadmap: aws-cloudformation-coverage-roadmap#80

@nmussy nmussy added the needs-triage This issue or PR still needs to be triaged. label Aug 9, 2019
@mergify mergify bot closed this as completed in #3602 Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant