Ci cd/setup pipeline for deployment#31
Merged
Merged
Conversation
- Fix security group names (sg- prefix not allowed by AWS) - Add OIDC provider skip note (reuse existing from prior project) - Switch RDS template to Dev/Test with db.t3.micro and 25 GiB gp3 - Add EC2 subnet warning (must use public subnet tinyurl-public-1a) - Add Elastic IP allocation steps (auto-assign public IP did not work) - Add SSM Fleet Manager context and why it matters for CI/CD - Update CloudFront setup with new console flow (pay-as-you-go, WAF off) - Update S3 bucket creation settings - Add CloudFront distribution ID and domain name - Remove manual S3 bucket policy step (CloudFront adds it automatically)
Add spring-cloud-aws-starter-parameter-store to build.gradle.kts, configure application-prod.yaml to import secrets from SSM at startup, and add CORS allowed-origins property to application.yaml for dev.
Production-only compose file runs nginx (rate limiting, security headers, actuator blocking) in front of the Spring Boot app. Logs ship to CloudWatch via the awslogs driver.
…uator/ block so ALB health checks pass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Production infrastructure config: Added docker-compose.prod.yml orchestrating the Spring Boot app + Nginx reverse proxy containers with CloudWatch logging, health checks, and SSM-sourced environment variables
Nginx reverse proxy: Added nginx.prod.conf with rate limiting, security headers, actuator endpoint blocking (with /actuator/health exception for ALB health checks), and HTTPS proxy headers
CORS configuration: Added CorsConfig.java with @Value-compatible comma-separated string injection; fixed application.yaml and application-prod.yaml to use string format instead of YAML list (Spring's @value cannot inject indexed YAML list properties)
Spring Cloud AWS SSM: Added dependency to build.gradle.kts and application-prod.yaml for pulling secrets from AWS SSM Parameter Store at runtime
Deployment docs (Phases A–C): Updated all three phase docs to reflect real-world AWS console behaviour — security group naming constraints, OIDC provider reuse, EC2 subnet/Elastic IP quirks, CloudFront setup flow, and a full troubleshooting table covering every issue hit during the first manual deployment