diff --git a/aws/royals/ec2.tf b/aws/royals/ec2.tf index 85f9b36..1d356d2 100644 --- a/aws/royals/ec2.tf +++ b/aws/royals/ec2.tf @@ -4,6 +4,12 @@ resource "aws_instance" "database" { subnet_id = aws_subnet.private_1.id vpc_security_group_ids = [aws_security_group.ec2.id] + root_block_device { + volume_size = 50 + volume_type = "gp3" + delete_on_termination = true + } + user_data = templatefile("${path.module}/postgres-docker.sh.tpl", { postgres_password = var.postgres_password }) tags = { @@ -17,6 +23,12 @@ resource "aws_instance" "cache" { subnet_id = aws_subnet.private_2.id vpc_security_group_ids = [aws_security_group.ec2.id] + root_block_device { + volume_size = 15 + volume_type = "gp3" + delete_on_termination = true + } + user_data = templatefile("${path.module}/redis-docker.sh.tpl", {}) tags = {