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 75da227 commit 2d13c6a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions aws-image-pipeline.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
{
"path": "../image-pipeline-goss-testing",
"name": "test/goss-testing"
},
{
"path": "../packer-plugin-amazon/docs"
}
],
"settings": {
Expand Down
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 = "../terraform-aws-image-pipeline"
source = "HappyPathway/image-pipeline/aws"
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/sda1"
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"
mount_path = "/apps" # Changed from /APPS to match Ansible task
encrypted = true
},
{
device_name = "/dev/xvdh"
volume_size = 50
volume_type = "gp3"
delete_on_termination = true
mount_path = "/optmor"
mount_path = "/opt/morpheus" # Changed from /optmor to match Ansible task
encrypted = true
},
{
device_name = "/dev/xvdi"
volume_size = 150
volume_type = "gp3"
delete_on_termination = true
mount_path = "/varoptmor"
mount_path = "/var/opt/morpheus" # Changed from /varoptmor to match Ansible task
encrypted = true
}
]
Expand Down

0 comments on commit 2d13c6a

Please sign in to comment.