aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-28 19:18:42 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-28 19:18:42 +0100
commit66f2ced194904126b07729efe9ea237735e42493 (patch)
treeada7c770058d2ebe255080bfeac3e8a40ad1b1ac
parent411d9508f21e0d87b4951d43f0826107b7582e34 (diff)
downloadgovuk-mini-environment-admin-66f2ced194904126b07729efe9ea237735e42493.tar
govuk-mini-environment-admin-66f2ced194904126b07729efe9ea237735e42493.tar.gz
Ensure the log directory exists in the AWS backend
-rw-r--r--terraform/aws/mini_environment/main.tf2
1 files changed, 1 insertions, 1 deletions
diff --git a/terraform/aws/mini_environment/main.tf b/terraform/aws/mini_environment/main.tf
index afeda8d..4247f8b 100644
--- a/terraform/aws/mini_environment/main.tf
+++ b/terraform/aws/mini_environment/main.tf
@@ -106,7 +106,7 @@ resource "aws_spot_instance_request" "main" {
"sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443",
"sudo iptables -A OUTPUT -t nat -o lo -p tcp --dport 80 -j REDIRECT --to-port 8080",
"sudo iptables -A OUTPUT -t nat -o lo -p tcp --dport 443 -j REDIRECT --to-port 8443",
- "sudo mkdir -p /var/cache/govuk-mini-environment-admin /var/lib/govuk-mini-environment-admin",
+ "sudo mkdir -p /var/cache/govuk-mini-environment-admin /var/lib/govuk-mini-environment-admin /var/log/govuk-mini-environment-admin",
"sudo mv /home/ubuntu/govuk.service /etc/systemd/system/govuk.service",
"sudo systemctl daemon-reload",
"sudo systemctl enable govuk.service",