From ea00397f2654cab5b7003df3a0a6895230a35d71 Mon Sep 17 00:00:00 2001 From: Michel Tricot Date: Fri, 29 Jan 2021 19:09:40 -0800 Subject: [PATCH] Bump demo instance disk (#1901) --- terraform/aws/demo/core/init.sh | 3 +++ terraform/aws/demo/core/main.tf | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/terraform/aws/demo/core/init.sh b/terraform/aws/demo/core/init.sh index 21f9870f7e94a..7ea11db060f01 100644 --- a/terraform/aws/demo/core/init.sh +++ b/terraform/aws/demo/core/init.sh @@ -26,6 +26,8 @@ install_airbyte() { install_demo_pg() { docker run --rm --name postgres-demo -e POSTGRES_PASSWORD=password -p 3000:5432 -d postgres + docker exec postgres-demo psql -U postgres -c 'create database analytics;' + docker exec postgres-demo psql -U postgres -c 'grant all privileges on database analytics to postgres;' } main() { @@ -33,6 +35,7 @@ main() { install_docker install_docker_compose install_airbyte + install_demo_pg } main > /tmp/init.log 2>&1 diff --git a/terraform/aws/demo/core/main.tf b/terraform/aws/demo/core/main.tf index 97df8d1216992..2e91c3f66c22a 100644 --- a/terraform/aws/demo/core/main.tf +++ b/terraform/aws/demo/core/main.tf @@ -52,6 +52,10 @@ resource "aws_instance" "airbyte-instance" { user_data = file("${path.module}/init.sh") + root_block_device { + volume_size = 60 + } + tags = { Name = "${var.name}-airbyte-app" }