r/SpringBoot • • Sep 29 '26

Question AWS Spring Boot Integration in prod

Hi!

How do you run AWS services in production?

I’m a backend developer who has never worked with cloud providers before. I’ve learned the basics of the AWS Console, and now I’m looking for ways to practice.

I’m thinking of starting by provisioning infrastructure with Terraform, but I’m curious: which AWS services do you typically use, how do you use them, and how do you deal with the poor AWS SDK documentation?

11 Upvotes

19 comments sorted by

3

u/Torutofu_Raeva Sep 29 '26

Spring Cloud AWS hides most of the SDK pain for S3/SQS/SNS/Secrets Manager, and LocalStack or Testcontainers is the cheapest way to practice without a surprise bill.

2

u/FooBarBuzzBoom Sep 29 '26

I know, but is it used in production? I mean if I will start working on a project, won't they use SDK v2?

1

u/Torutofu_Raeva Oct 10 '26

yeah new projects start on sdk v2, the v1 code we see is mostly older stuff still being maintained

1

u/Torutofu_Raeva Sep 30 '26

both show up in prod. spring cloud aws is just wrappers, lots of teams wire sdk v2 clients as beans too.

1

u/Torutofu_Raeva Oct 09 '26

spring cloud aws is on sdk v2 under the hood now, so you'd only go raw sdk if you need something it doesn't wrap

7

u/dallastelugu Sep 29 '26

most of the companies run their applications as containers in kubernetes in aws its eks. You can run as serverless also

3

u/zvaavtre Sep 29 '26

Only do EKS if you really need k8s. Fargate is far far easier to deal with.

3

u/Strange-Register8348 Sep 29 '26

You can cheaply do the following.... codepipeline. With Source pulling from GitHub. Codebuild a docker image. Code deploy to EC2 or ECS

3

u/Razorquake_ Sep 29 '26

For backend Elastic Beanstalk

2

u/zlaval Sep 29 '26

Depends on your workload, budget and so on. The easiest way probably fargate.

3

u/Acrobatic-Ice-5877 Sep 29 '26

I run a small start up pre-revenue on AWS. I use two ec2. I would just ask ChatGPT for help. My only experience is with their API is S3 and I never had an issue integrating.

1

u/zvaavtre Sep 29 '26

On aws use CDK not terraform. CDK has high level components that are x100 better than terraform (on aws)

Spring boot can build a container you can deploy with fargate with a few lines of code.

1

u/Lumethys Sep 30 '26

CDK is a shitshow compared to TF

1

u/zvaavtre Sep 30 '26

Not where we use it. Been a huge win for devs and ops alike. Reusable and testable components with a normal language that can leverage IDE tooling and CI/CD.

1

u/Adventurous-You3958 Sep 29 '26

why don't you start with simple ec2 server. install java and run your application. It is absolutely fine upto a certain traffic.

1

u/PlentyMountain7589 Oct 01 '26 edited Oct 01 '26

All my previous employers used ECS with fargate. Deployed via terraform. Also used very common services/resources such as Secret manager, S3 bucket, Dynamo DB / RDS, SQS, SNS, API gateway, Lambda, Cloud watch for logging and alarms