Skip to content

Instantly share code, notes, and snippets.

@rs-randallburt
Created November 14, 2014 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rs-randallburt/62ce03499b9ac501b302 to your computer and use it in GitHub Desktop.
Save rs-randallburt/62ce03499b9ac501b302 to your computer and use it in GitHub Desktop.
Example for Jason
heat_template_version: 2013-05-23
description: |
Test template using all resources supported on the Rackspace Public Cloud
resources:
aws_server:
type: AWS::EC2::Instance
properties:
ImageId: 2936a16d-ee01-452c-a6ab-7117df5196f8 # Ubuntu 13.10 (Saucy Salamander)
InstanceType: 4 GB Performance
UserData:
str_replace:
template: |
#!/bin/bash
apt-get update
apt-get -y install curl
sleep 2
curl -i -X PUT --data-binary '{"status": "SUCCESS", "reason": "AWS Signal"}' wc_notify
params:
wc_notify: { get_resource: aws_handle }
aws_handle:
type: AWS::CloudFormation::WaitConditionHandle
aws_wait_condition:
type: AWS::CloudFormation::WaitCondition
properties:
Handle: { get_resource: aws_handle }
Timeout: 600
outputs:
data:
description: Wait condition data
value: { get_attr: [ aws_wait_condition, Data ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment