Skip to content

Commit

Permalink
Bump demo instance disk (airbytehq#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-tricot authored Jan 30, 2021
1 parent c5dee4c commit ea00397
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform/aws/demo/core/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ 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() {
install_init
install_docker
install_docker_compose
install_airbyte
install_demo_pg
}

main > /tmp/init.log 2>&1
4 changes: 4 additions & 0 deletions terraform/aws/demo/core/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit ea00397

Please sign in to comment.