Skip to content

A Terraform template to deploy Ghost to AWS with Cloudflare.

License

Notifications You must be signed in to change notification settings

lukefaccin/ghost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Ghost Deployment

A terraform template which will deploy ghost to AWS and proxy traffic through Cloudflare.

Warning: This template will deploy an EC2 instance by searching for the latest available Ubuntu 20.04 AMI in the AWS region that you're deploying. If you decide to modify the template when a newer Ubuntu AMI is available in your region the EC2 instance will be deleted and replaced with a deployment using the newer AMI. To avoid your instance being overwritten with a blank one you may want to consider hard coding the AMI ID after your initial deployment. This can be done by setting the ami value to a string in the resource "aws_instance" "web" under /modules/server/main.tf.

Build Guide:

Note: This requires the AWS SDK to be configured on the machine the template is deployed from and will use the 'default' profile unless otherwise specified in the root 'variables.tf' file.

  1. Populate the 'variable.tf' file in the root directory with 'default' values. This will inject the appropriate values throughout the rest of the template.
  2. Initialize Terraform terraform init
  3. Create the deployment plan terraform build -out myplan
  4. Run the deployment plan terraform apply myplan

About

A Terraform template to deploy Ghost to AWS with Cloudflare.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages