In the final step of the backend deployment, we define the runtime configuration for the Spring Boot application and launch it as a stable ECS Service.
bandup-backend.AWS Fargate.Linux/X86_64.1 vCPU and 2 GB Memory.ecsTaskExecutionRole.
Container Details:
bandup-be-container..../band-up-backend:v1.0.0).8080 (Default Spring Boot port).Environment Configuration (Best Practice): Instead of manually entering sensitive variables (Database URL, User, Password) in plain text, we load them from a secure file stored in S3.
.env file (e.g., arn:aws:s3:::bandup2025-fcj/.env).ecsTaskExecutionRole has permission to read this S3 object.
Deploy the task definition to the cluster.
bandup-cluster > Services > Create.FARGATE.bandup-backend (Revision 7 or latest).bandup-backend-service.1.
band-up-vpc.private-subnet-1, private-subnet-2).ecs-backend-sg (Created in step 5.5.2).
bandup-public-alb.80:HTTP.target-bandup-be.8080.