Skip to content

Conversation

@dylanratcliffe
Copy link
Member

No description provided.

@env0
Copy link

env0 bot commented Dec 9, 2025

🚀  env0 had composed a PR Plan for environment Terraform Example / production :

Plan: 0 to add, 3 to change, 0 to destroy.
Plan Details
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!   update in-place

Terraform will perform the following actions:


  # module.scenarios[0].aws_autoscaling_group.my_asg has moved to module.heritage[0].aws_autoscaling_group.my_asg
    resource "aws_autoscaling_group" "my_asg" {
        id                               = "asg-change-test-asg-terraform-example"
        name                             = "asg-change-test-asg-terraform-example"
        # (26 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_cloudfront_cache_policy.headers_based_policy has moved to module.heritage[0].aws_cloudfront_cache_policy.headers_based_policy
    resource "aws_cloudfront_cache_policy" "headers_based_policy" {
        id          = "8e5fa4ea-50a6-44f8-86e8-3ca690bd9373"
        name        = "CacheHeadersBasedPolicy"
        # (6 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].aws_cloudfront_distribution.s3_distribution has moved to module.heritage[0].aws_cloudfront_distribution.s3_distribution
    resource "aws_cloudfront_distribution" "s3_distribution" {
        id                             = "E20U4HMGWRXZ4I"
        tags                           = {
            "Environment" = "production"
        }
        # (21 unchanged attributes hidden)

        # (6 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_cloudfront_distribution.visit_counter has moved to module.heritage[0].aws_cloudfront_distribution.visit_counter
    resource "aws_cloudfront_distribution" "visit_counter" {
        id                             = "E3LNWJXM6AF7NY"
        tags                           = {}
        # (20 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_cloudfront_function.example has moved to module.heritage[0].aws_cloudfront_function.example
    resource "aws_cloudfront_function" "example" {
        id                           = "terraform-example-adequate-gibbon"
        name                         = "terraform-example-adequate-gibbon"
        # (8 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_cloudfront_origin_access_control.b has moved to module.heritage[0].aws_cloudfront_origin_access_control.b
    resource "aws_cloudfront_origin_access_control" "b" {
        id                                = "E2Z0P6Y1TOEHYP"
        name                              = "example-terraform-example"
        # (6 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_cloudfront_origin_request_policy.headers_based_policy has moved to module.heritage[0].aws_cloudfront_origin_request_policy.headers_based_policy
    resource "aws_cloudfront_origin_request_policy" "headers_based_policy" {
        id      = "414eb566-4bb3-49d1-a868-0ee739830440"
        name    = "OriginHeadersBasedPolicy"
        # (3 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_cloudfront_response_headers_policy.headers-policy has moved to module.heritage[0].aws_cloudfront_response_headers_policy.headers-policy
    resource "aws_cloudfront_response_headers_policy" "headers-policy" {
        id      = "c7fd455f-1fa8-4632-9a22-fef9a58b69a9"
        name    = "baseline-terraform-example"
        # (3 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].aws_db_subnet_group.default has moved to module.heritage[0].aws_db_subnet_group.default
    resource "aws_db_subnet_group" "default" {
        id                      = "main-terraform-example"
        name                    = "main-terraform-example"
        tags                    = {
            "Name" = "Default DB Subnet Group for terraform-example"
        }
        # (6 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_ecs_service.face has moved to module.heritage[0].aws_ecs_service.face
    resource "aws_ecs_service" "face" {
        id                                 = "arn:aws:ecs:eu-west-2:540044833068:service/example-terraform-example/facial-recognition"
        name                               = "facial-recognition"
        tags                               = {}
        # (16 unchanged attributes hidden)

        # (5 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_ecs_service.visit_counter has moved to module.heritage[0].aws_ecs_service.visit_counter
    resource "aws_ecs_service" "visit_counter" {
        id                                 = "arn:aws:ecs:eu-west-2:540044833068:service/example-terraform-example/visit-counter"
        name                               = "visit-counter"
        tags                               = {}
        # (16 unchanged attributes hidden)

        # (5 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_ecs_task_definition.face has moved to module.heritage[0].aws_ecs_task_definition.face
    resource "aws_ecs_task_definition" "face" {
        id                       = "facial-recognition-terraform-example"
        tags                     = {}
        # (13 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_ecs_task_definition.visit_counter has moved to module.heritage[0].aws_ecs_task_definition.visit_counter
    resource "aws_ecs_task_definition" "visit_counter" {
        id                       = "visit-counter-terraform-example"
        tags                     = {}
        # (13 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_iam_role.lambda_iam_role has moved to module.heritage[0].aws_iam_role.lambda_iam_role
    resource "aws_iam_role" "lambda_iam_role" {
        id                    = "-terraform-example_lambda_iam_role"
        name                  = "-terraform-example_lambda_iam_role"
        tags                  = {}
        # (9 unchanged attributes hidden)
    }


  # module.scenarios[0].aws_instance.app_server has moved to module.heritage[0].aws_instance.app_server
    resource "aws_instance" "app_server" {
        id                                   = "i-07072e97b42111cc0"
        tags                                 = {
            "Environment" = "dev"
            "Name"        = "App Server"
        }
        # (32 unchanged attributes hidden)

        # (8 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_instance.webserver has moved to module.heritage[0].aws_instance.webserver
    resource "aws_instance" "webserver" {
        id                                   = "i-012cafc89720d6fb5"
        tags                                 = {
            "Environment" = "dev"
            "Name"        = "Webserver"
        }
        # (32 unchanged attributes hidden)

        # (8 unchanged blocks hidden)
    }

  # module.heritage[0].aws_lambda_function.example will be updated in-place
  # (moved from module.scenarios[0].aws_lambda_function.example)
!   resource "aws_lambda_function" "example" {
!       filename                       = "modules/scenarios/tmp/lambda_function.zip" -> "modules/heritage/tmp/lambda_function.zip"
        id                             = "-terraform-example_lambda_function"
!       last_modified                  = "2025-11-17T23:20:33.095+0000" -> (known after apply)
        tags                           = {}
        # (21 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_launch_template.my_launch_template has moved to module.heritage[0].aws_launch_template.my_launch_template
    resource "aws_launch_template" "my_launch_template" {
        id                      = "lt-04dc7394984712fe8"
        name                    = "asg-change-launch-template-terraform-example2025111723203932490000000b"
        tags                    = {}
        # (11 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_lb.main has moved to module.heritage[0].aws_lb.main
    resource "aws_lb" "main" {
        id                                          = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:loadbalancer/app/terraform-example/16bbb139e6d96ffb"
        name                                        = "terraform-example"
        tags                                        = {}
        # (24 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_lb_listener.http has moved to module.heritage[0].aws_lb_listener.http
    resource "aws_lb_listener" "http" {
        id                                   = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:listener/app/terraform-example/16bbb139e6d96ffb/1e73b4b315bff0f1"
        tags                                 = {}
        # (6 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].aws_lb_listener_rule.face has moved to module.heritage[0].aws_lb_listener_rule.face
    resource "aws_lb_listener_rule" "face" {
        id           = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:listener-rule/app/terraform-example/16bbb139e6d96ffb/1e73b4b315bff0f1/b0d2ff0e2982cec8"
        tags         = {}
        # (4 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_lb_listener_rule.visit_counter has moved to module.heritage[0].aws_lb_listener_rule.visit_counter
    resource "aws_lb_listener_rule" "visit_counter" {
        id           = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:listener-rule/app/terraform-example/16bbb139e6d96ffb/1e73b4b315bff0f1/e9d949c11c2c2ffb"
        tags         = {}
        # (4 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_lb_target_group.face has moved to module.heritage[0].aws_lb_target_group.face
    resource "aws_lb_target_group" "face" {
        id                                 = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:targetgroup/facerec-terraform-example/ccde9b5e810e9a5d"
        name                               = "facerec-terraform-example"
        tags                               = {}
        # (17 unchanged attributes hidden)

        # (5 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_lb_target_group.my_new_target_group has moved to module.heritage[0].aws_lb_target_group.my_new_target_group
    resource "aws_lb_target_group" "my_new_target_group" {
        id                                 = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:targetgroup/asg-new-terraform-example/b25da3bfef43543c"
        name                               = "asg-new-terraform-example"
        tags                               = {}
        # (17 unchanged attributes hidden)

        # (5 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_lb_target_group.my_target_group has moved to module.heritage[0].aws_lb_target_group.my_target_group
    resource "aws_lb_target_group" "my_target_group" {
        id                                 = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:targetgroup/asg-change-tg-terraform-example/d9fca32e6f2d362a"
        name                               = "asg-change-tg-terraform-example"
        tags                               = {}
        # (17 unchanged attributes hidden)

        # (5 unchanged blocks hidden)
    }


  # module.scenarios[0].aws_lb_target_group.visit_counter has moved to module.heritage[0].aws_lb_target_group.visit_counter
    resource "aws_lb_target_group" "visit_counter" {
        id                                 = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:targetgroup/visit-counter-terraform-example/5683104d7610bc44"
        name                               = "visit-counter-terraform-example"
        tags                               = {}
        # (17 unchanged attributes hidden)

        # (5 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_network_acl.restricted has moved to module.heritage[0].aws_network_acl.restricted
    resource "aws_network_acl" "restricted" {
        id         = "acl-069a798ad4aa03b2c"
        tags       = {
            "Name" = "Restricted Example"
        }
        # (7 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_network_acl_rule.allow_ephemeral has moved to module.heritage[0].aws_network_acl_rule.allow_ephemeral
    resource "aws_network_acl_rule" "allow_ephemeral" {
        id             = "nacl-2257767417"
        # (8 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_network_acl_rule.allow_http has moved to module.heritage[0].aws_network_acl_rule.allow_http
    resource "aws_network_acl_rule" "allow_http" {
        id             = "nacl-1744572244"
        # (8 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_network_acl_rule.allow_outbound has moved to module.heritage[0].aws_network_acl_rule.allow_outbound
    resource "aws_network_acl_rule" "allow_outbound" {
        id             = "nacl-1087552375"
        # (6 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_network_acl_rule.allow_ssh has moved to module.heritage[0].aws_network_acl_rule.allow_ssh
    resource "aws_network_acl_rule" "allow_ssh" {
        id             = "nacl-2345112011"
        # (8 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_network_acl_rule.deny_high_ports has moved to module.heritage[0].aws_network_acl_rule.deny_high_ports
    resource "aws_network_acl_rule" "deny_high_ports" {
        id             = "nacl-463284879"
        # (8 unchanged attributes hidden)
    }

  # module.heritage[0].aws_rds_cluster.face_database will be updated in-place
  # (moved from module.scenarios[0].aws_rds_cluster.face_database)
!   resource "aws_rds_cluster" "face_database" {
        id                                    = "facial-recognition-terraform-example"
        tags                                  = {}
        # (46 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].aws_rds_cluster_instance.face_database has moved to module.heritage[0].aws_rds_cluster_instance.face_database
    resource "aws_rds_cluster_instance" "face_database" {
        id                                    = "tf-20251117235257281600000001"
        tags                                  = {}
        # (31 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_route53_record.face has moved to module.heritage[0].aws_route53_record.face
    resource "aws_route53_record" "face" {
        id                               = "Z0909695IU5SU6N8UFON_face-terraform-example.overmind-terraform-example.com_CNAME"
        name                             = "face-terraform-example.overmind-terraform-example.com"
        # (6 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_route53_record.visit_counter has moved to module.heritage[0].aws_route53_record.visit_counter
    resource "aws_route53_record" "visit_counter" {
        id                               = "Z0909695IU5SU6N8UFON_visits-terraform-example.overmind-terraform-example.com_CNAME"
        name                             = "visits-terraform-example.overmind-terraform-example.com"
        # (6 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_route_table_association.restricted-2a has moved to module.heritage[0].aws_route_table_association.restricted-2a
    resource "aws_route_table_association" "restricted-2a" {
        id             = "rtbassoc-0424ae05f399b1fe1"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_route_table_association.restricted-2b has moved to module.heritage[0].aws_route_table_association.restricted-2b
    resource "aws_route_table_association" "restricted-2b" {
        id             = "rtbassoc-07a004760c9195770"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_s3_bucket.b has moved to module.heritage[0].aws_s3_bucket.b
    resource "aws_s3_bucket" "b" {
        id                          = "second-example-brave-crappie20251117232021571800000004"
        tags                        = {
            "Name" = "Second example bucket"
        }
        # (11 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_s3_bucket.my_bucket has moved to module.heritage[0].aws_s3_bucket.my_bucket
    resource "aws_s3_bucket" "my_bucket" {
        id                          = "bucket-notification-terraform-example20251117232019549500000001"
        tags                        = {}
        # (12 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # module.scenarios[0].aws_s3_bucket_acl.b_acl has moved to module.heritage[0].aws_s3_bucket_acl.b_acl
    resource "aws_s3_bucket_acl" "b_acl" {
        id     = "second-example-brave-crappie20251117232021571800000004,private"
        # (2 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].aws_s3_bucket_notification.bucket_notification has moved to module.heritage[0].aws_s3_bucket_notification.bucket_notification
    resource "aws_s3_bucket_notification" "bucket_notification" {
        id          = "bucket-notification-terraform-example20251117232019549500000001"
        # (2 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].aws_s3_bucket_ownership_controls.b has moved to module.heritage[0].aws_s3_bucket_ownership_controls.b
    resource "aws_s3_bucket_ownership_controls" "b" {
        id     = "second-example-brave-crappie20251117232021571800000004"
        # (1 unchanged attribute hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].aws_s3_bucket_policy.bucket_policy has moved to module.heritage[0].aws_s3_bucket_policy.bucket_policy
    resource "aws_s3_bucket_policy" "bucket_policy" {
        id     = "s3-one-adequate-gibbon20251117232020021100000002"
        # (2 unchanged attributes hidden)
    }


  # module.scenarios[0].aws_security_group.allow_access has moved to module.heritage[0].aws_security_group.allow_access
    resource "aws_security_group" "allow_access" {
        id                     = "sg-0c7e72143f1b9c08c"
        name                   = "allow_access-terraform-example"
        tags                   = {}
        # (8 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_security_group.instance_sg has moved to module.heritage[0].aws_security_group.instance_sg
    resource "aws_security_group" "instance_sg" {
        id                     = "sg-057ed2204f81107a5"
        name                   = "terraform-2025111723203855250000000a"
        tags                   = {}
        # (9 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_sns_topic.example_topic has moved to module.heritage[0].aws_sns_topic.example_topic
    resource "aws_sns_topic" "example_topic" {
        id                                       = "arn:aws:sns:eu-west-2:540044833068:-terraform-example-topic"
        name                                     = "-terraform-example-topic"
        tags                                     = {}
        # (12 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_sqs_queue.my_queue has moved to module.heritage[0].aws_sqs_queue.my_queue
    resource "aws_sqs_queue" "my_queue" {
        id                                = "https://sqs.eu-west-2.amazonaws.com/540044833068/-terraform-example-notifications-from-s3"
        name                              = "-terraform-example-notifications-from-s3"
        tags                              = {}
        # (13 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_sqs_queue_policy.my_queue_policy has moved to module.heritage[0].aws_sqs_queue_policy.my_queue_policy
    resource "aws_sqs_queue_policy" "my_queue_policy" {
        id        = "https://sqs.eu-west-2.amazonaws.com/540044833068/-terraform-example-notifications-from-s3"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_subnet.restricted-2a has moved to module.heritage[0].aws_subnet.restricted-2a
    resource "aws_subnet" "restricted-2a" {
        id                                             = "subnet-0ec75df66980d2920"
        tags                                           = {
            "Name" = "Restricted 2a"
        }
        # (16 unchanged attributes hidden)
    }

  # module.scenarios[0].aws_subnet.restricted-2b has moved to module.heritage[0].aws_subnet.restricted-2b
    resource "aws_subnet" "restricted-2b" {
        id                                             = "subnet-0e4cc60d35634e85b"
        tags                                           = {
            "Name" = "Restricted 2b"
        }
        # (16 unchanged attributes hidden)
    }

  # module.scenarios[0].random_pet.second has moved to module.heritage[0].random_pet.second
    resource "random_pet" "second" {
        id        = "brave-crappie"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].random_pet.this has moved to module.heritage[0].random_pet.this
    resource "random_pet" "this" {
        id        = "adequate-gibbon"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_default_network_acl.this[0] has moved to module.baseline.module.vpc.aws_default_network_acl.this[0]
    resource "aws_default_network_acl" "this" {
        id                     = "acl-088dc8f9998dacc6b"
        tags                   = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-default"
            "Terraform"   = "true"
        }
        # (6 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.scenarios[0].module.vpc.aws_default_route_table.default[0] has moved to module.baseline.module.vpc.aws_default_route_table.default[0]
    resource "aws_default_route_table" "default" {
        id                     = "rtb-0551700a1aabf64c9"
        tags                   = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-default"
            "Terraform"   = "true"
        }
        # (7 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].module.vpc.aws_default_security_group.this[0] has moved to module.baseline.module.vpc.aws_default_security_group.this[0]
    resource "aws_default_security_group" "this" {
        id                     = "sg-0159f0e3d8224d441"
        name                   = "default"
        tags                   = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-default"
            "Terraform"   = "true"
        }
        # (8 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_eip.nat[0] has moved to module.baseline.module.vpc.aws_eip.nat[0]
    resource "aws_eip" "nat" {
        id                   = "eipalloc-07cc93e43d376b5e9"
        tags                 = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-eu-west-2a"
            "Terraform"   = "true"
        }
        # (13 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_eip.nat[1] has moved to module.baseline.module.vpc.aws_eip.nat[1]
    resource "aws_eip" "nat" {
        id                   = "eipalloc-0646301f7a4de4912"
        tags                 = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-eu-west-2b"
            "Terraform"   = "true"
        }
        # (13 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_internet_gateway.this[0] has moved to module.baseline.module.vpc.aws_internet_gateway.this[0]
    resource "aws_internet_gateway" "this" {
        id       = "igw-01cea3cff43162407"
        tags     = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example"
            "Terraform"   = "true"
        }
        # (4 unchanged attributes hidden)
    }


  # module.scenarios[0].module.vpc.aws_nat_gateway.this[0] has moved to module.baseline.module.vpc.aws_nat_gateway.this[0]
    resource "aws_nat_gateway" "this" {
        id                                 = "nat-038cdf7bebbe06e18"
        tags                               = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-eu-west-2a"
            "Terraform"   = "true"
        }
        # (11 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_nat_gateway.this[1] has moved to module.baseline.module.vpc.aws_nat_gateway.this[1]
    resource "aws_nat_gateway" "this" {
        id                                 = "nat-08567ba3cecdcfda4"
        tags                               = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-eu-west-2b"
            "Terraform"   = "true"
        }
        # (11 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_route.private_nat_gateway[0] has moved to module.baseline.module.vpc.aws_route.private_nat_gateway[0]
    resource "aws_route" "private_nat_gateway" {
        id                     = "r-rtb-00d53afc4950c3e9a1080289494"
        # (5 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].module.vpc.aws_route.private_nat_gateway[1] has moved to module.baseline.module.vpc.aws_route.private_nat_gateway[1]
    resource "aws_route" "private_nat_gateway" {
        id                     = "r-rtb-06193a3194e6d8cf21080289494"
        # (5 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].module.vpc.aws_route.public_internet_gateway[0] has moved to module.baseline.module.vpc.aws_route.public_internet_gateway[0]
    resource "aws_route" "public_internet_gateway" {
        id                     = "r-rtb-073519b951ac0afb51080289494"
        # (5 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].module.vpc.aws_route_table.private[0] has moved to module.baseline.module.vpc.aws_route_table.private[0]
    resource "aws_route_table" "private" {
        id               = "rtb-00d53afc4950c3e9a"
        tags             = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-private-eu-west-2a"
            "Terraform"   = "true"
        }
        # (6 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_route_table.private[1] has moved to module.baseline.module.vpc.aws_route_table.private[1]
    resource "aws_route_table" "private" {
        id               = "rtb-06193a3194e6d8cf2"
        tags             = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-private-eu-west-2b"
            "Terraform"   = "true"
        }
        # (6 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_route_table.public[0] has moved to module.baseline.module.vpc.aws_route_table.public[0]
    resource "aws_route_table" "public" {
        id               = "rtb-073519b951ac0afb5"
        tags             = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-public"
            "Terraform"   = "true"
        }
        # (6 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_route_table_association.private[0] has moved to module.baseline.module.vpc.aws_route_table_association.private[0]
    resource "aws_route_table_association" "private" {
        id             = "rtbassoc-0557ac7367cfe9d9c"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_route_table_association.private[1] has moved to module.baseline.module.vpc.aws_route_table_association.private[1]
    resource "aws_route_table_association" "private" {
        id             = "rtbassoc-03c4cc8adce32d125"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_route_table_association.public[0] has moved to module.baseline.module.vpc.aws_route_table_association.public[0]
    resource "aws_route_table_association" "public" {
        id             = "rtbassoc-0bc7bb20e5bff7b21"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_route_table_association.public[1] has moved to module.baseline.module.vpc.aws_route_table_association.public[1]
    resource "aws_route_table_association" "public" {
        id             = "rtbassoc-0f86a1cf1181d93f4"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_subnet.private[0] has moved to module.baseline.module.vpc.aws_subnet.private[0]
    resource "aws_subnet" "private" {
        id                                             = "subnet-09605cfe202ef69e7"
        tags                                           = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-private-eu-west-2a"
            "Terraform"   = "true"
        }
        # (16 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_subnet.private[1] has moved to module.baseline.module.vpc.aws_subnet.private[1]
    resource "aws_subnet" "private" {
        id                                             = "subnet-0eae990ebecf2d640"
        tags                                           = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-private-eu-west-2b"
            "Terraform"   = "true"
        }
        # (16 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_subnet.public[0] has moved to module.baseline.module.vpc.aws_subnet.public[0]
    resource "aws_subnet" "public" {
        id                                             = "subnet-0a1b287732e8ad0b7"
        tags                                           = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-public-eu-west-2a"
            "Terraform"   = "true"
        }
        # (16 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_subnet.public[1] has moved to module.baseline.module.vpc.aws_subnet.public[1]
    resource "aws_subnet" "public" {
        id                                             = "subnet-07fc72cf57c70e4f0"
        tags                                           = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example-public-eu-west-2b"
            "Terraform"   = "true"
        }
        # (16 unchanged attributes hidden)
    }

  # module.scenarios[0].module.vpc.aws_vpc.this[0] has moved to module.baseline.module.vpc.aws_vpc.this[0]
    resource "aws_vpc" "this" {
        id                                   = "vpc-02901bcbb89561298"
        tags                                 = {
            "Environment" = "development"
            "Name"        = "workloads-terraform-example"
            "Terraform"   = "true"
        }
        # (15 unchanged attributes hidden)
    }

  # module.scenarios[0].module.cloudfront.aws_cloudfront_distribution.this[0] has moved to module.heritage[0].module.cloudfront.aws_cloudfront_distribution.this[0]
    resource "aws_cloudfront_distribution" "this" {
        id                             = "EX4HFUQMZ2ULI"
        tags                           = {}
        # (20 unchanged attributes hidden)

        # (10 unchanged blocks hidden)
    }

  # module.scenarios[0].module.cloudfront.aws_cloudfront_monitoring_subscription.this[0] has moved to module.heritage[0].module.cloudfront.aws_cloudfront_monitoring_subscription.this[0]
    resource "aws_cloudfront_monitoring_subscription" "this" {
        id              = "EX4HFUQMZ2ULI"
        # (1 unchanged attribute hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].module.cloudfront.aws_cloudfront_origin_access_control.this["terraform-example"] has moved to module.heritage[0].module.cloudfront.aws_cloudfront_origin_access_control.this["terraform-example"]
    resource "aws_cloudfront_origin_access_control" "this" {
        id                                = "E3F5P5J73PT9IJ"
        name                              = "terraform-example"
        # (6 unchanged attributes hidden)
    }

  # module.scenarios[0].module.cloudfront.aws_cloudfront_origin_access_identity.this["s3_bucket_one"] has moved to module.heritage[0].module.cloudfront.aws_cloudfront_origin_access_identity.this["s3_bucket_one"]
    resource "aws_cloudfront_origin_access_identity" "this" {
        id                              = "E3773WNTKP0C2U"
        # (7 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_cloudwatch_log_group.app[0] has moved to module.heritage[0].module.memory_optimization.aws_cloudwatch_log_group.app[0]
    resource "aws_cloudwatch_log_group" "app" {
        id                = "/ecs/scenarios--27e78067"
        name              = "/ecs/scenarios--27e78067"
        tags              = {
            "CreatedBy"         = "terraform"
            "DaysUntilBF"       = "7"
            "Description"       = "Logs will show OOM kills when memory is reduced to 1024MB"
            "Environment"       = "demo"
            "JavaHeapMB"        = "1536"
            "MemoryMB"          = "2048"
            "Name"              = "scenarios--27e78067-logs"
            "OptimizationWorks" = "true"
            "Project"           = "memory-optimization"
            "Purpose"           = "production-optimization"
            "RequiredMemoryMB"  = "1792"
            "RiskLevel"         = "low"
            "Scenario"          = "cost-reduction"
        }
        # (5 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_cloudwatch_log_metric_filter.memory_pressure[0] has moved to module.heritage[0].module.memory_optimization.aws_cloudwatch_log_metric_filter.memory_pressure[0]
    resource "aws_cloudwatch_log_metric_filter" "memory_pressure" {
        id             = "scenarios--27e78067-memory-pressure"
        name           = "scenarios--27e78067-memory-pressure"
        # (2 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_cloudwatch_metric_alarm.high_cpu_utilization[0] has moved to module.heritage[0].module.memory_optimization.aws_cloudwatch_metric_alarm.high_cpu_utilization[0]
    resource "aws_cloudwatch_metric_alarm" "high_cpu_utilization" {
        id                        = "scenarios--27e78067-high-cpu"
        tags                      = {
            "CreatedBy"         = "terraform"
            "DaysUntilBF"       = "7"
            "Description"       = "CPU utilization alarm for Java application performance"
            "Environment"       = "demo"
            "GCPressure"        = "high-when-heap-approaches-limit"
            "JVMBehavior"       = "CPU-spikes-before-OOM"
            "JavaHeapMB"        = "1536"
            "MemoryMB"          = "2048"
            "MemoryThrashing"   = "frequent-GC-when-constrained"
            "Name"              = "scenarios--27e78067-cpu-alarm"
            "OptimizationWorks" = "true"
            "Project"           = "memory-optimization"
            "Purpose"           = "production-optimization"
            "RequiredMemoryMB"  = "1792"
            "RiskLevel"         = "low"
            "Scenario"          = "cost-reduction"
        }
        # (18 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_cloudwatch_metric_alarm.high_memory_utilization[0] has moved to module.heritage[0].module.memory_optimization.aws_cloudwatch_metric_alarm.high_memory_utilization[0]
    resource "aws_cloudwatch_metric_alarm" "high_memory_utilization" {
        id                        = "scenarios--27e78067-high-memory"
        tags                      = {
            "AlarmTrigger"        = "memory-over-80-percent"
            "ContainerMemoryMB"   = "2048"
            "CreatedBy"           = "terraform"
            "DaysUntilBF"         = "7"
            "Description"         = "Memory utilization alarm for Java application"
            "Environment"         = "demo"
            "JavaHeapMB"          = "1536"
            "MemoryMB"            = "2048"
            "Name"                = "scenarios--27e78067-memory-alarm"
            "OptimizationWorks"   = "true"
            "Project"             = "memory-optimization"
            "Purpose"             = "production-optimization"
            "RequiredMemoryMB"    = "1792"
            "RiskLevel"           = "low"
            "Scenario"            = "cost-reduction"
            "WillFireAfterChange" = "false"
        }
        # (18 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_cloudwatch_metric_alarm.low_task_count[0] has moved to module.heritage[0].module.memory_optimization.aws_cloudwatch_metric_alarm.low_task_count[0]
    resource "aws_cloudwatch_metric_alarm" "low_task_count" {
        id                        = "scenarios--27e78067-low-task-count"
        tags                      = {
            "BusinessImpact"    = "service-degradation"
            "CrashCause"        = "OOM-when-memory-reduced"
            "CreatedBy"         = "terraform"
            "DaysUntilBF"       = "7"
            "Description"       = "Task count alarm for container health monitoring"
            "Environment"       = "demo"
            "ExpectedTasks"     = "3"
            "JavaHeapMB"        = "1536"
            "MemoryMB"          = "2048"
            "Name"              = "scenarios--27e78067-task-count-alarm"
            "OptimizationWorks" = "true"
            "Project"           = "memory-optimization"
            "Purpose"           = "production-optimization"
            "RequiredMemoryMB"  = "1792"
            "RiskLevel"         = "low"
            "Scenario"          = "cost-reduction"
            "ThresholdTasks"    = "2.4"
        }
        # (18 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_cloudwatch_metric_alarm.unhealthy_targets[0] has moved to module.heritage[0].module.memory_optimization.aws_cloudwatch_metric_alarm.unhealthy_targets[0]
    resource "aws_cloudwatch_metric_alarm" "unhealthy_targets" {
        id                        = "scenarios--27e78067-unhealthy-targets"
        tags                      = {
            "BusinessRisk"       = "outage-before-peak-season"
            "CreatedBy"          = "terraform"
            "DaysUntilBF"        = "7"
            "DeregistrationTime" = "5s"
            "Description"        = "ALB target health monitoring for application availability"
            "Environment"        = "demo"
            "JavaHeapMB"         = "1536"
            "MemoryMB"           = "2048"
            "Name"               = "scenarios--27e78067-unhealthy-targets-alarm"
            "OptimizationWorks"  = "true"
            "Project"            = "memory-optimization"
            "Purpose"            = "production-optimization"
            "RequiredMemoryMB"   = "1792"
            "RiskLevel"          = "low"
            "RollbackCapability" = "insufficient"
            "Scenario"           = "cost-reduction"
            "UserExperience"     = "failed-requests-during-crashes"
        }
        # (18 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_cloudwatch_query_definition.oom_events[0] has moved to module.heritage[0].module.memory_optimization.aws_cloudwatch_query_definition.oom_events[0]
    resource "aws_cloudwatch_query_definition" "oom_events" {
        id                  = "8d2b4d24-f4de-4ace-965a-54d45e1ad99e"
        name                = "scenarios--27e78067-oom-analysis"
        # (3 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_ecs_cluster.main[0] has moved to module.heritage[0].module.memory_optimization.aws_ecs_cluster.main[0]
    resource "aws_ecs_cluster" "main" {
        id       = "arn:aws:ecs:eu-west-2:540044833068:cluster/scenarios--27e78067-cluster"
        name     = "scenarios--27e78067-cluster"
        tags     = {
            "CreatedBy"         = "terraform"
            "DaysUntilBF"       = "7"
            "Description"       = "ECS cluster for memory optimization demo - all 3 containers will restart on memory change"
            "Environment"       = "demo"
            "JavaHeapMB"        = "1536"
            "MemoryMB"          = "2048"
            "Name"              = "scenarios--27e78067-cluster"
            "OptimizationWorks" = "true"
            "Project"           = "memory-optimization"
            "Purpose"           = "production-optimization"
            "RequiredMemoryMB"  = "1792"
            "RiskLevel"         = "low"
            "Scenario"          = "cost-reduction"
        }
        # (2 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }


  # module.scenarios[0].module.memory_optimization.aws_ecs_service.app[0] has moved to module.heritage[0].module.memory_optimization.aws_ecs_service.app[0]
    resource "aws_ecs_service" "app" {
        id                                 = "arn:aws:ecs:eu-west-2:540044833068:service/scenarios--27e78067-cluster/scenarios--27e78067-service"
        name                               = "scenarios--27e78067-service"
        tags                               = {
            "BusinessContext"    = "cost-optimization"
            "ContainersAffected" = "3"
            "CreatedBy"          = "terraform"
            "DaysUntilBF"        = "7"
            "DeploymentType"     = "rolling"
            "Description"        = "ECS service running Java application containers"
            "Environment"        = "demo"
            "JavaHeapMB"         = "1536"
            "MemoryMB"           = "2048"
            "Name"               = "scenarios--27e78067-service"
            "OptimizationWorks"  = "true"
            "Project"            = "memory-optimization"
            "Purpose"            = "production-optimization"
            "RequiredMemoryMB"   = "1792"
            "RiskLevel"          = "low"
            "Scenario"           = "cost-reduction"
        }
        # (17 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_ecs_task_definition.app[0] has moved to module.heritage[0].module.memory_optimization.aws_ecs_task_definition.app[0]
    resource "aws_ecs_task_definition" "app" {
        id                       = "scenarios--27e78067-task"
        tags                     = {
            "ContainerMemoryMB" = "2048"
            "CreatedBy"         = "terraform"
            "DaysUntilBF"       = "7"
            "Description"       = "ECS task definition with Java heap configuration"
            "Environment"       = "demo"
            "JavaHeapMB"        = "1536"
            "JavaHeapSizeMB"    = "1536"
            "MemoryMB"          = "2048"
            "MemoryOptimized"   = "true"
            "MemoryOverheadMB"  = "256"
            "Name"              = "scenarios--27e78067-task"
            "OptimizationWorks" = "true"
            "Project"           = "memory-optimization"
            "Purpose"           = "production-optimization"
            "RequiredMemoryMB"  = "1792"
            "RiskLevel"         = "low"
            "Scenario"          = "cost-reduction"
            "TotalRequiredMB"   = "1792"
        }
        # (15 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_iam_role.ecs_execution_role[0] has moved to module.heritage[0].module.memory_optimization.aws_iam_role.ecs_execution_role[0]
    resource "aws_iam_role" "ecs_execution_role" {
        id                    = "scenarios--27e78067-ecs-execution-role"
        name                  = "scenarios--27e78067-ecs-execution-role"
        tags                  = {
            "CreatedBy"         = "terraform"
            "DaysUntilBF"       = "7"
            "Environment"       = "demo"
            "JavaHeapMB"        = "1536"
            "MemoryMB"          = "2048"
            "OptimizationWorks" = "true"
            "Project"           = "memory-optimization"
            "Purpose"           = "production-optimization"
            "RequiredMemoryMB"  = "1792"
            "RiskLevel"         = "low"
            "Scenario"          = "cost-reduction"
        }
        # (9 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_iam_role.ecs_task_role[0] has moved to module.heritage[0].module.memory_optimization.aws_iam_role.ecs_task_role[0]
    resource "aws_iam_role" "ecs_task_role" {
        id                    = "scenarios--27e78067-ecs-task-role"
        name                  = "scenarios--27e78067-ecs-task-role"
        tags                  = {
            "CreatedBy"         = "terraform"
            "DaysUntilBF"       = "7"
            "Environment"       = "demo"
            "JavaHeapMB"        = "1536"
            "MemoryMB"          = "2048"
            "OptimizationWorks" = "true"
            "Project"           = "memory-optimization"
            "Purpose"           = "production-optimization"
            "RequiredMemoryMB"  = "1792"
            "RiskLevel"         = "low"
            "Scenario"          = "cost-reduction"
        }
        # (9 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_iam_role_policy_attachment.ecs_execution_role_policy[0] has moved to module.heritage[0].module.memory_optimization.aws_iam_role_policy_attachment.ecs_execution_role_policy[0]
    resource "aws_iam_role_policy_attachment" "ecs_execution_role_policy" {
        id         = "scenarios--27e78067-ecs-execution-role-20251117232023483800000005"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_lb.app[0] has moved to module.heritage[0].module.memory_optimization.aws_lb.app[0]
    resource "aws_lb" "app" {
        id                                          = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:loadbalancer/app/scenarios--27e78067-alb/d1465e8f5a619f26"
        name                                        = "scenarios--27e78067-alb"
        tags                                        = {
            "CreatedBy"                    = "terraform"
            "DaysUntilBF"                  = "7"
            "Description"                  = "ALB for memory optimization demo - will route to failing containers after memory change"
            "Environment"                  = "demo"
            "JavaHeapMB"                   = "1536"
            "MemoryMB"                     = "2048"
            "Name"                         = "scenarios--27e78067-alb"
            "OptimizationWorks"            = "true"
            "Project"                      = "memory-optimization"
            "Purpose"                      = "production-optimization"
            "RequiredMemoryMB"             = "1792"
            "RiskLevel"                    = "low"
            "Scenario"                     = "cost-reduction"
            "context:black-friday-traffic" = "10x normal load expected"
            "context:capacity-planning"    = "load balancer configured for high traffic"
        }
        # (24 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_lb_listener.app[0] has moved to module.heritage[0].module.memory_optimization.aws_lb_listener.app[0]
    resource "aws_lb_listener" "app" {
        id                                   = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:listener/app/scenarios--27e78067-alb/d1465e8f5a619f26/424adbb0b1b5a6ce"
        tags                                 = {
            "CreatedBy"         = "terraform"
            "DaysUntilBF"       = "7"
            "Environment"       = "demo"
            "JavaHeapMB"        = "1536"
            "MemoryMB"          = "2048"
            "Name"              = "scenarios--27e78067-listener"
            "OptimizationWorks" = "true"
            "Project"           = "memory-optimization"
            "Purpose"           = "production-optimization"
            "RequiredMemoryMB"  = "1792"
            "RiskLevel"         = "low"
            "Scenario"          = "cost-reduction"
        }
        # (6 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_lb_target_group.app[0] has moved to module.heritage[0].module.memory_optimization.aws_lb_target_group.app[0]
    resource "aws_lb_target_group" "app" {
        id                                 = "arn:aws:elasticloadbalancing:eu-west-2:540044833068:targetgroup/scenarios--27e78067-tg/0ce05c8cfec9e2f1"
        name                               = "scenarios--27e78067-tg"
        tags                               = {
            "CreatedBy"                 = "terraform"
            "DaysUntilBF"               = "7"
            "Description"               = "Target group with 5s deregistration - NO TIME FOR ROLLBACK"
            "Environment"               = "demo"
            "JavaHeapMB"                = "1536"
            "MemoryMB"                  = "2048"
            "Name"                      = "scenarios--27e78067-tg"
            "OptimizationWorks"         = "true"
            "Project"                   = "memory-optimization"
            "Purpose"                   = "production-optimization"
            "RequiredMemoryMB"          = "1792"
            "RiskLevel"                 = "low"
            "Scenario"                  = "cost-reduction"
            "risk:black-friday-timing"  = "change 7 days before peak"
            "risk:deregistration-delay" = "5s"
            "risk:rollback-capability"  = "none"
        }
        # (17 unchanged attributes hidden)

        # (5 unchanged blocks hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_security_group.alb[0] has moved to module.heritage[0].module.memory_optimization.aws_security_group.alb[0]
    resource "aws_security_group" "alb" {
        id                     = "sg-0b6f7b1aeeca6c2bc"
        name                   = "scenarios--27e78067-alb-sg"
        tags                   = {
            "CreatedBy"         = "terraform"
            "DaysUntilBF"       = "7"
            "Description"       = "ALB security group - public access for Black Friday capacity testing"
            "Environment"       = "demo"
            "JavaHeapMB"        = "1536"
            "MemoryMB"          = "2048"
            "Name"              = "scenarios--27e78067-alb-sg"
            "OptimizationWorks" = "true"
            "Project"           = "memory-optimization"
            "Purpose"           = "production-optimization"
            "RequiredMemoryMB"  = "1792"
            "RiskLevel"         = "low"
            "Scenario"          = "cost-reduction"
        }
        # (8 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_security_group.ecs_tasks[0] has moved to module.heritage[0].module.memory_optimization.aws_security_group.ecs_tasks[0]
    resource "aws_security_group" "ecs_tasks" {
        id                     = "sg-07496007262e8cd03"
        name                   = "scenarios--27e78067-ecs-sg"
        tags                   = {
            "CreatedBy"                   = "terraform"
            "DaysUntilBF"                 = "7"
            "Description"                 = "ECS tasks security group - containers will crash after memory optimization"
            "Environment"                 = "demo"
            "JavaHeapMB"                  = "1536"
            "MemoryMB"                    = "2048"
            "Name"                        = "scenarios--27e78067-ecs-sg"
            "OptimizationWorks"           = "true"
            "Project"                     = "memory-optimization"
            "Purpose"                     = "production-optimization"
            "RequiredMemoryMB"            = "1792"
            "RiskLevel"                   = "low"
            "Scenario"                    = "cost-reduction"
            "warning:containers-affected" = "3 containers"
            "warning:crash-behavior"      = "immediate OOM after memory reduction"
        }
        # (8 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.aws_sns_topic.alerts[0] has moved to module.heritage[0].module.memory_optimization.aws_sns_topic.alerts[0]
    resource "aws_sns_topic" "alerts" {
        id                                       = "arn:aws:sns:eu-west-2:540044833068:scenarios--27e78067-alerts"
        name                                     = "scenarios--27e78067-alerts"
        tags                                     = {
            "CreatedBy"         = "terraform"
            "DaysUntilBF"       = "7"
            "Description"       = "SNS topic for memory optimization demo alerts - will fire when containers OOM"
            "Environment"       = "demo"
            "JavaHeapMB"        = "1536"
            "MemoryMB"          = "2048"
            "Name"              = "scenarios--27e78067-alerts"
            "OptimizationWorks" = "true"
            "Project"           = "memory-optimization"
            "Purpose"           = "production-optimization"
            "RequiredMemoryMB"  = "1792"
            "RiskLevel"         = "low"
            "Scenario"          = "cost-reduction"
        }
        # (12 unchanged attributes hidden)
    }

  # module.scenarios[0].module.memory_optimization.random_id.suffix[0] has moved to module.heritage[0].module.memory_optimization.random_id.suffix[0]
    resource "random_id" "suffix" {
        id          = "J-eAZw"
        # (5 unchanged attributes hidden)
    }

  # module.scenarios[0].module.message_size_breach[0].aws_cloudwatch_log_group.lambda_logs has moved to module.heritage[0].module.message_size_breach[0].aws_cloudwatch_log_group.lambda_logs
    resource "aws_cloudwatch_log_group" "lambda_logs" {
        id                = "/aws/lambda/image-processor-terraform-example"
        name              = "/aws/lambda/image-processor-terraform-example"
        tags              = {
            "Environment" = "terraform-example"
            "Name"        = "Lambda Logs"
            "Scenario"    = "Message Size Breach"
        }
        # (5 unchanged attributes hidden)
    }

  # module.scenarios[0].module.message_size_breach[0].aws_cloudwatch_metric_alarm.lambda_errors has moved to module.heritage[0].module.message_size_breach[0].aws_cloudwatch_metric_alarm.lambda_errors
    resource "aws_cloudwatch_metric_alarm" "lambda_errors" {
        id                        = "lambda-errors-terraform-example"
        tags                      = {
            "Environment" = "terraform-example"
            "Name"        = "Lambda Errors Alarm"
            "Scenario"    = "Message Size Breach"
        }
        # (18 unchanged attributes hidden)
    }

  # module.scenarios[0].module.message_size_breach[0].aws_cloudwatch_metric_alarm.sqs_queue_depth has moved to module.heritage[0].module.message_size_breach[0].aws_cloudwatch_metric_alarm.sqs_queue_depth
    resource "aws_cloudwatch_metric_alarm" "sqs_queue_depth" {
        id                        = "sqs-queue-depth-terraform-example"
        tags                      = {
            "Environment" = "terraform-example"
            "Name"        = "SQS Queue Depth Alarm"
            "Scenario"    = "Message Size Breach"
        }
        # (18 unchanged attributes hidden)
    }

  # module.scenarios[0].module.message_size_breach[0].aws_iam_role.lambda_role has moved to module.heritage[0].module.message_size_breach[0].aws_iam_role.lambda_role
    resource "aws_iam_role" "lambda_role" {
        id                    = "image-processor-lambda-role-terraform-example"
        name                  = "image-processor-lambda-role-terraform-example"
        tags                  = {
            "Environment" = "terraform-example"
            "Name"        = "Lambda Execution Role"
            "Scenario"    = "Message Size Breach"
        }
        # (9 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }


  # module.scenarios[0].module.message_size_breach[0].aws_iam_role_policy.lambda_logs_policy has moved to module.heritage[0].module.message_size_breach[0].aws_iam_role_policy.lambda_logs_policy
    resource "aws_iam_role_policy" "lambda_logs_policy" {
        id     = "image-processor-lambda-role-terraform-example:lambda-logs-policy-terraform-example"
        name   = "lambda-logs-policy-terraform-example"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].module.message_size_breach[0].aws_iam_role_policy_attachment.lambda_basic_execution has moved to module.heritage[0].module.message_size_breach[0].aws_iam_role_policy_attachment.lambda_basic_execution
    resource "aws_iam_role_policy_attachment" "lambda_basic_execution" {
        id         = "image-processor-lambda-role-terraform-example-20251117232024175700000006"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].module.message_size_breach[0].aws_iam_role_policy_attachment.lambda_sqs_policy has moved to module.heritage[0].module.message_size_breach[0].aws_iam_role_policy_attachment.lambda_sqs_policy
    resource "aws_iam_role_policy_attachment" "lambda_sqs_policy" {
        id         = "image-processor-lambda-role-terraform-example-20251117232024470000000007"
        # (2 unchanged attributes hidden)
    }

  # module.scenarios[0].module.message_size_breach[0].aws_lambda_event_source_mapping.sqs_trigger has moved to module.heritage[0].module.message_size_breach[0].aws_lambda_event_source_mapping.sqs_trigger
    resource "aws_lambda_event_source_mapping" "sqs_trigger" {
        id                                 = "8feec500-57de-435d-b185-bc3e9d076225"
        tags                               = {}
        # (20 unchanged attributes hidden)
    }

  # module.heritage[0].module.message_size_breach[0].aws_lambda_function.image_processor will be updated in-place
  # (moved from module.scenarios[0].module.message_size_breach[0].aws_lambda_function.image_processor)
!   resource "aws_lambda_function" "image_processor" {
!       filename                       = "modules/scenarios/message-size-breach/lambda_function.zip" -> "modules/heritage/message-size-breach/lambda_function.zip"
        id                             = "image-processor-terraform-example"
!       last_modified                  = "2025-11-17T23:20:39.521+0000" -> (known after apply)
        tags                           = {
            "Environment" = "terraform-example"
            "Name"        = "Image Processor"
            "Scenario"    = "Message Size Breach"
        }
        # (21 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }

  # module.scenarios[0].module.message_size_breach[0].aws_sqs_queue.image_processing_dlq has moved to module.heritage[0].module.
... This log was truncated as it was too long to show in a comment. See full log on env0.
Failed to calculate cost estimation

Full PR Plan logs on env0

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Overmind

Open in Overmind ↗


model|risks_v6

🔴 Change Signals

Routine 🔴 ▇▅▃▂▁ AWS Lambda functions showing the first ever modification of the attribute filename, which is unusual compared to typical patterns.
Policies 🔴 ▃▂▁ Multiple S3 buckets and security groups are missing required tags and server-side encryption, with security groups allowing SSH access from anywhere, which is unusual compared to typical patterns.

View signals ↗


🔥 Risks

[!NOTE] > Overmind has not identified any risks associated with this change
This could be due to the change being low risk with no impact on other parts of the system, or involving resources that Overmind currently does not support.


🟣 Expected Changes

~ lambda-function › -terraform-example_lambda_function
--- current
+++ proposed
@@ -8,10 +8,10 @@
   ephemeral_storage:
     - size: 512
-  filename: modules/scenarios/tmp/lambda_function.zip
+  filename: modules/heritage/tmp/lambda_function.zip
   function_name: -terraform-example_lambda_function
   handler: index.handler
   id: -terraform-example_lambda_function
   invoke_arn: arn:aws:apigateway:eu-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-2:540044833068:function:-terraform-example_lambda_function/invocations
-  last_modified: 2025-11-17T23:20:33.095+0000
+  last_modified: (known after apply)
   logging_config:
     - log_format: Text
~ lambda-function › image-processor-terraform-example
--- current
+++ proposed
@@ -8,10 +8,10 @@
   ephemeral_storage:
     - size: 512
-  filename: modules/scenarios/message-size-breach/lambda_function.zip
+  filename: modules/heritage/message-size-breach/lambda_function.zip
   function_name: image-processor-terraform-example
   handler: lambda_function.lambda_handler
   id: image-processor-terraform-example
   invoke_arn: arn:aws:apigateway:eu-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-2:540044833068:function:image-processor-terraform-example/invocations
-  last_modified: 2025-11-17T23:20:39.521+0000
+  last_modified: (known after apply)
   logging_config:
     - log_format: Text


💥 Blast Radius

Items 5

Edges 4

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overmind

⛔ Auto-Blocked


🔴 Decision

Auto-blocked: Routine score (-5) is below minimum (-1)


📊 Signals Summary

Routine 🔴 -5


🔥 Risks Summary

High 0 · Medium 0 · Low 0


💥 Blast Radius

Items 39 · Edges 157


View full analysis in Overmind ↗

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overmind

⛔ Auto-Blocked


🔴 Decision

Auto-blocked: Policy signal (-3) is below threshold (-2); Routine score (-5) is below minimum (-1)


📊 Signals Summary

Routine 🔴 -5

Policies 🔴 -3


🔥 Risks Summary

High 0 · Medium 0 · Low 0


💥 Blast Radius

Items 5 · Edges 4


View full analysis in Overmind ↗

@dylanratcliffe dylanratcliffe merged commit dd21daf into main Dec 9, 2025
6 of 8 checks passed
@dylanratcliffe dylanratcliffe deleted the move-to-heritage-module branch December 9, 2025 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants