Terraform code to run/bring down an Ubuntu 24.04 AMI on EC2 which uses OIDC to assume AWS role.
Currently uses cloud-init via Terraform to create user and ansible-playbook
command is called via Terraform remote-exec
.
Also uses fail2ban for SSH and rsync to copy the website files on update from the github.io repository.
TODO:
- Website deployment via webhook on push to website repository
- Use Elastic IP for static address