Skip to content

Instantly share code, notes, and snippets.

@teknogeek0
Created October 3, 2014 13:16
Show Gist options
  • Save teknogeek0/d56504d0ade0984331f0 to your computer and use it in GitHub Desktop.
Save teknogeek0/d56504d0ade0984331f0 to your computer and use it in GitHub Desktop.
ruby swf block
#!/usr/bin/env ruby
require 'aws-sdk'
client = AWS::SimpleWorkflow.new(:region => "us-west-2")
puts "looking for a domain"
mydomain = client.domains['ReInvent2014']
if mydomain.exists?
if mydomain.workflow_types['EIPMapper','1.0'].exists?
puts "my workflow_type exists"
else
puts "we have a domain, but workflow_type does not exist"
end
else
puts "this domain does not exist"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment