Skip to content

Commit

Permalink
Refactor morpheus.tf to update module source and adjust volume mappin…
Browse files Browse the repository at this point in the history
…gs for consistency with Ansible tasks
  • Loading branch information
arnol377 committed Feb 11, 2025
1 parent 2d13c6a commit 960af7e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions morpheus.tf
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -44,36 +44,36 @@ 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
},
{
device_name = "/dev/xvdh"
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
},
{
device_name = "/dev/xvdi"
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
}
]
Expand Down

0 comments on commit 960af7e

Please sign in to comment.