From 39317f1daab7771105878a4d0051d3d770425e19 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Sun, 11 Dec 2022 14:31:40 -0800 Subject: infra: resize ec2 root volume --- jinwei.me/config/roles/debian_init/tasks/main.yaml | 1 + jinwei.me/infra/main.tf | 3 +++ 2 files changed, 4 insertions(+) diff --git a/jinwei.me/config/roles/debian_init/tasks/main.yaml b/jinwei.me/config/roles/debian_init/tasks/main.yaml index 664d41c..563d582 100644 --- a/jinwei.me/config/roles/debian_init/tasks/main.yaml +++ b/jinwei.me/config/roles/debian_init/tasks/main.yaml @@ -19,6 +19,7 @@ - gnupg - htop - curl + - tree - zip - vim - zsh diff --git a/jinwei.me/infra/main.tf b/jinwei.me/infra/main.tf index 235aba0..670b288 100644 --- a/jinwei.me/infra/main.tf +++ b/jinwei.me/infra/main.tf @@ -24,6 +24,9 @@ resource "aws_instance" "jinwei_me" { root_block_device { volume_type = "gp3" + // how to resize partition and file system after resizing ebs volume + // https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html + volume_size = "30" tags = { Name = "${local.name}-root" } -- cgit v1.2.3