From 960af7ef4aa1a52d28918e54b0fb3f91f4719e5a Mon Sep 17 00:00:00 2001 From: arnol377 Date: Tue, 11 Feb 2025 18:21:06 -0500 Subject: [PATCH] Refactor morpheus.tf to update module source and adjust volume mappings for consistency with Ansible tasks --- morpheus.tf | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/morpheus.tf b/morpheus.tf index 0287615..7e09800 100644 --- a/morpheus.tf +++ b/morpheus.tf @@ -1,5 +1,5 @@ module "morpheus" { - source = "HappyPathway/image-pipeline/aws" + source = "../terraform-aws-image-pipeline" project_name = "morpheus-app" builder_image = "aws/codebuild/standard:7.0" create_new_role = true @@ -44,20 +44,20 @@ module "morpheus" { shutdown_behavior = "stop" } assets_bucket_name = aws_s3_bucket.assets_bucket.bucket - root_volume = { - device_name = "/dev/sda1" - volume_size = 200 - volume_type = "gp3" - delete_on_termination = true - } - image_volume_mapping = [ + { + device_name = "/dev/xvda" + volume_size = 200 + volume_type = "gp3" + delete_on_termination = true + encrypted = true + }, { device_name = "/dev/xvdf" volume_size = 10 volume_type = "gp3" delete_on_termination = true - mount_path = "/apps" # Changed from /APPS to match Ansible task + mount_path = "/APPS" encrypted = true }, { @@ -65,7 +65,7 @@ module "morpheus" { volume_size = 50 volume_type = "gp3" delete_on_termination = true - mount_path = "/opt/morpheus" # Changed from /optmor to match Ansible task + mount_path = "/optmor" encrypted = true }, { @@ -73,7 +73,7 @@ module "morpheus" { volume_size = 150 volume_type = "gp3" delete_on_termination = true - mount_path = "/var/opt/morpheus" # Changed from /varoptmor to match Ansible task + mount_path = "/varoptmor" encrypted = true } ]