From fb870ac1ae2bec7cc3b4c4a0ab47dad0dd5ba816 Mon Sep 17 00:00:00 2001 From: arnol377 Date: Tue, 11 Feb 2025 18:31:43 -0500 Subject: [PATCH] fix: update morpheus module config to use proper device mappings for NVMe EBS volumes --- morpheus.tf | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/morpheus.tf b/morpheus.tf index 7e09800..0b6f06a 100644 --- a/morpheus.tf +++ b/morpheus.tf @@ -46,34 +46,35 @@ module "morpheus" { assets_bucket_name = aws_s3_bucket.assets_bucket.bucket image_volume_mapping = [ { - device_name = "/dev/xvda" + device_name = "/dev/sda1" # Root device volume_size = 200 volume_type = "gp3" delete_on_termination = true encrypted = true + mount_path = "/" # Root mount point }, { - device_name = "/dev/xvdf" + device_name = "/dev/sdf" # Will show up as /dev/nvme1n1 volume_size = 10 volume_type = "gp3" delete_on_termination = true - mount_path = "/APPS" + mount_path = "/apps" encrypted = true }, { - device_name = "/dev/xvdh" + device_name = "/dev/sdh" # Will show up as /dev/nvme2n1 volume_size = 50 volume_type = "gp3" delete_on_termination = true - mount_path = "/optmor" + mount_path = "/opt/morpheus" encrypted = true }, { - device_name = "/dev/xvdi" + device_name = "/dev/sdi" # Will show up as /dev/nvme3n1 volume_size = 150 volume_type = "gp3" delete_on_termination = true - mount_path = "/varoptmor" + mount_path = "/var/opt/morpheus" encrypted = true } ]