Created
September 19, 2016 14:25
-
-
Save addamh/357e70717a9d24652d3428648d33913b to your computer and use it in GitHub Desktop.
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
"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