Code Monkey home page Code Monkey logo

sameple-nodejs-express-on-aws-e's Introduction

Deploy Sample App with CodePipeline (For Single ec2) - Lab

Step 1.Goto AWS Management Console>Services>Developers Tools>CodePipeline>Create Pipeline

Step 2.In Pipeline Settings give following details:

Pipeline name - first-cp-single-ec2 Service role - New service role Select Allow AWS CodePipeline to create a service role Advanced settings Artifact store - Default location Encryption key - Default AWS Managed key Click on Next

Step3-Source in Add source stage:

Source provider - AWS CodeCommit Repository name - Sample-Node-App Branch name - master Change detection options - Amazon CloudWatch Events CodePipeline - CodePipeline default Click on Next

Step 4.Build - optional in Add build stage

Build provider - AWS code build Region - Asia Pacific(Mumbai) Project name - first-cd-project Build type - Single build Click on Next

Step 5.Deploy-optional in Add deploy stage

Deploy provider - AWS CodeDeploy Region - Asia Pacific(Mumbai) Application name - cd-app Deployment group - cd-app-dg (Created in section-7) We will use node-server Ec2 instance (Created in section-7) Click on Next

Step 6.Review all stages

Click on Create pipeline Step 7. The pipeline has been created

See that Source stage in progress Step 8.Goto S3>Buckets>codepipeline-ap-south-1-xxxxxx

Now Goto Objects>first-cp-single-ec2/>SourceArti/>4xRn5Ab>Details Click on Object URI - It is Not Public Step 9.Go back to see the Pipeline progress

Source stage is completed and Source Artifacts are created in S3 Build is in progress After the build completion Build Artifacts will be created Step 10.Goto S3>Buckets>codepipeline-ap-south-1-xxxxxx

Now Goto Objects>first-cp-single-ec2/>BuildArtif/>xxxx Step 11.Go back to see the Pipeline progress

Build stage is completed and Build Artifacts are created in S3 Deployment is succeeded Step 12.Deployment is completed

Copy the Public ip address and paste in browser to see that Application running Step 13.Goto CloudWatch>Events>Rules>codepipeline-Sample-master-640051-rule

See the Summary of Event pattern Step 14. Goto IAM>Roles>AWSCodePipelineServiceRole-ap-south-1-first-cp-single-ec2

See Permissions>Policy Step 15.Open Visual Studio Code and goto pages>index.ejs

Edit the file for new color save it Run the following commands $ git add . $ git commit -m "change in index color for cp " $ git push Step 16.Go back to see activation of Pipeline for the changes

Pipeline is activated Just now See the latest commit - "change in index color for cp " Monitor all stages Build>Source>Deploy Step 17. To see what is happening click on AWS CodeBuild

Developers Tools>CodeBuild>Build projects>first-cd-project>Build History Developers Tools>CodeDeploy>Applications>cd-app>cd-app-dg>deployment-id>deployment status Step 18.Copy the Public ip and paste in the browser to see that Application is running with different color

Task has been completed

sameple-nodejs-express-on-aws-e's People

Contributors

venna12 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.