Skip to content

AWS continuous integration and continuous delivery

Notifications You must be signed in to change notification settings

Suresh-28/AWS-CICD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS-CICD

AWS continuous integration and continuous delivery awscicd

Continuous Integration

  1. Create a repo in the github account.
  2. push the code into the repo.
  3. create docker file.
  4. create buildspec file.
  5. create appspec file.
  6. create requirements file.
  7. Goto code build and create build project [ add on name, description, source, runtime, image, service role, insert build spec, create.]
  8. Create new service role [add on codebuild,SSM,name,description,create.]
  9. Goto systems manager and open parameters store [add on docker username, password, registry url separetly.]
  10. Strat build.
  11. Goto Build project ,click on edit ,click on environment, click on override image, enable privileged,update.
  12. Now rebuild
  13. Create pipeline [add on name, service role, source, code build, project name, single build, create.]

Continuous Deployment

  1. Goto code deploy on console.

  2. click on create application.

  3. [add on a name , platfrom(ec2)]

  4. Click on create application.

  5. Goto EC2 instance,

  6. create an ec2 instance.

  7. Login to ec2 instance using terminal,

  8. install code agent for ec2 instance,

Sudo apt install wget

wget https://bucket-name.s3.region-identifier.amazonaws.com/latest/install [ edit the bucket name based on the region, use https://docs.aws.amazon.com/codedeploy/latest/userguide/resource-kit.html#resource-kit-bucket-names]

chmod +x ./install

sudo ./install auto //CodeDeploy agent on any supported version of Ubuntu

sudo service codedeploy-agent start //To start service

  1. Goto IAM.
  2. Create role.
  3. select use case as code deploy.
  4. Next,[add on name, description]
  5. Create role.

//Assign role to EC2

  1. Goto instance,

  2. Click on actions,

  3. click on security,

  4. click on modify iam role,

  5. select and update.

  6. Goto terminal restart the agent sudo service codedeploy-agent restart.

  7. Create Deployment group,

  8. [add on name, service role, inplace, ec2, tags, unable loadbalancer, create.]

  9. Attach ec2 full access to the code deploy service role.

  10. Create deployment [add on deployment group name,github,token,repo name, commit id, create.]

  11. Install docker sudo apt install docker.io -y

  12. Goto code pipeline and edit,

  13. Add stage [add on name code deploy, add action group, action name, action provider, application name, deployment group, build artefacts, done.]

  14. List out running container Sudo docker ps

  15. Access the port with inbound and outbound traffic rules.

Releases

No releases published

Packages

No packages published