Skip to content

Ci cd/setup pipeline for deployment#31

Merged
Buffden merged 10 commits into
mainfrom
ci-cd/setup-pipeline-for-deployment
Mar 26, 2026
Merged

Ci cd/setup pipeline for deployment#31
Buffden merged 10 commits into
mainfrom
ci-cd/setup-pipeline-for-deployment

Conversation

@Buffden

@Buffden Buffden commented Mar 26, 2026

Copy link
Copy Markdown
Owner

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

Buffden added 10 commits March 26, 2026 13:22
- 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.
@Buffden Buffden merged commit 8427e7a into main Mar 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant