amazon-web-servicesgitamazon-ec2cicd

How should I structure CI/CD for a Docker-based frontend and backend on AWS EC2 Free Tier?


I'm a beginner web developer trying to learn about CI/CD and deployment automation.

I built a simple full-stack web application and deployed it using only AWS EC2 (Free Tier).

Here's how I set up my deployment:


What I want to know

*This is a small project, and I want to keep it running reliably over time, even if it's small.


Any advice on improving this setup, or key topics I should study to better manage CI/CD pipelines on EC2


Solution

  • Is this a reasonable structure for automating deployment of frontend and backend on a single EC2 Free Tier instance?

    I'm experiencing disk usage issues on EC2. Could it be due to the GitHub Actions → S3 → CodeDeploy → Docker process?

    There is no way to tell like that. My recommendation

    What are some best practices or alternatives for lightweight, long-running CI/CD pipelines on EC2(FREE TIER)?

    use Codepipeline and its native actions.Easy to setup and good UI support as well which makes it very maintainable. No need to setup Codeploy or codebuild.