GithubHelp home page GithubHelp logo

optionalg / cloudformation-tomcat-pipeline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liatrio/cloudformation-tomcat-pipeline

0.0 2.0 0.0 27 KB

A cloudformation template for building and deploying java servlet applications.

Shell 20.83% Python 79.17%

cloudformation-tomcat-pipeline's Introduction

AWS CloudFormation/CodePipeline Example

This project uses CloudFormation to spin up a CICD pipeline for Java applications using CodeBuild, CodeDeploy, CodePipeline, and an EC2 instance.

Launching the Stack

  1. Before launching the stack, create a fork of this sample java application. It contains specifications on how CodeBuild and CodeDeploy should build and deploy the app.

  2. Launch the CloudFormation stack by clicking this button: Launch Stack

  3. Fill in the parameters and follow the prompts to complete the launch. For the GitHub user/repo/branch provide your GitHub username and the master branch of the fork you created in step 1. If you don't have a GitHub OAuth token, you can generate one here.

  4. Watch and wait while CloudFormation provisions all of the resources required this stack. The process should take roughly 5 minutes.

CloudFormation Outputs

  1. When the stack is complete, retrieve the CodePipeline url from the output tab and navigate to it. A new revision will have triggered and should be making its way down the pipeline.

CodePipeline pre-approval

  1. After the revision builds, click "Approve" on the approval gate to deploy it to the EC2 server

CodePipeline post-deployment

  1. When the deployment completes, retrieve the EC2 instance public DNS name from the output tab of the CloudFormation stack. Then navigate to /petclinic.

Petclinic application

Programmatically Approving a Pipeline Manual-approval-step

See put-approval-result directory for three ways to approve a manual approval step in a Code Pipeline.
The first way can be ran via Python 2.7 anywhere basic.py.
viaAlexa.py returns a result that is configured for Alexa.
viaIoT.py is meant to be utilized in a Lambda function triggered by an IoT Button.

cloudformation-tomcat-pipeline's People

Contributors

matthewpdias avatar shanemacbride avatar

Watchers

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