#cloud-config repo_update: true repo_upgrade: all packages: - apache2 runcmd: - systemctl start apache2 - sudo systemctl enable apache2 - [ sh, -c, 'echo "

Deployed Machine via Terraform

" | sudo tee /var/www/html/index.html'] output: all: '| tee -a /var/log/cloud-init-output.log'