Created
November 14, 2014 17:48
-
-
Save rs-randallburt/62ce03499b9ac501b302 to your computer and use it in GitHub Desktop.
Example for Jason
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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