How to keep developing a web application on EC2 pushed from VS Code to Dockerhub and then Dockerhub to EC2

0

The web application created on VS Code (via CS50x on Edx). Pushed to Dockerhub and then from Dockerhub to EC2.

It will help to know recommended ways to keep updating the application. I do not think updating source codes on VSCode, then once again pushing to Dockerhub, and then Dockerhub to EC2 the best way.

profile picture
asked a month ago68 views
1 Answer
1
Accepted Answer

Hi

CI CD Approch for your requirement:

  • Create CI CD pipeline,
  • Source is Bitbucket/Github
  • Build Codebuild to build the image and push to ECR or DockerHub
  • Codedeploy to update the ECS service

Here are the references can help you,

https://docker.awsworkshop.io/41_codepipeline/20_codebuild_codepipeline.html

https://docs.aws.amazon.com/it_it/prescriptive-guidance/latest/patterns/automatically-build-ci-cd-pipelines-and-amazon-ecs-clusters-for-microservices-using-aws-cdk.html

profile picture
EXPERT
GK
answered a month ago
profile picture
EXPERT
reviewed a month ago
  • So you are suggesting to try ECS instead of EC2?

  • Correct ECS is the best to manage , as you don’t need to pay anything to ECS, You pay only for EC2

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions