AWS Lambda project is not created if user includes "AWS Lambda" extension
See original GitHub issueDescribe 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:
- navigate to https://code.quarkus.io/
- select βAWS Lambdaβ extension
- click βGenerate your applicationβ
Steps to produce correct Amazon Lambda project
mvn archetype:generate \
-DarchetypeGroupId=io.quarkus \
-DarchetypeArtifactId=quarkus-amazon-lambda-archetype \
-DarchetypeVersion=1.0.0.CR1
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Iβve moved this issue to GitHub since this case is affecting all the code generation tooling.
Suggest to close, this is outdated.