Giter VIP home page Giter VIP logo

aws-flow-ruby-opsworks-helloworld's Introduction

AWS Flow Framework for Ruby: Hello World (OpsWorks) Sample Application

This version of the Hello World sample is designed to run on Amazon OpsWorks. It contains a few extra files when compared to the version in [https://github.com/awslabs/aws-flow-ruby-samples]:

  • helloworld.json - a file used with the aws-flow-ruby command-line utility, also referred to as the runner. It defines parameters for running the Hello World workflow and activity.

  • flow directory - contains two files: activities.rb and workflows.rb, which direct the runner to the files that should be loaded and scanned for activities and workflows to execute.

Prerequisites

The AWS Flow Framework for Ruby is required, which can be obtained and installed using the information here:

If you already have Ruby and RubyGems installed, you can install the framework by opening a terminal window and typing:

gem install aws-flow

For more information about setting up the AWS Flow Framework for Ruby, see Installing the AWS Flow Framework for Ruby in the AWS Flow Framework for Ruby Developer Guide.

Downloading the Sample Code

The code for the AWS Flow Framework for Ruby OpsWorks Hello World sample is available at:

To view or download the code for all of the AWS Flow Framework for Ruby recipes and samples, go to:

Run the Sample

To run the HelloWorld sample:

  1. Open two separate terminal windows and, in each one, change to the the location where you cloned or unarchived the sample code. For example:

    cd ~/Downloads/aws-flow-ruby-opsworks-helloworld/
    
  2. In each command-line (terminal) window, execute the following commands, substituting your AWS Access keys for the example values.

    On Linux, OS X or Unix:

    export AWS_ACCESS_KEY_ID='your-access-key'
    export AWS_SECRET_ACCESS_KEY='your-secret-key'
    export AWS_REGION='us-east-1'
    

    On Windows:

    set AWS_ACCESS_KEY_ID=your-access-key
    set AWS_SECRET_ACCESS_KEY=your-secret-key
    set AWS_REGION=us-east-1
    
  3. Execute the following commands, one in each of the terminal windows:

    In terminal window 1:

    aws-flow-ruby -f helloworld.json
    

    In terminal window 2:

    ruby lib/hello_world_workflow_starter.rb helloworld.json
    

For More Information

For more information about the Amazon Simple Workflow service and the Amazon Flow Framework for Ruby, consult the following resources:

aws-flow-ruby-opsworks-helloworld's People

Contributors

afitzgibbon avatar eronhennessey avatar hyandell avatar thscorporation avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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