AWS WordPress Deployment with CloudFront using Terraform

I couldn’t find an existing repo with a simple way to deploy a WordPress site on AWS with CloudFront CDN integration, so I created this Terraform script to do it: main-salman/aws-wordpress-cloudfront-terraform: A WordPress deployment on AWS fronted by CloudFront CDN deployed using Terraform.

This is great to test out CloudFront CDN integration with WordPress on AWS. Bunch of other scripts I found required owning a domain name and other inputs. This is just a simple script to get you started. Just simply run “terraform init” and “terraform apply” and you’re good to go!

Before running the script, the only three things you need to provide are:

  1. AWS Access Key
  2. AWS Secret Key
  3. Key Pair Name

All the other variables are optional and you can change them to your liking.

Continue reading “AWS WordPress Deployment with CloudFront using Terraform”

Blog at WordPress.com.

Up ↑