amazonwebservices/aws-sdk-for-ruby — pull request #55 by darai2k (2012-06-26 06:56:49+00:00)
Title: Fix CloudFormation::stack_options#apply_template regexp which judge string is url or not

fix CloudFormation creating stack, template param is construed as url string when string include "http".

example:

template = <<-TEMPLATE
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description": "A simple 'http' template",
"Resources": {
"web": {
"Type": "AWS::EC2::Instance",
"Properties": {
"ImageId": "ami-41814f28"
}
}
}
}
TEMPLATE

stack = cfm.stacks.create('stack-name', template)

=> TemplateURL must be an Amazon S3 URL. (AWS::CloudFormation::Errors::ValidationError)