Terraform and Ansible scripts to setup a cheap and fast GoPhish instance on AWS. And with Cloudflare DNS record setup too.
This is designed to be a quick setup and should be considered a starting point rather than something for long term production use.
- Run
terraform init
to download required Terraform modules - Set any required AWS and Cloudflare environment variables according to Terraform documentation for each module (e.g.
CLOUDFLARE_API_TOKEN
andAWS_PROFILE
) - Optionally create a Terraform variables file with any edits to variables, otherwise you will be prompted each time
- Run
terraform apply
to create infrastructure and Ansible inventory file - Run
ansible-playbook -i inventory.yaml playbook.yaml
to provision GoPhish - Visit the admin domain output by Terraform to see the GoPhish admin page. You will need to SSH into the EC2 instance and get the default password (
cat /var/log/gophish.log
)