AWS Codedeploy, CodeCommit, CodeBuild, Codepipeline with Java and Tomcat



AWS Codedeploy, CodeCommit, CodeBuild, Codepipeline with Java and Tomcat

AWS Codedeploy, CodeCommit, CodeBuild, Codepipeline with Java and Tomcat

This amazon web services AWS Code Deploy Setup (EC2, IAM, Github) tutorial shows how to have an AWS EC2 instances host your App that is in your Github repository.

# Learn AWS Code Deploy Setup with a demo.
# Different attributes of AWS CodeDeploy.
# Specifying CodeCommit, CodeBuild & IAM role for CodeDeploy.
# Checking CodeDeploy logs.
# Understand CodeDeploy pricing.
# Java and Tomcat Setup

EC2 Instance –
User Data
———————————————————-
#!/bin/bash
sudo yum -y update
sudo yum -y install ruby
wget https://aws-codedeploy-ap-south-1.s3….
sudo chmod +x ./install
sudo ./install auto
sudo chmod +x /home/ec2-user/tomcat/apache-tomcat-8.5.61/bin/./startup.sh
sudo /home/ec2-user/tomcat/apache-tomcat-8.5.61/bin/./startup.sh
————————————————————

EC2 Instance
Name – DemoEC2ForCodeDeploy

EC2 Instance Role – EC2CodeDeploy with permission policies – AWSCodeDeployFullAccess and AmazonS3FullAccess

Java Application can be deployed from Github
https://github.com/hkmehandiratta/aws-tutorials/tree/main/awspipelinedemo

AWS CodeDeploy is a deployment service that automates application deployments to Amazon EC2 instances, on-premises instances, serverless Lambda functions, or Amazon ECS services.

You can deploy a nearly unlimited variety of application content, such as code, serverless AWS Lambda functions, web and configuration files, executables, packages, scripts, multimedia files, and so on. AWS CodeDeploy can deploy application content that runs on a server and is stored in Amazon S3 buckets, GitHub repositories, or Bitbucket repositories. AWS CodeDeploy can also deploy a serverless Lambda function. You do not need to make changes to your existing code before you can use AWS CodeDeploy.

AWS CodeDeploy makes it easier for you to:

# Rapidly release new features.
# Update AWS Lambda function versions.
# Avoid downtime during application deployment.

Handle the complexity of updating your applications, without many of the risks associated with error-prone manual deployments.

The service scales with your infrastructure so you can easily deploy to one instance or thousands.

#CodeDeploy #CodeCommit #CodeBuild #CodePipeline