All technological notes.
user_data = templatefile("${path.module}/templates/script.tpl", {
"bucketname" = var.bucket_name
})
apt update
apt install -y nginx aws-cli
rm /var/www/html/index # remove default file
aws s3 sync s3://${bucket_name} /var/www/html/
Legacy: Can use provisioner
https://developer.hashicorp.com/terraform/language/resources/provisioners/syntax