awslabs/aws-flow-ruby-opsworks-helloworld

Name: aws-flow-ruby-opsworks-helloworld

Owner: Amazon Web Services - Labs

Owner: AWS Samples

Description: null

Created: 2014-07-11 22:42:44.0

Updated: 2017-12-07 21:50:17.0

Pushed: 2016-06-30 20:12:54.0

Homepage: null

Size: 13

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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]:

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:

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:

    /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:

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

    On Windows:

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

    In terminal window 1:

    flow-ruby -f helloworld.json
    

    In terminal window 2:

     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:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.