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 project is not created if user includes "AWS Lambda" extension

See original GitHub issue

Describe the bug If a user selects the β€œAWS Lambda” extension when creating a new project at code.quarkus.io the project that is created is a normal RESTEasy JAX-RS project with the aws lambda extension included in the pom.xml

AWS lambda projects have a different template and include classes and shell scripts to upload and invoke a Lamda onto AWS.

I was also unable to select the β€œRESTEasy JAX-RS” extension, which is not required in an AWS Lambda project

Expected project layout

β”œβ”€β”€ create-native.sh
β”œβ”€β”€ create.sh
β”œβ”€β”€ delete-native.sh
β”œβ”€β”€ delete.sh
β”œβ”€β”€ invoke-native.sh
β”œβ”€β”€ invoke.sh
β”œβ”€β”€ payload.json
β”œβ”€β”€ pom.xml
β”œβ”€β”€ src
β”‚Β Β  β”œβ”€β”€ assembly
β”‚Β Β  β”‚Β Β  └── zip.xml
β”‚Β Β  β”œβ”€β”€ main
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ java
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── org
β”‚Β Β  β”‚Β Β  β”‚Β Β      └── acme
β”‚Β Β  β”‚Β Β  β”‚Β Β          β”œβ”€β”€ InputObject.java
β”‚Β Β  β”‚Β Β  β”‚Β Β          β”œβ”€β”€ OutputObject.java
β”‚Β Β  β”‚Β Β  β”‚Β Β          β”œβ”€β”€ ProcessingService.java
β”‚Β Β  β”‚Β Β  β”‚Β Β          β”œβ”€β”€ TestLambda.java
β”‚Β Β  β”‚Β Β  β”‚Β Β          └── UnusedLambda.java
β”‚Β Β  β”‚Β Β  └── resources
β”‚Β Β  β”‚Β Β      └── application.properties
β”‚Β Β  └── test
β”‚Β Β      └── java
β”‚Β Β          └── org
β”‚Β Β              └── acme
β”œβ”€β”€ update-native.sh
└── update.sh

Actual project layout

β”œβ”€β”€ mvnw
β”œβ”€β”€ mvnw.cmd
β”œβ”€β”€ pom.xml
└── src
    β”œβ”€β”€ main
    β”‚Β Β  β”œβ”€β”€ docker
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Dockerfile.jvm
    β”‚Β Β  β”‚Β Β  └── Dockerfile.native
    β”‚Β Β  β”œβ”€β”€ java
    β”‚Β Β  β”‚Β Β  └── org
    β”‚Β Β  β”‚Β Β      └── acme
    β”‚Β Β  β”‚Β Β          └── ExampleResource.java
    β”‚Β Β  └── resources
    β”‚Β Β      β”œβ”€β”€ application.properties
    β”‚Β Β      └── META-INF
    β”‚Β Β          └── resources
    β”‚Β Β              └── index.html
    └── test
        └── java
            └── org
                └── acme
                    β”œβ”€β”€ ExampleResourceTest.java
                    └── NativeExampleResourceIT.java

To Reproduce Steps to reproduce the behavior:

  1. navigate to https://code.quarkus.io/
  2. select β€œAWS Lambda” extension
  3. click β€œGenerate your application”

Steps to produce correct Amazon Lambda project

  1. Follow guide: https://quarkus.io/guides/amazon-lambda#creating-the-maven-deployment-project
mvn archetype:generate \
       -DarchetypeGroupId=io.quarkus \
       -DarchetypeArtifactId=quarkus-amazon-lambda-archetype \
       -DarchetypeVersion=1.0.0.CR1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ia3andycommented, Nov 19, 2019

I’ve moved this issue to GitHub since this case is affecting all the code generation tooling.

0reactions
oztimpowercommented, May 30, 2020

Suggest to close, this is outdated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lambda extensions - AWS Documentation
Learn how to use extensions with your AWS Lambda function.
Read more >
Lambda Extensions API - AWS Documentation
Lambda function authors use extensions to integrate Lambda with their preferred tools for monitoring, observability, security, and governance.
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 >
Introducing AWS Lambda Extensions | AWS Compute Blog
Extensions are a new way for tools to integrate deeply into the Lambda environment. There is no complex installation or configuration, and thisΒ ......
Read more >
AWS AppConfig integration with Lambda extensions
If you use AWS AppConfig feature flags or other dynamic configuration data in a Lambda function, then we recommend that you add the...
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