-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(samples/cloudwatch-applicationsignals-mcp): add docker java springboot app #1717
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1717 +/- ##
=======================================
Coverage 90.26% 90.26%
=======================================
Files 781 781
Lines 59912 59912
Branches 9718 9718
=======================================
Hits 54077 54077
Misses 3646 3646
Partials 2189 2189 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new Java Spring Boot baseline application to support AWS Application Signals enablement testing via the get_enablement_guide MCP tool. The application is containerized and designed to run on EC2.
- Complete Java Spring Boot application with REST API endpoints and AWS S3 integration
- Multi-stage Docker build using Maven 3.9 and Amazon Corretto 17
- Traffic generation script for continuous testing
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| Controller.java | Implements REST API with three endpoints (/, /health, /api/buckets) and S3 integration |
| Application.java | Standard Spring Boot application entry point |
| application.properties | Configures server port and logging levels |
| pom.xml | Maven project configuration with Spring Boot 3.2.0 and AWS SDK dependencies |
| Dockerfile | Multi-stage build with security features (non-root user, health checks) |
| generate-traffic.sh | Bash script for continuous traffic generation to test endpoints |
| README.md | Updated documentation with Java Spring Boot build and deployment instructions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...amples/docker-apps/java/spring-boot/src/main/java/com/application/springboot/Controller.java
Show resolved
Hide resolved
...amples/docker-apps/java/spring-boot/src/main/java/com/application/springboot/Controller.java
Show resolved
Hide resolved
...amples/docker-apps/java/spring-boot/src/main/java/com/application/springboot/Controller.java
Show resolved
Hide resolved
...tch-applicationsignals-mcp/get-enablement-guide-samples/docker-apps/java/spring-boot/pom.xml
Outdated
Show resolved
Hide resolved
...tch-applicationsignals-mcp/get-enablement-guide-samples/docker-apps/java/spring-boot/pom.xml
Outdated
Show resolved
Hide resolved
...-applicationsignals-mcp/get-enablement-guide-samples/docker-apps/java/spring-boot/Dockerfile
Show resolved
Hide resolved
|
Failing trivy and precommit checks should be resolved once the following are merged: |
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
Fixes
Summary
Adding Docker Java Spring Boot app to our enablement tool testing infra.
Changes
This PR adds a new Java Spring Boot baseline application for testing AWS Application Signals enablement via the
get_enablement_guideMCP tool. The application is designed to run as a Docker container on EC2.New files added:
docker-apps/java/spring-boot/- Complete Spring Boot application with:/,/health, and/api/bucketsinfrastructure/ec2/cdk/config/java-springboot.json- CDK configuration for deploymentDocumentation updates:
java-springbootto ECR repository tableJavaSpringBootCdkStackto CDK stack deployment tableUser experience
N/A
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change? (Y/N) N
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.