Running multiple applications in AWS environment

Hey,

I’m running few different applications on AWS. I mostly have same setup everywhere. I created my AMI image with preinstalled software for EC2, where I always run docker containers and CodePipeline as CI/CD. I’m looking for some automation or advices what I can do better to spend less time on managing servers and more on delivering software.

CI/CD

I think my main issue right now is CodePipeline because I use one pipeline for production deployment and additional CodeBuild instance for building and testing new commits on every branch when they came up. Can you share some ideas how you are using CodePipeline as CI/CD? I don’t want to use Jenkins because it will be another thing to take care of.

Docker on EC2 instances

I plan to dive into ECS instead using EC2 and handling docker by myself. But my question are:

- Maybe ElasticBeanstalk would be a better choice?

- Is there any other options here to host Java applications on AWS?


Related discussions:

Beanstalk is a great step forward. Select your runtime, publish your app. If you are in the Docker world already, no problem.

I’ve been focusing pretty heavily on CloudFormation lately to help solve this issue. The addition of drift detection seems like it’ll help to solve a number of my issues.

ElasticBeanstalk won’t do it for me because I’m very particular on the configuration of my underlying OS.

For CI with CloudFormation I’ve come across a number of great resources, like this: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/continuous-delivery-codepipeline-basic-walkthrough.html

I have a whole list of resources I’ve put together throughout this venture. If you’re interested, I’d be happy to share them with you.

ElasticBeanstalk won’t do it for me because I’m very particular on the configuration of my underlying OS.

Can’t you just use your own custom images even with Beanstalk?

There’s no support for docker containers in the elastic beanstalk console correct?

Not sure what you mean. You can select Docker as the runtime and create a Docker based beanstalk app from the console

Of course I’m interested! :slight_smile:

I had a brainfart, was really late when I commented

Yes, but then comes the issue of future modifications of my underlying base image. We have over 60 web servers and growing. Redeployment or updating would be a nightmare!

Definitely open to alternative recommendations though. :slight_smile:

I messaged a link to you. Like I said, it’s a mess lol

What size are your web servers? Just asking as some prefer bunch of small ones instead of fewer large ones. Are they all deployed in the same region? If you wouldn’t mind sharing your script, I would be interested taking a peak. Thanks for the link!

All in the same region, spanning two AZs. ASGs are handling AZ fault tolerance (to some degree, would like to go multi-region soon though).

It’s not in production yet but I’d be happy to share. Just sent myself a reminder for when I’m at my desk tomorrow.

I haven’t forgotten about sharing this with you, but my situation is much like your handle, way freaking behind.

I’ll definitely try to get them out to you soon. I just have to scrub them of our resource IDs and whatnot.

No worries. Just interested in ideas as I have a small app that is gaining popularity and my current stack is almost hitting max capacity, especially my rds server so I’m looking at options for everything from DB to cache etc.