Terraform configurations for building infrastructure for a hugo static web in AWS.
It is supposed you have a user with the appropiate profile in order to make changes in S3, ACM, Route 53, CloudFront. Also a zone for the domain must exists in Route 53.
Customization is made with variables definition that are declared at variables.tf file.
Once you have a provisioned infrastructure, you can deploy your static web generated by Hugo.
This configurations are customizations, updates and improvements on this shared gist by @nagelflorian.
Also there is a very interesting post about this matter: https://lustforge.com/2016/02/27/hosting-hugo-on-aws/
It has been to me a proof-of-concept for learning Terraform, feel free forking and making improvements on it.