Git Product home page Git Product logo

aws-cicd's Introduction

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.

aws-cicd's People

Contributors

suresh-28 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.