diff options
author | clarkzjw <[email protected]> | 2022-12-11 14:31:40 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2022-12-11 14:31:40 -0800 |
commit | 39317f1daab7771105878a4d0051d3d770425e19 (patch) | |
tree | 498e694f93564988971b092ff5071f161b77561b | |
parent | 43e300d147a9554ae4ae5e45610c71edba2e635f (diff) | |
download | jinwei.me-39317f1daab7771105878a4d0051d3d770425e19.tar.gz |
infra: resize ec2 root volume
-rw-r--r-- | jinwei.me/config/roles/debian_init/tasks/main.yaml | 1 | ||||
-rw-r--r-- | jinwei.me/infra/main.tf | 3 |
2 files changed, 4 insertions, 0 deletions
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 @@ | |||
19 | - gnupg | 19 | - gnupg |
20 | - htop | 20 | - htop |
21 | - curl | 21 | - curl |
22 | - tree | ||
22 | - zip | 23 | - zip |
23 | - vim | 24 | - vim |
24 | - zsh | 25 | - 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" { | |||
24 | 24 | ||
25 | root_block_device { | 25 | root_block_device { |
26 | volume_type = "gp3" | 26 | volume_type = "gp3" |
27 | // how to resize partition and file system after resizing ebs volume | ||
28 | // https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html | ||
29 | volume_size = "30" | ||
27 | tags = { | 30 | tags = { |
28 | Name = "${local.name}-root" | 31 | Name = "${local.name}-root" |
29 | } | 32 | } |