Skip to content

Instantly share code, notes, and snippets.

@asalkeld
Created November 7, 2012 10:31
Show Gist options
  • Save asalkeld/4030762 to your computer and use it in GitHub Desktop.
Save asalkeld/4030762 to your computer and use it in GitHub Desktop.
yaml heat wordpress
Description: 'Heat Sample Template WordPress_Single_Instance: WordPress
is web software you can use to create a beautiful website or blog. This template
installs a single-instance WordPress deployment using a local MySQL database to
store the data.'
Resources:
WikiDatabase:
Type: AWS::EC2::Instance
Metadata:
AWS::CloudFormation::Init:
config:
packages:
yum:
mysql: []
mysql-server: []
httpd: []
wordpress: []
services:
systemd:
mysqld:
enabled: "true"
ensureRunning: "true"
httpd:
enabled: "true"
ensureRunning: "true"
Properties:
ImageId:
f16-image
InstanceType:
m1.large
KeyName:
Ref: KeyName
UserData:
Fn::UrlGet:
http://fpaste.com/bla/
Outputs:
WebsiteURL:
Value:
Fn::Join:
- ""
- - http://
- Fn::GetAtt:
- WikiDatabase
- PublicIp
- /wordpress
Description: URL for Wordpress wiki
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment