Cfn
view release on metacpan or search on metacpan
t/cfn_json/001.json view on Meta::CPAN
{
"Key" : "Name",
"Value" : "Test #1"
}
],
"UserData" : {
"Fn::Base64" : {
"Fn::Join" : [
"",
[
"#!/bin/bash\necho \"code ALL=(ALL) NOPASSWD:ALL\" > /etc/sudoers.d/code\nchmod 440 /etc/sudoers.d/code\napt-get install -y git htop\n"
]
]
}
},
"ImageId" : {
"Ref" : "AMI"
},
"IamInstanceProfile" : {
"Ref" : "FrontTestProfile"
},
t/cfn_json/WordPress_Chef.json view on Meta::CPAN
"cookbook_path [ '/var/chef/chef-repo/cookbooks' ]\n",
"node_path [ '/var/chef/chef-repo/nodes' ]\n"
]]},
"mode" : "000400",
"owner" : "root",
"group" : "root"
}
},
"commands" : {
"01_make_chef_readable" : {
"command" : "chmod +rx /var/chef"
},
"02_install_chef" : {
"command" : "bash /tmp/install.sh",
"cwd" : "/var/chef"
},
"03_create_node_list" : {
"command" : "chef-client -z -c /var/chef/chef-repo/.chef/client.rb",
"cwd" : "/var/chef/chef-repo",
"env" : { "HOME" : "/var/chef" }
}
t/cfn_yaml/example.yaml view on Meta::CPAN
KeyName: !Ref KeyName
SecurityGroupIds: !Ref SecurityGroupIDs
SubnetId: !Ref SubnetID
UserData:
Fn::Base64: # YAML makes userdata much cleaner
!Sub |
#!/bin/bash -ex
yum install -y httpd;
echo "<html>I love YAML CloudFormation!!</html>" > /var/www/html/index.html;
cd /var/www/html;
chmod 755 index.html;
service httpd start;
chkconfig httpd on;
Tags: # Tags are an example of a sequence of mappings in YAML,
- # each key/value pair is separated by a hyphen
Key: Name
Value: CloudFormation Test - YAML
-
Key: Environment
Value: Development
( run in 0.268 second using v1.01-cache-2.11-cpan-496ff517765 )