Skip to content

Instantly share code, notes, and snippets.

@addamh
Created September 19, 2016 14:25
Show Gist options
  • Save addamh/357e70717a9d24652d3428648d33913b to your computer and use it in GitHub Desktop.
Save addamh/357e70717a9d24652d3428648d33913b to your computer and use it in GitHub Desktop.
"Resources": {
"AppInstance": {
"Type": "AWS::EC2::Instance",
"Properties": {
"ImageId": "ami-9c03a89d",
"InstanceType": "t2.micro",
"KeyName": "deploy-key"
}
},
"S3AssetsBucket": {
"Type": "AWS::S3::Bucket",
"DeletionPolicy": "Retain",
"Properties": {
"BucketName": "static-assets-bucket",
"CorsConfiguration": {
"CorsRules": [
{
"AllowedMethods": [
"GET"
],
"AllowedOrigins": [
"*"
]
}
]
}
}
},
"Database": {
"Type": "AWS::RDS::DBInstance",
"Properties": {
"AllocatedStorage": "10gb",
"BackupRetentionPeriod": "0",
"DBInstanceClass": "db.t2.micro",
"DBInstanceIdentifier": "app-database",
"DBName": "database_name",
"Engine": "postgres",
"EngineVersion": "9.4.5",
"LicenseModel": "postgresql-license",
"MasterUsername": "rootUser",
"MasterUserPassword": "myRootUserPassword",
"MultiAZ": "true",
"StorageType": "gp2"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment