JesusFilm / core

JFP DS Engineering Monorepo
https://docs.core.jesusfilm.org/
19 stars 12 forks source link

feat: api-journeys mux videoblock #4312

Closed mikeallisonJS closed 2 months ago

mikeallisonJS commented 2 months ago

Description

Issue

Need to be able to tie mux videos to video blocks

Solution

Add mux videoblock source

linear[bot] commented 2 months ago

ENG-1429 Add mux video block source to prisma-no-qa

jesus-film-bot commented 2 months ago

Ran Plan for dir: infrastructure workspace: default

Show Output ```diff Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place - destroy +/- create replacement and then destroy Terraform will perform the following actions: # module.prod.module.prod.aws_lb_listener_certificate.acm_core_arclight_org will be destroyed # (because aws_lb_listener_certificate.acm_core_arclight_org is not in configuration) - resource "aws_lb_listener_certificate" "acm_core_arclight_org" { - certificate_arn = "arn:aws:acm:us-east-2:410965620680:certificate/d78bba0b-7cb6-43a2-9ebb-5a66f8547fb3" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae_arn:aws:acm:us-east-2:410965620680:certificate/d78bba0b-7cb6-43a2-9ebb-5a66f8547fb3" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae" -> null } # module.prod.module.prod.aws_lb_listener_certificate.acm_core_stage_arclight_org will be destroyed # (because aws_lb_listener_certificate.acm_core_stage_arclight_org is not in configuration) - resource "aws_lb_listener_certificate" "acm_core_stage_arclight_org" { - certificate_arn = "arn:aws:acm:us-east-2:410965620680:certificate/952182b7-c62b-46bb-a247-f00fa92e727c" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae_arn:aws:acm:us-east-2:410965620680:certificate/952182b7-c62b-46bb-a247-f00fa92e727c" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae" -> null } # module.stage.module.stage.aws_lb_listener_certificate.acm_core_arclight_org will be destroyed # (because aws_lb_listener_certificate.acm_core_arclight_org is not in configuration) - resource "aws_lb_listener_certificate" "acm_core_arclight_org" { - certificate_arn = "arn:aws:acm:us-east-2:410965620680:certificate/d78bba0b-7cb6-43a2-9ebb-5a66f8547fb3" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6_arn:aws:acm:us-east-2:410965620680:certificate/d78bba0b-7cb6-43a2-9ebb-5a66f8547fb3" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6" -> null } # module.stage.module.stage.aws_lb_listener_certificate.acm_core_stage_arclight_org will be destroyed # (because aws_lb_listener_certificate.acm_core_stage_arclight_org is not in configuration) - resource "aws_lb_listener_certificate" "acm_core_stage_arclight_org" { - certificate_arn = "arn:aws:acm:us-east-2:410965620680:certificate/952182b7-c62b-46bb-a247-f00fa92e727c" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6_arn:aws:acm:us-east-2:410965620680:certificate/952182b7-c62b-46bb-a247-f00fa92e727c" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6" -> null } # module.prod.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service will be updated in-place ~ resource "aws_ecs_service" "ecs_service" { id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-prod/api-journeys-prod-service" name = "api-journeys-prod-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod:56" -> (known after apply) # (15 unchanged attributes hidden) # (5 unchanged blocks hidden) } # module.prod.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition must be replaced +/- resource "aws_ecs_task_definition" "ecs_task_definition" { ~ arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod:56" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "prod" }, - { - name = "SERVICE_NAME" - value = "api-journeys" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-journeys-prod:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-journeys" - dd_source = "nestjs" - dd_tags = "env:prod" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-api-journeys-prod-app" - portMappings = [ - { - containerPort = 4001 - hostPort = 4001 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/AWS_SECRET_ACCESS_KEY" }, - { - name = "CLOUDFLARE_ACCOUNT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/CLOUDFLARE_ACCOUNT_ID" }, - { - name = "CLOUDFLARE_STREAM_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/CLOUDFLARE_STREAM_TOKEN" }, - { - name = "FIREBASE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/FIREBASE_API_KEY" }, - { - name = "GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GATEWAY_URL" }, - { - name = "GIT_BRANCH" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GIT_BRANCH" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GOOGLE_APPLICATION_JSON" }, - { - name = "GROWTH_SPACES_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GROWTH_SPACES_URL" }, - { - name = "INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/JOURNEYS_ADMIN_URL" }, - { - name = "MAILCHIMP_AUDIENCE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_AUDIENCE_ID" }, - { - name = "MAILCHIMP_MARKETING_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_MARKETING_API_KEY" }, - { - name = "MAILCHIMP_MARKETING_API_SERVER_PREFIX" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_MARKETING_API_SERVER_PREFIX" }, - { - name = "PG_DATABASE_URL_JOURNEYS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PG_DATABASE_URL_JOURNEYS" }, - { - name = "PLAUSIBLE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAUSIBLE_API_KEY" }, - { - name = "PLAUSIBLE_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAUSIBLE_URL" }, - { - name = "PLAYWRIGHT_USER_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAYWRIGHT_USER_ID" }, - { - name = "POWER_BI_CLIENT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_CLIENT_ID" }, - { - name = "POWER_BI_CLIENT_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_CLIENT_SECRET" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_TENANT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_TENANT_ID" }, - { - name = "POWER_BI_WORKSPACE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_WORKSPACE_ID" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/REDIS_URL" }, - { - name = "SMTP_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/SMTP_URL" }, - { - name = "VERCEL_JOURNEYS_PROJECT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_JOURNEYS_PROJECT_ID" }, - { - name = "VERCEL_TEAM_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_TEAM_ID" }, - { - name = "VERCEL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_TOKEN" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:prod app:api-journeys" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-journeys-prod-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-journeys-prod-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> (known after apply) # forces replacement ~ id = "jfp-api-journeys-prod" -> (known after apply) ~ revision = 56 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/prod/MUX_ACCESS_TOKEN_ID" + overwrite = true + tags = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tags_all = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/prod/MUX_SECRET_KEY" + overwrite = true + tags = { + "name" = "MUX_SECRET_KEY" } + tags_all = { + "name" = "MUX_SECRET_KEY" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.prod.module.arclight.module.ecs-task.aws_alb_listener_rule.alb_listener_rule will be destroyed # (because aws_alb_listener_rule.alb_listener_rule is not in configuration) - resource "aws_alb_listener_rule" "alb_listener_rule" { - arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener-rule/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae/b310a1d9152e585f" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener-rule/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae/b310a1d9152e585f" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae" -> null - priority = 3 -> null - tags = {} -> null - tags_all = {} -> null - action { - order = 1 -> null - target_group_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-prod-tg/b112722586e76658" -> null - type = "forward" -> null } - condition { - host_header { - values = [ - "core.arlight.org", ] -> null } } } # module.prod.module.arclight.module.ecs-task.aws_alb_target_group.alb_target_group will be destroyed # (because aws_alb_target_group.alb_target_group is not in configuration) - resource "aws_alb_target_group" "alb_target_group" { - arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-prod-tg/b112722586e76658" -> null - arn_suffix = "targetgroup/arclight-prod-tg/b112722586e76658" -> null - connection_termination = false -> null - deregistration_delay = "300" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-prod-tg/b112722586e76658" -> null - ip_address_type = "ipv4" -> null - lambda_multi_value_headers_enabled = false -> null - load_balancing_algorithm_type = "round_robin" -> null - load_balancing_cross_zone_enabled = "use_load_balancer_configuration" -> null - name = "arclight-prod-tg" -> null - port = 3000 -> null - protocol = "HTTP" -> null - protocol_version = "HTTP1" -> null - proxy_protocol_v2 = false -> null - slow_start = 0 -> null - tags = {} -> null - tags_all = {} -> null - target_type = "ip" -> null - vpc_id = "vpc-0b722b0a1f7789afd" -> null - health_check { - enabled = true -> null - healthy_threshold = 2 -> null - interval = 10 -> null - matcher = "200" -> null - path = "/" -> null - port = "3000" -> null - protocol = "HTTP" -> null - timeout = 4 -> null - unhealthy_threshold = 4 -> null } - stickiness { - cookie_duration = 86400 -> null - enabled = false -> null - type ```


Warning: Output length greater than max comment size. Continued in next comment.

jesus-film-bot commented 2 months ago

Continued plan output from previous comment.

Show Output ```diff = "lb_cookie" -> null # (1 unchanged attribute hidden) } - target_failover {} } # module.prod.module.arclight.module.ecs-task.aws_appautoscaling_policy.ecs_policy_cpu will be destroyed # (because aws_appautoscaling_policy.ecs_policy_cpu is not in configuration) - resource "aws_appautoscaling_policy" "ecs_policy_cpu" { - alarm_arns = [ - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-prod/arclight-prod-service-AlarmHigh-c45bbe15-282a-4434-af2a-368d5c88e74f", - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-prod/arclight-prod-service-AlarmLow-16e18be0-0c5e-4c96-a353-c1cd7623b475", ] -> null - arn = "arn:aws:autoscaling:us-east-2:410965620680:scalingPolicy:f8557eea-f84c-401a-a877-953dff2fa4d9:resource/ecs/service/jfp-ecs-cluster-prod/arclight-prod-service:policyName/jfp-cpu-autoscaling-prod" -> null - id = "jfp-cpu-autoscaling-prod" -> null - name = "jfp-cpu-autoscaling-prod" -> null - policy_type = "TargetTrackingScaling" -> null - resource_id = "service/jfp-ecs-cluster-prod/arclight-prod-service" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - target_tracking_scaling_policy_configuration { - disable_scale_in = false -> null - scale_in_cooldown = 0 -> null - scale_out_cooldown = 0 -> null - target_value = 75 -> null - predefined_metric_specification { - predefined_metric_type = "ECSServiceAverageCPUUtilization" -> null # (1 unchanged attribute hidden) } } } # module.prod.module.arclight.module.ecs-task.aws_appautoscaling_policy.ecs_policy_memory will be destroyed # (because aws_appautoscaling_policy.ecs_policy_memory is not in configuration) - resource "aws_appautoscaling_policy" "ecs_policy_memory" { - alarm_arns = [ - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-prod/arclight-prod-service-AlarmHigh-2496710e-d482-47b0-836b-44b4ba2142d4", - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-prod/arclight-prod-service-AlarmLow-77a64d49-2bd6-45aa-b6af-c28cc89cc432", ] -> null - arn = "arn:aws:autoscaling:us-east-2:410965620680:scalingPolicy:f8557eea-f84c-401a-a877-953dff2fa4d9:resource/ecs/service/jfp-ecs-cluster-prod/arclight-prod-service:policyName/jfp-memory-autoscaling-prod" -> null - id = "jfp-memory-autoscaling-prod" -> null - name = "jfp-memory-autoscaling-prod" -> null - policy_type = "TargetTrackingScaling" -> null - resource_id = "service/jfp-ecs-cluster-prod/arclight-prod-service" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - target_tracking_scaling_policy_configuration { - disable_scale_in = false -> null - scale_in_cooldown = 0 -> null - scale_out_cooldown = 0 -> null - target_value = 75 -> null - predefined_metric_specification { - predefined_metric_type = "ECSServiceAverageMemoryUtilization" -> null # (1 unchanged attribute hidden) } } } # module.prod.module.arclight.module.ecs-task.aws_appautoscaling_target.service_autoscaling will be destroyed # (because aws_appautoscaling_target.service_autoscaling is not in configuration) - resource "aws_appautoscaling_target" "service_autoscaling" { - arn = "arn:aws:application-autoscaling:us-east-2:410965620680:scalable-target/0ec5f8557eeaf84c401aa877953dff2fa4d9" -> null - id = "service/jfp-ecs-cluster-prod/arclight-prod-service" -> null - max_capacity = 4 -> null - min_capacity = 1 -> null - resource_id = "service/jfp-ecs-cluster-prod/arclight-prod-service" -> null - role_arn = "arn:aws:iam::410965620680:role/aws-service-role/ecs.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_ECSService" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - tags = {} -> null - tags_all = {} -> null } # module.prod.module.arclight.module.ecs-task.aws_cloudwatch_log_group.ecs_cw_log_group will be destroyed # (because aws_cloudwatch_log_group.ecs_cw_log_group is not in configuration) - resource "aws_cloudwatch_log_group" "ecs_cw_log_group" { - arn = "arn:aws:logs:us-east-2:410965620680:log-group:arclight-prod-logs" -> null - id = "arclight-prod-logs" -> null - name = "arclight-prod-logs" -> null - retention_in_days = 0 -> null - skip_destroy = false -> null - tags = {} -> null - tags_all = {} -> null # (2 unchanged attributes hidden) } # module.prod.module.arclight.module.ecs-task.aws_ecr_lifecycle_policy.ecr_policy will be destroyed # (because aws_ecr_lifecycle_policy.ecr_policy is not in configuration) - resource "aws_ecr_lifecycle_policy" "ecr_policy" { - id = "jfp-arclight-prod" -> null - policy = jsonencode( { - rules = [ - { - action = { - type = "expire" } - description = "Expire more than 10 images" - rulePriority = 1 - selection = { - countNumber = 10 - countType = "imageCountMoreThan" - tagStatus = "any" } }, ] } ) -> null - registry_id = "410965620680" -> null - repository = "jfp-arclight-prod" -> null } # module.prod.module.arclight.module.ecs-task.aws_ecr_repository.ecr_repository will be destroyed # (because aws_ecr_repository.ecr_repository is not in configuration) - resource "aws_ecr_repository" "ecr_repository" { - arn = "arn:aws:ecr:us-east-2:410965620680:repository/jfp-arclight-prod" -> null - id = "jfp-arclight-prod" -> null - image_tag_mutability = "MUTABLE" -> null - name = "jfp-arclight-prod" -> null - registry_id = "410965620680" -> null - repository_url = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-arclight-prod" -> null - tags = {} -> null - tags_all = {} -> null - encryption_configuration { - encryption_type = "AES256" -> null # (1 unchanged attribute hidden) } - image_scanning_configuration { - scan_on_push = false -> null } } # module.prod.module.arclight.module.ecs-task.aws_ecs_service.ecs_service will be destroyed # (because aws_ecs_service.ecs_service is not in configuration) - resource "aws_ecs_service" "ecs_service" { - cluster = "arn:aws:ecs:us-east-2:410965620680:cluster/jfp-ecs-cluster-prod" -> null - deployment_maximum_percent = 200 -> null - deployment_minimum_healthy_percent = 100 -> null - desired_count = 1 -> null - enable_ecs_managed_tags = false -> null - enable_execute_command = true -> null - health_check_grace_period_seconds = 0 -> null - iam_role = "/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS" -> null - id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-prod/arclight-prod-service" -> null - launch_type = "FARGATE" -> null - name = "arclight-prod-service" -> null - platform_version = "LATEST" -> null - propagate_tags = "NONE" -> null - scheduling_strategy = "REPLICA" -> null - tags = {} -> null - tags_all = {} -> null - task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-prod:2" -> null - triggers = {} -> null - wait_for_steady_state = false -> null - deployment_circuit_breaker { - enable = false -> null - rollback = false -> null } - deployment_controller { - type = "ECS" -> null } - load_balancer { - container_name = "jfp-arclight-prod-app" -> null - container_port = 3000 -> null - target_group_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-prod-tg/b112722586e76658" -> null # (1 unchanged attribute hidden) } - network_configuration { - assign_public_ip = true -> null - security_groups = [ - "sg-030c49feae781c660", ] -> null - subnets = [ - "subnet-01aa708571a3e499c", - "subnet-0aa10af01283bbcdb", - "subnet-0b7c1e14af0ffb3ea", ] -> null } } # module.prod.module.arclight.module.ecs-task.aws_ecs_task_definition.ecs_task_definition will be destroyed # (because aws_ecs_task_definition.ecs_task_definition is not in configuration) - resource "aws_ecs_task_definition" "ecs_task_definition" { - arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-prod:2" -> null - arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-prod" -> null - container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "prod" }, - { - name = "SERVICE_NAME" - value = "arclight" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-arclight-prod:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "arclight" - dd_source = "nextjs" - dd_tags = "env:prod" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-arclight-prod-app" - portMappings = [ - { - containerPort = 3000 - hostPort = 3000 - protocol = "tcp" }, ] - secrets = [ - { - name = "NEXT_PUBLIC_GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/arclight/prod/NEXT_PUBLIC_GATEWAY_URL" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:prod app:arclight" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "arclight-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-arclight-prod-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "arclight-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-arclight-prod-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> null - cpu = "1024" -> null - execution_role_arn = "arn:aws:iam::410965620680:role/jfp-ecs-task-execution-role" -> null - family = "jfp-arclight-prod" -> null - id = "jfp-arclight-prod" -> null - memory = "2048" -> null - network_mode = "awsvpc" -> null - requires_compatibilities = [ - "FARGATE", ] -> null - revision = 2 -> null - skip_destroy = false -> null - tags = {} -> null - tags_all = {} -> null - task_role_arn = "arn:aws:iam::410965620680:role/terraform-ecs-task-role-prod" -> null # (2 unchanged attributes hidden) } # module.prod.module.arclight.module.ecs-task.aws_route53_record.record will be destroyed # (because aws_route53_record.record is not in configuration) - resource "aws_route53_record" "record" { - fqdn = "arclight.central.jesusfilm.org" -> null - id = "Z06687872LMUIKS0Y291P_arclight_CNAME" -> null - multivalue_answer_routing_policy = false -> null - name = "arclight" -> null - records = [ - "jfp-public-alb-prod-13771523.us-east-2.elb.amazonaws.com", ] -> null - ttl = 300 -> null - type = "CNAME" -> null - zone_id = "Z06687872LMUIKS0Y291P" -> null # (2 unchanged attributes hidden) } # module.prod.module.arclight.module.ecs-task.aws_ssm_parameter.parameters["NEXT_PUBLIC_GATEWAY_URL"] will be destroyed # (because aws_ssm_parameter.parameters is not in configuration) - resource "aws_ssm_parameter" "parameters" { - arn = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/arclight/prod/NEXT_PUBLIC_GATEWAY_URL" -> null - data_type = "text" -> null - id = "/ecs/arclight/prod/NEXT_PUBLIC_GATEWAY_URL" -> null - key_id = "alias/aws/ssm" -> null - name = "/ecs/arclight/prod/NEXT_PUBLIC_GATEWAY_URL" -> null - overwrite = true -> null - tags = { - "name" = "NEXT_PUBLIC_GATEWAY_URL" } -> null - tags_all = { - "name" = "NEXT_PUBLIC_GATEWAY_URL" } -> null - tier = "Standard" -> null - type = "SecureString" -> null - value = (sensitive value) -> null - version = 1 -> null # (2 unchanged attributes hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service will be updated in-place ~ resource "aws_ecs_service" "ecs_service" { id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-stage/api-journeys-stage-service" name = "api-journeys-stage-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage:45" -> (known after apply) # (15 unchanged attributes hidden) # (4 unchanged blocks hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition must be replaced +/- resource "aws_ecs_task_definition" "ecs_task_definition" { ~ arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage:45" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "stage" }, - { - name = "SERVICE_NAME" - value = "api-journeys" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-journeys-stage:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-journeys" - dd_source = "nestjs" - dd_tags = "env:stage" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-api-journeys-stage-app" - portMappings = [ - { - containerPort = 4001 - hostPort = 4001 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/AWS_SECRET_ACCESS_KEY" }, - { - name = "CLOUDFLARE_ACCOUNT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/CLOUDFLARE_ACCOUNT_ID" }, - { - name = "CLOUDFLARE_STREAM_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/CLOUDFLARE_STREAM_TOKEN" }, - { - name = "FIREBASE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/FIREBASE_API_KEY" }, - { - name = "GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GATEWAY_URL" }, - { - name = "GIT_BRANCH" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GIT_BRANCH" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GOOGLE_APPLICATION_JSON" }, - { - name = "GROWTH_SPACES_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GROWTH_SPACES_URL" }, - { - name = "INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/JOURNEYS_ADMIN_URL" }, - { - name = "MAILCHIMP_AUDIENCE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_AUDIENCE_ID" }, - { - name = "MAILCHIMP_MARKETING_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_MARKETING_API_KEY" }, - { - name = "MAILCHIMP_MARKETING_API_SERVER_PREFIX" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_MARKETING_API_SERVER_PREFIX" }, - { - name = "PG_DATABASE_URL_JOURNEYS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PG_DATABASE_URL_JOURNEYS" }, - { - name = "PLAUSIBLE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAUSIBLE_API_KEY" }, - { - name = "PLAUSIBLE_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAUSIBLE_URL" }, - { - name = "PLAYWRIGHT_USER_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAYWRIGHT_USER_ID" }, - { - name = "POWER_BI_CLIENT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_CLIENT_ID" }, - { - name = "POWER_BI_CLIENT_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_CLIENT_SECRET" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_TENANT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_TENANT_ID" }, - { - name = "POWER_BI_WORKSPACE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_WORKSPACE_ID" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/REDIS_URL" }, - { - name = "SMTP_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/SMTP_URL" }, - { - name = "VERCEL_JOURNEYS_PROJECT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_JOURNEYS_PROJECT_ID" }, - { - name = "VERCEL_TEAM_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_TEAM_ID" }, - { - name = "VERCEL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_TOKEN" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:stage app:api-journeys" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-journeys-stage-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-journeys-stage-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> (known after apply) # forces replacement ~ id = "jfp-api-journeys-stage" -> (known after apply) ~ revision = 45 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/stage/MUX_ACCESS_TOKEN_ID" + overwrite = true + tags = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tags_all = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/stage/MUX_SECRET_KEY" + overwrite = true + tags = { + "name" = "MUX_SECRET_KEY" } + tags_all = { + "name" = "MUX_SECRET_KEY" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.arclight.module.ecs-task.aws_alb_listener_rule.alb_listener_rule will be destroyed # (because aws_alb_listener_rule.alb_listener_rule is not in configuration) - resource "aws_alb_listener_rule" "alb_listener_rule" { - arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener-rule/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6/793797b631015e92" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener-rule/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6/793797b631015e92" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6" -> null - priority = 3 -> null - tags = {} -> null - tags_all = {} -> null - action { - order = 1 -> null - target_group_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-stage-tg/9801b0e48900f188" -> null - type = "forward" -> null } - condition { - host_header { - values = [ - "core-stage.arclight.org", ] -> null } } } # module.stage.module.arclight.module.ecs-task.aws_alb_target_group.alb_target_group will be destroyed # (because aws_alb_target_group.alb_target_group is not in configuration) - resource "aws_alb_target_group" "alb_target_group" { - arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-stage-tg/9801b0e48900f188" -> null - arn_suffix = "targetgroup/arclight-stage-tg/9801b0e48900f188" -> null - connection_termination = false -> null - deregistration_delay = "300" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-stage-tg/9801b0e48900f188" -> null - ip_address_type = "ipv4" -> null - lambda_multi_value_headers_enabled = false -> null - load_balancing_algorithm_type = "round_robin" -> null - load_balancing_cross_zone_enabled = "use_load_balancer_configuration" -> null - name = "arclight-stage-tg" -> null - port = 3000 -> null - protocol = "HTTP" -> null - protocol_version = "HTTP1" -> null - proxy_protocol_v2 = false -> null - slow_start = 0 -> null - tags = {} -> null - tags_all = {} -> null - target_type = "ip" -> null - vpc_id = "vpc-08eeff0fe23f23079" -> null - health_check { - enabled = true -> null - healthy_threshold = 2 -> null - interval = 10 -> null - matcher = "200" -> null - path = "/" -> null - port = "3000" -> null - protocol = "HTTP" -> null - timeout = 4 -> null - unhealthy_threshold = 4 -> null } - stickiness { - cookie_duration = 86400 -> null - enabled = false -> null - type = "lb_cookie" -> null # (1 unchanged attribute hidden) } - target_failover {} } # module.stage.module.arclight.module.ecs-task.aws_appautoscaling_policy.ecs_policy_cpu will be destroyed # (because aws_appautoscaling_policy.ecs_policy_cpu is not in configuration) - resource "aws_appautoscaling_policy" "ecs_policy_cpu" { - alarm_arns = [ - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-stage/arclight-stage-service-AlarmHigh-d84c06f5-0744-45a3-94c2-cb2f9790d5a6", - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-stage/arclight-stage-service-AlarmLow-0322704a-1847-4f50-b6fc-62ad6a730900", ] -> null - arn = "arn:aws:autoscaling:us-east-2:410965620680:scalingPolicy:0cb8b3bb-0e56-4243-ab47-79bf85915d20:resource/ecs/service/jfp-ecs-cluster-stage/arclight-stage-service:policyName/jfp-cpu-autoscaling-stage" -> null - id = "jfp-cpu-autoscaling-stage" -> null - name = "jfp-cpu-autoscaling-stage" -> null - policy_type = "TargetTrackingScaling" -> null - resource_id = "service/jfp-ecs-cluster-stage/arclight-stage-service" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - target_tracking_scaling_policy_configuration { - disable_scale_in = false -> null - scale_in_cooldown = 0 -> null - scale_out_cooldown = 0 -> null - target_value = 75 -> null - predefined_metric_specification { - predefined_metric_type = "ECSServiceAverageCPUUtilization" -> null # (1 unchanged attribute hidden) } } } # module.stage.module.arclight.module.ecs-task.aws_appautoscaling_policy.ecs_policy_memory will be destroyed # (because aws_appautoscaling_policy.ecs_policy_memory is not in configuration) - resource "aws_appautoscaling_policy" "ecs_policy_memory" { - alarm_arns = [ - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-stage/arclight-stage-service-AlarmHigh-920e9888-78e4-45b8-ab1f-2047fc5919fa", - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-stage/arclight-stage-service-AlarmLow-bb58bc57-5a73-43ba-b069-64123f3fdb6b", ] -> null - arn = "arn:aws:autoscaling:us-east-2:410965620680:scalingPolicy:0cb8b3bb-0e56-4243-ab47-79bf85915d20:resource/ecs/service/jfp-ecs-cluster-stage/arclight-stage-service:policyName/jfp-memory-autoscaling-stage" -> null - id = "jfp-memory-autoscaling-stage" -> null - name = "jfp-memory-autoscaling-stage" -> null - policy_type = "TargetTrackingScaling" -> null - resource_id = "service/jfp-ecs-cluster-stage/arclight-stage-service" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - target_tracking_scaling_policy_configuration { - disable_scale_in = false -> null - scale_in_cooldown = 0 -> null - scale_out_cooldown = 0 -> null - target_value = 75 -> null - predefined_metric_specification { - predefined_metric_type = "ECSServiceAverageMemoryUtilization" -> null # (1 unchanged attribute hidden) } } } # module.stage.module.arclight.module.ecs-task.aws_appautoscaling_target.service_autoscaling will be destroyed # (because aws_appautoscaling_target.service_autoscaling is not in configuration) - resource "aws_appautoscaling_target" "service_autoscaling" { - arn = "arn:aws:application-autoscaling:us-east-2:410965620680:scalable-target/0ec50cb8b3bb0e564243ab4779bf85915d20" -> null - id = "service/jfp-ecs-cluster-stage/arclight-stage-service" -> null - max_capacity = 4 -> null - min_capacity = 1 -> null - resource_id = "service/jfp-ecs-cluster-stage/arclight-stage-service" -> null - role_arn = "arn:aws:iam::410965620680:role/aws-service-role/ecs.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_ECSService" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - tags = {} -> null - tags_all = {} -> null } # module.stage.module.arclight.module.ecs-task.aws_cloudwatch_log_group.ecs_cw_log_group will be destroyed # (because aws_cloudwatch_log_group.ecs_cw_log_group is not in configuration) - resource "aws_cloudwatch_log_group" "ecs_cw_log_group" { - arn = "arn:aws:logs:us-east-2:410965620680:log-group:arclight-stage-logs" -> null - id = "arclight-stage-logs" -> null - name = "arclight-stage-logs" -> null - retention_in_days = 0 -> null - skip_destroy = false -> null - tags = {} -> null - tags_all = {} -> null # (2 unchanged attributes hidden) } # module.stage.module.arclight.module.ecs-task.aws_ecr_lifecycle_policy.ecr_policy will be destroyed # (because aws_ecr_lifecycle_policy.ecr_policy is not in configuration) - resource "aws_ecr_lifecycle_policy" "ecr_policy" { - id = "jfp-arclight-stage" -> null - policy = jsonencode( { - rules = [ - { - action = { - type = "expire" } - description = "Expire more than 10 images" - rulePriority = 1 - selection = { - countNumber = 10 - countType = "imageCountMoreThan" - tagStatus = "any" } }, ] } ) -> null - registry_id = "410965620680" -> null - repository = "jfp-arclight-stage" -> null } # module.stage.module.arclight.module.ecs-task.aws_ecr_repository.ecr_repository will be destroyed # (because aws_ecr_repository.ecr_repository is not in configuration) - resource "aws_ecr_repository" "ecr_repository" { - arn = "arn:aws:ecr:us-east-2:410965620680:repository/jfp-arclight-stage" -> null - id = "jfp-arclight-stage" -> null - image_tag_mutability = "MUTABLE" -> null - name = "jfp-arclight-stage" -> null - registry_id = "410965620680" -> null - repository_url = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-arclight-stage" -> null - tags = {} -> null - tags_all = {} -> null - encryption_configuration { - encryption_type = "AES256" -> null # (1 unchanged attribute hidden) } - image_scanning_configuration { - scan_on_push = false -> null } } # module.stage.module.arclight.module.ecs-task.aws_ecs_service.ecs_service will be destroyed # (because aws_ecs_service.ecs_service is not in configuration) - resource "aws_ecs_service" "ecs_service" { - cluster = "arn:aws:ecs:us-east-2:410965620680:cluster/jfp-ecs-cluster-stage" -> null - deployment_maximum_percent = 200 -> null - deployment_minimum_healthy_percent = 100 -> null - desired_count = 1 -> null - enable_ecs_managed_tags = false -> null - enable_execute_command = true -> null - health_check_grace_period_seconds = 0 -> null - iam_role = "/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS" -> null - id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-stage/arclight-stage-service" -> null - launch_type = "FARGATE" -> null - name = "arclight-stage-service" -> null - platform_version = "LATEST" -> null - propagate_tags = "NONE" -> null - scheduling_strategy = "REPLICA" -> null - tags = {} -> null - tags_all = {} -> null - task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-stage:1" -> null - triggers = {} -> null - wait_for_steady_state = false -> null - deployment_circuit_breaker { - enable = false -> null - rollback = false -> null } - deployment_controller { - type = "ECS" -> null } - load_balancer { - container_name = "jfp-arclight-stage-app" -> null - container_port = 3000 -> null - target_group_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-stage-tg/9801b0e48900f188" -> null # (1 unchanged attribute hidden) } - network_configuration { - assign_public_ip = true -> null - security_groups = [ - "sg-0715e664d653ce89c", ] -> null - subnets = [ - "subnet-03bd7850c8bbe2ce9", - "subnet-0a609b33cdac65789", - "subnet-0c394639d255c3261", ] -> null } } # module.stage.module.arclight.module.ecs-task.aws_ecs_task_definition.ecs_task_definition will be destroyed # (because aws_ecs_task_definition.ecs_task_definition is not in configuration) - resource "aws_ecs_task_definition" "ecs_task_definition" { - arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-stage:1" -> null - arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-stage" -> null - container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "stage" }, - { - name = "SERVICE_NAME" - value = "arclight" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-arclight-stage:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "arclight" - dd_source = "nextjs" - dd_tags = "env:stage" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-arclight-stage-app" - portMappings = [ - { - containerPort = 3000 - hostPort = 3000 - protocol = "tcp" }, ] - secrets = [ - { - name = "NEXT_PUBLIC_GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/arclight/stage/NEXT_PUBLIC_GATEWAY_URL" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:stage app:arclight" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "arclight-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-arclight-stage-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "arclight-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-arclight-stage-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> null - cpu = "1024" -> null - execution_role_arn = "arn:aws:iam::410965620680:role/jfp-ecs-task-execution-role" -> null - family = "jfp-arclight-stage" -> null - id = "jfp-arclight-stage" -> null - memory = "2048" -> null - network_mode = "awsvpc" -> null - requires_compatibilities = [ - "FARGATE", ] -> null - revision = 1 -> null - skip_destroy = false -> null - tags = {} -> null - tags_all = {} -> null - task_role_arn = "arn:aws:iam::410965620680:role/terraform-ecs-task-role-stage" -> null # (2 unchanged attributes hidden) } # module.stage.module.arclight.module.ecs-task.aws_route53_record.record will be destroyed # (because aws_route53_record.record is not in configuration) - resource "aws_route53_record" "record" { - fqdn = "arclight.stage.central.jesusfilm.org" -> null - id = "Z09188583TUYV562FI49B_arclight_CNAME" -> null - multivalue_answer_routing_policy = false -> null - name = "arclight" -> null - records = [ - "jfp-public-alb-stage-1845039612.us-east-2.elb.amazonaws.com", ] -> null - ttl = 300 -> null - type = "CNAME" -> null - zone_id = "Z09188583TUYV562FI49B" -> null # (2 unchanged attributes hidden) } # module.stage.module.arclight.module.ecs-task.aws_ssm_parameter.parameters["NEXT_PUBLIC_GATEWAY_URL"] will be destroyed # (because aws_ssm_parameter.parameters is not in configuration) - resource "aws_ssm_parameter" "parameters" { - arn = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/arclight/stage/NEXT_PUBLIC_GATEWAY_URL" -> null - data_type = "text" -> null - id = "/ecs/arclight/stage/NEXT_PUBLIC_GATEWAY_URL" -> null - key_id = "alias/aws/ssm" -> null - name = "/ecs/arclight/stage/NEXT_PUBLIC_GATEWAY_URL" -> null - overwrite = true -> null - tags = { - "name" = "NEXT_PUBLIC_GATEWAY_URL" } -> null - tags_all = { - "name" = "NEXT_PUBLIC_GATEWAY_URL" } -> null - tier = "Standard" -> null - type = "SecureString" -> null - value = (sensitive value) -> null - version = 1 -> null # (2 unchanged attributes hidden) } Plan: 6 to add, 2 to change, 30 to destroy. ```

jesus-film-bot commented 2 months ago

Ran Plan for dir: infrastructure workspace: default

Plan Error

the default workspace at path infrastructure is currently locked by another command that is running for this pull request.
Wait until the previous command is complete and try again
jesus-film-bot commented 2 months ago

Ran Plan for dir: infrastructure workspace: default

Show Output ```diff Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place - destroy +/- create replacement and then destroy Terraform will perform the following actions: # module.prod.module.prod.aws_lb_listener_certificate.acm_core_arclight_org will be destroyed # (because aws_lb_listener_certificate.acm_core_arclight_org is not in configuration) - resource "aws_lb_listener_certificate" "acm_core_arclight_org" { - certificate_arn = "arn:aws:acm:us-east-2:410965620680:certificate/d78bba0b-7cb6-43a2-9ebb-5a66f8547fb3" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae_arn:aws:acm:us-east-2:410965620680:certificate/d78bba0b-7cb6-43a2-9ebb-5a66f8547fb3" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae" -> null } # module.prod.module.prod.aws_lb_listener_certificate.acm_core_stage_arclight_org will be destroyed # (because aws_lb_listener_certificate.acm_core_stage_arclight_org is not in configuration) - resource "aws_lb_listener_certificate" "acm_core_stage_arclight_org" { - certificate_arn = "arn:aws:acm:us-east-2:410965620680:certificate/952182b7-c62b-46bb-a247-f00fa92e727c" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae_arn:aws:acm:us-east-2:410965620680:certificate/952182b7-c62b-46bb-a247-f00fa92e727c" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae" -> null } # module.stage.module.stage.aws_lb_listener_certificate.acm_core_arclight_org will be destroyed # (because aws_lb_listener_certificate.acm_core_arclight_org is not in configuration) - resource "aws_lb_listener_certificate" "acm_core_arclight_org" { - certificate_arn = "arn:aws:acm:us-east-2:410965620680:certificate/d78bba0b-7cb6-43a2-9ebb-5a66f8547fb3" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6_arn:aws:acm:us-east-2:410965620680:certificate/d78bba0b-7cb6-43a2-9ebb-5a66f8547fb3" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6" -> null } # module.stage.module.stage.aws_lb_listener_certificate.acm_core_stage_arclight_org will be destroyed # (because aws_lb_listener_certificate.acm_core_stage_arclight_org is not in configuration) - resource "aws_lb_listener_certificate" "acm_core_stage_arclight_org" { - certificate_arn = "arn:aws:acm:us-east-2:410965620680:certificate/952182b7-c62b-46bb-a247-f00fa92e727c" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6_arn:aws:acm:us-east-2:410965620680:certificate/952182b7-c62b-46bb-a247-f00fa92e727c" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6" -> null } # module.prod.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service will be updated in-place ~ resource "aws_ecs_service" "ecs_service" { id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-prod/api-journeys-prod-service" name = "api-journeys-prod-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod:56" -> (known after apply) # (15 unchanged attributes hidden) # (5 unchanged blocks hidden) } # module.prod.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition must be replaced +/- resource "aws_ecs_task_definition" "ecs_task_definition" { ~ arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod:56" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "prod" }, - { - name = "SERVICE_NAME" - value = "api-journeys" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-journeys-prod:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-journeys" - dd_source = "nestjs" - dd_tags = "env:prod" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-api-journeys-prod-app" - portMappings = [ - { - containerPort = 4001 - hostPort = 4001 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/AWS_SECRET_ACCESS_KEY" }, - { - name = "CLOUDFLARE_ACCOUNT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/CLOUDFLARE_ACCOUNT_ID" }, - { - name = "CLOUDFLARE_STREAM_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/CLOUDFLARE_STREAM_TOKEN" }, - { - name = "FIREBASE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/FIREBASE_API_KEY" }, - { - name = "GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GATEWAY_URL" }, - { - name = "GIT_BRANCH" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GIT_BRANCH" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GOOGLE_APPLICATION_JSON" }, - { - name = "GROWTH_SPACES_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GROWTH_SPACES_URL" }, - { - name = "INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/JOURNEYS_ADMIN_URL" }, - { - name = "MAILCHIMP_AUDIENCE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_AUDIENCE_ID" }, - { - name = "MAILCHIMP_MARKETING_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_MARKETING_API_KEY" }, - { - name = "MAILCHIMP_MARKETING_API_SERVER_PREFIX" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_MARKETING_API_SERVER_PREFIX" }, - { - name = "PG_DATABASE_URL_JOURNEYS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PG_DATABASE_URL_JOURNEYS" }, - { - name = "PLAUSIBLE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAUSIBLE_API_KEY" }, - { - name = "PLAUSIBLE_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAUSIBLE_URL" }, - { - name = "PLAYWRIGHT_USER_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAYWRIGHT_USER_ID" }, - { - name = "POWER_BI_CLIENT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_CLIENT_ID" }, - { - name = "POWER_BI_CLIENT_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_CLIENT_SECRET" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_TENANT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_TENANT_ID" }, - { - name = "POWER_BI_WORKSPACE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_WORKSPACE_ID" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/REDIS_URL" }, - { - name = "SMTP_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/SMTP_URL" }, - { - name = "VERCEL_JOURNEYS_PROJECT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_JOURNEYS_PROJECT_ID" }, - { - name = "VERCEL_TEAM_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_TEAM_ID" }, - { - name = "VERCEL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_TOKEN" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:prod app:api-journeys" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-journeys-prod-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-journeys-prod-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> (known after apply) # forces replacement ~ id = "jfp-api-journeys-prod" -> (known after apply) ~ revision = 56 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/prod/MUX_ACCESS_TOKEN_ID" + overwrite = true + tags = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tags_all = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/prod/MUX_SECRET_KEY" + overwrite = true + tags = { + "name" = "MUX_SECRET_KEY" } + tags_all = { + "name" = "MUX_SECRET_KEY" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.prod.module.arclight.module.ecs-task.aws_alb_listener_rule.alb_listener_rule will be destroyed # (because aws_alb_listener_rule.alb_listener_rule is not in configuration) - resource "aws_alb_listener_rule" "alb_listener_rule" { - arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener-rule/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae/b310a1d9152e585f" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener-rule/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae/b310a1d9152e585f" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-prod/7cf1f0916ed2c660/baff3356faf3dfae" -> null - priority = 3 -> null - tags = {} -> null - tags_all = {} -> null - action { - order = 1 -> null - target_group_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-prod-tg/b112722586e76658" -> null - type = "forward" -> null } - condition { - host_header { - values = [ - "core.arlight.org", ] -> null } } } # module.prod.module.arclight.module.ecs-task.aws_alb_target_group.alb_target_group will be destroyed # (because aws_alb_target_group.alb_target_group is not in configuration) - resource "aws_alb_target_group" "alb_target_group" { - arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-prod-tg/b112722586e76658" -> null - arn_suffix = "targetgroup/arclight-prod-tg/b112722586e76658" -> null - connection_termination = false -> null - deregistration_delay = "300" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-prod-tg/b112722586e76658" -> null - ip_address_type = "ipv4" -> null - lambda_multi_value_headers_enabled = false -> null - load_balancing_algorithm_type = "round_robin" -> null - load_balancing_cross_zone_enabled = "use_load_balancer_configuration" -> null - name = "arclight-prod-tg" -> null - port = 3000 -> null - protocol = "HTTP" -> null - protocol_version = "HTTP1" -> null - proxy_protocol_v2 = false -> null - slow_start = 0 -> null - tags = {} -> null - tags_all = {} -> null - target_type = "ip" -> null - vpc_id = "vpc-0b722b0a1f7789afd" -> null - health_check { - enabled = true -> null - healthy_threshold = 2 -> null - interval = 10 -> null - matcher = "200" -> null - path = "/" -> null - port = "3000" -> null - protocol = "HTTP" -> null - timeout = 4 -> null - unhealthy_threshold = 4 -> null } - stickiness { - cookie_duration = 86400 -> null - enabled = false -> null - type ```


Warning: Output length greater than max comment size. Continued in next comment.

jesus-film-bot commented 2 months ago

Continued plan output from previous comment.

Show Output ```diff = "lb_cookie" -> null # (1 unchanged attribute hidden) } - target_failover {} } # module.prod.module.arclight.module.ecs-task.aws_appautoscaling_policy.ecs_policy_cpu will be destroyed # (because aws_appautoscaling_policy.ecs_policy_cpu is not in configuration) - resource "aws_appautoscaling_policy" "ecs_policy_cpu" { - alarm_arns = [ - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-prod/arclight-prod-service-AlarmHigh-c45bbe15-282a-4434-af2a-368d5c88e74f", - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-prod/arclight-prod-service-AlarmLow-16e18be0-0c5e-4c96-a353-c1cd7623b475", ] -> null - arn = "arn:aws:autoscaling:us-east-2:410965620680:scalingPolicy:f8557eea-f84c-401a-a877-953dff2fa4d9:resource/ecs/service/jfp-ecs-cluster-prod/arclight-prod-service:policyName/jfp-cpu-autoscaling-prod" -> null - id = "jfp-cpu-autoscaling-prod" -> null - name = "jfp-cpu-autoscaling-prod" -> null - policy_type = "TargetTrackingScaling" -> null - resource_id = "service/jfp-ecs-cluster-prod/arclight-prod-service" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - target_tracking_scaling_policy_configuration { - disable_scale_in = false -> null - scale_in_cooldown = 0 -> null - scale_out_cooldown = 0 -> null - target_value = 75 -> null - predefined_metric_specification { - predefined_metric_type = "ECSServiceAverageCPUUtilization" -> null # (1 unchanged attribute hidden) } } } # module.prod.module.arclight.module.ecs-task.aws_appautoscaling_policy.ecs_policy_memory will be destroyed # (because aws_appautoscaling_policy.ecs_policy_memory is not in configuration) - resource "aws_appautoscaling_policy" "ecs_policy_memory" { - alarm_arns = [ - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-prod/arclight-prod-service-AlarmHigh-2496710e-d482-47b0-836b-44b4ba2142d4", - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-prod/arclight-prod-service-AlarmLow-77a64d49-2bd6-45aa-b6af-c28cc89cc432", ] -> null - arn = "arn:aws:autoscaling:us-east-2:410965620680:scalingPolicy:f8557eea-f84c-401a-a877-953dff2fa4d9:resource/ecs/service/jfp-ecs-cluster-prod/arclight-prod-service:policyName/jfp-memory-autoscaling-prod" -> null - id = "jfp-memory-autoscaling-prod" -> null - name = "jfp-memory-autoscaling-prod" -> null - policy_type = "TargetTrackingScaling" -> null - resource_id = "service/jfp-ecs-cluster-prod/arclight-prod-service" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - target_tracking_scaling_policy_configuration { - disable_scale_in = false -> null - scale_in_cooldown = 0 -> null - scale_out_cooldown = 0 -> null - target_value = 75 -> null - predefined_metric_specification { - predefined_metric_type = "ECSServiceAverageMemoryUtilization" -> null # (1 unchanged attribute hidden) } } } # module.prod.module.arclight.module.ecs-task.aws_appautoscaling_target.service_autoscaling will be destroyed # (because aws_appautoscaling_target.service_autoscaling is not in configuration) - resource "aws_appautoscaling_target" "service_autoscaling" { - arn = "arn:aws:application-autoscaling:us-east-2:410965620680:scalable-target/0ec5f8557eeaf84c401aa877953dff2fa4d9" -> null - id = "service/jfp-ecs-cluster-prod/arclight-prod-service" -> null - max_capacity = 4 -> null - min_capacity = 1 -> null - resource_id = "service/jfp-ecs-cluster-prod/arclight-prod-service" -> null - role_arn = "arn:aws:iam::410965620680:role/aws-service-role/ecs.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_ECSService" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - tags = {} -> null - tags_all = {} -> null } # module.prod.module.arclight.module.ecs-task.aws_cloudwatch_log_group.ecs_cw_log_group will be destroyed # (because aws_cloudwatch_log_group.ecs_cw_log_group is not in configuration) - resource "aws_cloudwatch_log_group" "ecs_cw_log_group" { - arn = "arn:aws:logs:us-east-2:410965620680:log-group:arclight-prod-logs" -> null - id = "arclight-prod-logs" -> null - name = "arclight-prod-logs" -> null - retention_in_days = 0 -> null - skip_destroy = false -> null - tags = {} -> null - tags_all = {} -> null # (2 unchanged attributes hidden) } # module.prod.module.arclight.module.ecs-task.aws_ecr_lifecycle_policy.ecr_policy will be destroyed # (because aws_ecr_lifecycle_policy.ecr_policy is not in configuration) - resource "aws_ecr_lifecycle_policy" "ecr_policy" { - id = "jfp-arclight-prod" -> null - policy = jsonencode( { - rules = [ - { - action = { - type = "expire" } - description = "Expire more than 10 images" - rulePriority = 1 - selection = { - countNumber = 10 - countType = "imageCountMoreThan" - tagStatus = "any" } }, ] } ) -> null - registry_id = "410965620680" -> null - repository = "jfp-arclight-prod" -> null } # module.prod.module.arclight.module.ecs-task.aws_ecr_repository.ecr_repository will be destroyed # (because aws_ecr_repository.ecr_repository is not in configuration) - resource "aws_ecr_repository" "ecr_repository" { - arn = "arn:aws:ecr:us-east-2:410965620680:repository/jfp-arclight-prod" -> null - id = "jfp-arclight-prod" -> null - image_tag_mutability = "MUTABLE" -> null - name = "jfp-arclight-prod" -> null - registry_id = "410965620680" -> null - repository_url = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-arclight-prod" -> null - tags = {} -> null - tags_all = {} -> null - encryption_configuration { - encryption_type = "AES256" -> null # (1 unchanged attribute hidden) } - image_scanning_configuration { - scan_on_push = false -> null } } # module.prod.module.arclight.module.ecs-task.aws_ecs_service.ecs_service will be destroyed # (because aws_ecs_service.ecs_service is not in configuration) - resource "aws_ecs_service" "ecs_service" { - cluster = "arn:aws:ecs:us-east-2:410965620680:cluster/jfp-ecs-cluster-prod" -> null - deployment_maximum_percent = 200 -> null - deployment_minimum_healthy_percent = 100 -> null - desired_count = 1 -> null - enable_ecs_managed_tags = false -> null - enable_execute_command = true -> null - health_check_grace_period_seconds = 0 -> null - iam_role = "/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS" -> null - id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-prod/arclight-prod-service" -> null - launch_type = "FARGATE" -> null - name = "arclight-prod-service" -> null - platform_version = "LATEST" -> null - propagate_tags = "NONE" -> null - scheduling_strategy = "REPLICA" -> null - tags = {} -> null - tags_all = {} -> null - task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-prod:2" -> null - triggers = {} -> null - wait_for_steady_state = false -> null - deployment_circuit_breaker { - enable = false -> null - rollback = false -> null } - deployment_controller { - type = "ECS" -> null } - load_balancer { - container_name = "jfp-arclight-prod-app" -> null - container_port = 3000 -> null - target_group_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-prod-tg/b112722586e76658" -> null # (1 unchanged attribute hidden) } - network_configuration { - assign_public_ip = true -> null - security_groups = [ - "sg-030c49feae781c660", ] -> null - subnets = [ - "subnet-01aa708571a3e499c", - "subnet-0aa10af01283bbcdb", - "subnet-0b7c1e14af0ffb3ea", ] -> null } } # module.prod.module.arclight.module.ecs-task.aws_ecs_task_definition.ecs_task_definition will be destroyed # (because aws_ecs_task_definition.ecs_task_definition is not in configuration) - resource "aws_ecs_task_definition" "ecs_task_definition" { - arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-prod:2" -> null - arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-prod" -> null - container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "prod" }, - { - name = "SERVICE_NAME" - value = "arclight" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-arclight-prod:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "arclight" - dd_source = "nextjs" - dd_tags = "env:prod" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-arclight-prod-app" - portMappings = [ - { - containerPort = 3000 - hostPort = 3000 - protocol = "tcp" }, ] - secrets = [ - { - name = "NEXT_PUBLIC_GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/arclight/prod/NEXT_PUBLIC_GATEWAY_URL" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:prod app:arclight" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "arclight-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-arclight-prod-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "arclight-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-arclight-prod-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> null - cpu = "1024" -> null - execution_role_arn = "arn:aws:iam::410965620680:role/jfp-ecs-task-execution-role" -> null - family = "jfp-arclight-prod" -> null - id = "jfp-arclight-prod" -> null - memory = "2048" -> null - network_mode = "awsvpc" -> null - requires_compatibilities = [ - "FARGATE", ] -> null - revision = 2 -> null - skip_destroy = false -> null - tags = {} -> null - tags_all = {} -> null - task_role_arn = "arn:aws:iam::410965620680:role/terraform-ecs-task-role-prod" -> null # (2 unchanged attributes hidden) } # module.prod.module.arclight.module.ecs-task.aws_route53_record.record will be destroyed # (because aws_route53_record.record is not in configuration) - resource "aws_route53_record" "record" { - fqdn = "arclight.central.jesusfilm.org" -> null - id = "Z06687872LMUIKS0Y291P_arclight_CNAME" -> null - multivalue_answer_routing_policy = false -> null - name = "arclight" -> null - records = [ - "jfp-public-alb-prod-13771523.us-east-2.elb.amazonaws.com", ] -> null - ttl = 300 -> null - type = "CNAME" -> null - zone_id = "Z06687872LMUIKS0Y291P" -> null # (2 unchanged attributes hidden) } # module.prod.module.arclight.module.ecs-task.aws_ssm_parameter.parameters["NEXT_PUBLIC_GATEWAY_URL"] will be destroyed # (because aws_ssm_parameter.parameters is not in configuration) - resource "aws_ssm_parameter" "parameters" { - arn = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/arclight/prod/NEXT_PUBLIC_GATEWAY_URL" -> null - data_type = "text" -> null - id = "/ecs/arclight/prod/NEXT_PUBLIC_GATEWAY_URL" -> null - key_id = "alias/aws/ssm" -> null - name = "/ecs/arclight/prod/NEXT_PUBLIC_GATEWAY_URL" -> null - overwrite = true -> null - tags = { - "name" = "NEXT_PUBLIC_GATEWAY_URL" } -> null - tags_all = { - "name" = "NEXT_PUBLIC_GATEWAY_URL" } -> null - tier = "Standard" -> null - type = "SecureString" -> null - value = (sensitive value) -> null - version = 1 -> null # (2 unchanged attributes hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service will be updated in-place ~ resource "aws_ecs_service" "ecs_service" { id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-stage/api-journeys-stage-service" name = "api-journeys-stage-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage:45" -> (known after apply) # (15 unchanged attributes hidden) # (4 unchanged blocks hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition must be replaced +/- resource "aws_ecs_task_definition" "ecs_task_definition" { ~ arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage:45" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "stage" }, - { - name = "SERVICE_NAME" - value = "api-journeys" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-journeys-stage:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-journeys" - dd_source = "nestjs" - dd_tags = "env:stage" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-api-journeys-stage-app" - portMappings = [ - { - containerPort = 4001 - hostPort = 4001 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/AWS_SECRET_ACCESS_KEY" }, - { - name = "CLOUDFLARE_ACCOUNT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/CLOUDFLARE_ACCOUNT_ID" }, - { - name = "CLOUDFLARE_STREAM_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/CLOUDFLARE_STREAM_TOKEN" }, - { - name = "FIREBASE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/FIREBASE_API_KEY" }, - { - name = "GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GATEWAY_URL" }, - { - name = "GIT_BRANCH" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GIT_BRANCH" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GOOGLE_APPLICATION_JSON" }, - { - name = "GROWTH_SPACES_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GROWTH_SPACES_URL" }, - { - name = "INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/JOURNEYS_ADMIN_URL" }, - { - name = "MAILCHIMP_AUDIENCE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_AUDIENCE_ID" }, - { - name = "MAILCHIMP_MARKETING_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_MARKETING_API_KEY" }, - { - name = "MAILCHIMP_MARKETING_API_SERVER_PREFIX" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_MARKETING_API_SERVER_PREFIX" }, - { - name = "PG_DATABASE_URL_JOURNEYS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PG_DATABASE_URL_JOURNEYS" }, - { - name = "PLAUSIBLE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAUSIBLE_API_KEY" }, - { - name = "PLAUSIBLE_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAUSIBLE_URL" }, - { - name = "PLAYWRIGHT_USER_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAYWRIGHT_USER_ID" }, - { - name = "POWER_BI_CLIENT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_CLIENT_ID" }, - { - name = "POWER_BI_CLIENT_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_CLIENT_SECRET" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_TENANT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_TENANT_ID" }, - { - name = "POWER_BI_WORKSPACE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_WORKSPACE_ID" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/REDIS_URL" }, - { - name = "SMTP_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/SMTP_URL" }, - { - name = "VERCEL_JOURNEYS_PROJECT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_JOURNEYS_PROJECT_ID" }, - { - name = "VERCEL_TEAM_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_TEAM_ID" }, - { - name = "VERCEL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_TOKEN" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:stage app:api-journeys" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-journeys-stage-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-journeys-stage-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> (known after apply) # forces replacement ~ id = "jfp-api-journeys-stage" -> (known after apply) ~ revision = 45 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/stage/MUX_ACCESS_TOKEN_ID" + overwrite = true + tags = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tags_all = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/stage/MUX_SECRET_KEY" + overwrite = true + tags = { + "name" = "MUX_SECRET_KEY" } + tags_all = { + "name" = "MUX_SECRET_KEY" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.arclight.module.ecs-task.aws_alb_listener_rule.alb_listener_rule will be destroyed # (because aws_alb_listener_rule.alb_listener_rule is not in configuration) - resource "aws_alb_listener_rule" "alb_listener_rule" { - arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener-rule/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6/793797b631015e92" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener-rule/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6/793797b631015e92" -> null - listener_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:listener/app/jfp-public-alb-stage/27d94355c709eb16/e976ba0cdd6d17a6" -> null - priority = 3 -> null - tags = {} -> null - tags_all = {} -> null - action { - order = 1 -> null - target_group_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-stage-tg/9801b0e48900f188" -> null - type = "forward" -> null } - condition { - host_header { - values = [ - "core-stage.arclight.org", ] -> null } } } # module.stage.module.arclight.module.ecs-task.aws_alb_target_group.alb_target_group will be destroyed # (because aws_alb_target_group.alb_target_group is not in configuration) - resource "aws_alb_target_group" "alb_target_group" { - arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-stage-tg/9801b0e48900f188" -> null - arn_suffix = "targetgroup/arclight-stage-tg/9801b0e48900f188" -> null - connection_termination = false -> null - deregistration_delay = "300" -> null - id = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-stage-tg/9801b0e48900f188" -> null - ip_address_type = "ipv4" -> null - lambda_multi_value_headers_enabled = false -> null - load_balancing_algorithm_type = "round_robin" -> null - load_balancing_cross_zone_enabled = "use_load_balancer_configuration" -> null - name = "arclight-stage-tg" -> null - port = 3000 -> null - protocol = "HTTP" -> null - protocol_version = "HTTP1" -> null - proxy_protocol_v2 = false -> null - slow_start = 0 -> null - tags = {} -> null - tags_all = {} -> null - target_type = "ip" -> null - vpc_id = "vpc-08eeff0fe23f23079" -> null - health_check { - enabled = true -> null - healthy_threshold = 2 -> null - interval = 10 -> null - matcher = "200" -> null - path = "/" -> null - port = "3000" -> null - protocol = "HTTP" -> null - timeout = 4 -> null - unhealthy_threshold = 4 -> null } - stickiness { - cookie_duration = 86400 -> null - enabled = false -> null - type = "lb_cookie" -> null # (1 unchanged attribute hidden) } - target_failover {} } # module.stage.module.arclight.module.ecs-task.aws_appautoscaling_policy.ecs_policy_cpu will be destroyed # (because aws_appautoscaling_policy.ecs_policy_cpu is not in configuration) - resource "aws_appautoscaling_policy" "ecs_policy_cpu" { - alarm_arns = [ - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-stage/arclight-stage-service-AlarmHigh-d84c06f5-0744-45a3-94c2-cb2f9790d5a6", - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-stage/arclight-stage-service-AlarmLow-0322704a-1847-4f50-b6fc-62ad6a730900", ] -> null - arn = "arn:aws:autoscaling:us-east-2:410965620680:scalingPolicy:0cb8b3bb-0e56-4243-ab47-79bf85915d20:resource/ecs/service/jfp-ecs-cluster-stage/arclight-stage-service:policyName/jfp-cpu-autoscaling-stage" -> null - id = "jfp-cpu-autoscaling-stage" -> null - name = "jfp-cpu-autoscaling-stage" -> null - policy_type = "TargetTrackingScaling" -> null - resource_id = "service/jfp-ecs-cluster-stage/arclight-stage-service" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - target_tracking_scaling_policy_configuration { - disable_scale_in = false -> null - scale_in_cooldown = 0 -> null - scale_out_cooldown = 0 -> null - target_value = 75 -> null - predefined_metric_specification { - predefined_metric_type = "ECSServiceAverageCPUUtilization" -> null # (1 unchanged attribute hidden) } } } # module.stage.module.arclight.module.ecs-task.aws_appautoscaling_policy.ecs_policy_memory will be destroyed # (because aws_appautoscaling_policy.ecs_policy_memory is not in configuration) - resource "aws_appautoscaling_policy" "ecs_policy_memory" { - alarm_arns = [ - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-stage/arclight-stage-service-AlarmHigh-920e9888-78e4-45b8-ab1f-2047fc5919fa", - "arn:aws:cloudwatch:us-east-2:410965620680:alarm:TargetTracking-service/jfp-ecs-cluster-stage/arclight-stage-service-AlarmLow-bb58bc57-5a73-43ba-b069-64123f3fdb6b", ] -> null - arn = "arn:aws:autoscaling:us-east-2:410965620680:scalingPolicy:0cb8b3bb-0e56-4243-ab47-79bf85915d20:resource/ecs/service/jfp-ecs-cluster-stage/arclight-stage-service:policyName/jfp-memory-autoscaling-stage" -> null - id = "jfp-memory-autoscaling-stage" -> null - name = "jfp-memory-autoscaling-stage" -> null - policy_type = "TargetTrackingScaling" -> null - resource_id = "service/jfp-ecs-cluster-stage/arclight-stage-service" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - target_tracking_scaling_policy_configuration { - disable_scale_in = false -> null - scale_in_cooldown = 0 -> null - scale_out_cooldown = 0 -> null - target_value = 75 -> null - predefined_metric_specification { - predefined_metric_type = "ECSServiceAverageMemoryUtilization" -> null # (1 unchanged attribute hidden) } } } # module.stage.module.arclight.module.ecs-task.aws_appautoscaling_target.service_autoscaling will be destroyed # (because aws_appautoscaling_target.service_autoscaling is not in configuration) - resource "aws_appautoscaling_target" "service_autoscaling" { - arn = "arn:aws:application-autoscaling:us-east-2:410965620680:scalable-target/0ec50cb8b3bb0e564243ab4779bf85915d20" -> null - id = "service/jfp-ecs-cluster-stage/arclight-stage-service" -> null - max_capacity = 4 -> null - min_capacity = 1 -> null - resource_id = "service/jfp-ecs-cluster-stage/arclight-stage-service" -> null - role_arn = "arn:aws:iam::410965620680:role/aws-service-role/ecs.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_ECSService" -> null - scalable_dimension = "ecs:service:DesiredCount" -> null - service_namespace = "ecs" -> null - tags = {} -> null - tags_all = {} -> null } # module.stage.module.arclight.module.ecs-task.aws_cloudwatch_log_group.ecs_cw_log_group will be destroyed # (because aws_cloudwatch_log_group.ecs_cw_log_group is not in configuration) - resource "aws_cloudwatch_log_group" "ecs_cw_log_group" { - arn = "arn:aws:logs:us-east-2:410965620680:log-group:arclight-stage-logs" -> null - id = "arclight-stage-logs" -> null - name = "arclight-stage-logs" -> null - retention_in_days = 0 -> null - skip_destroy = false -> null - tags = {} -> null - tags_all = {} -> null # (2 unchanged attributes hidden) } # module.stage.module.arclight.module.ecs-task.aws_ecr_lifecycle_policy.ecr_policy will be destroyed # (because aws_ecr_lifecycle_policy.ecr_policy is not in configuration) - resource "aws_ecr_lifecycle_policy" "ecr_policy" { - id = "jfp-arclight-stage" -> null - policy = jsonencode( { - rules = [ - { - action = { - type = "expire" } - description = "Expire more than 10 images" - rulePriority = 1 - selection = { - countNumber = 10 - countType = "imageCountMoreThan" - tagStatus = "any" } }, ] } ) -> null - registry_id = "410965620680" -> null - repository = "jfp-arclight-stage" -> null } # module.stage.module.arclight.module.ecs-task.aws_ecr_repository.ecr_repository will be destroyed # (because aws_ecr_repository.ecr_repository is not in configuration) - resource "aws_ecr_repository" "ecr_repository" { - arn = "arn:aws:ecr:us-east-2:410965620680:repository/jfp-arclight-stage" -> null - id = "jfp-arclight-stage" -> null - image_tag_mutability = "MUTABLE" -> null - name = "jfp-arclight-stage" -> null - registry_id = "410965620680" -> null - repository_url = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-arclight-stage" -> null - tags = {} -> null - tags_all = {} -> null - encryption_configuration { - encryption_type = "AES256" -> null # (1 unchanged attribute hidden) } - image_scanning_configuration { - scan_on_push = false -> null } } # module.stage.module.arclight.module.ecs-task.aws_ecs_service.ecs_service will be destroyed # (because aws_ecs_service.ecs_service is not in configuration) - resource "aws_ecs_service" "ecs_service" { - cluster = "arn:aws:ecs:us-east-2:410965620680:cluster/jfp-ecs-cluster-stage" -> null - deployment_maximum_percent = 200 -> null - deployment_minimum_healthy_percent = 100 -> null - desired_count = 1 -> null - enable_ecs_managed_tags = false -> null - enable_execute_command = true -> null - health_check_grace_period_seconds = 0 -> null - iam_role = "/aws-service-role/ecs.amazonaws.com/AWSServiceRoleForECS" -> null - id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-stage/arclight-stage-service" -> null - launch_type = "FARGATE" -> null - name = "arclight-stage-service" -> null - platform_version = "LATEST" -> null - propagate_tags = "NONE" -> null - scheduling_strategy = "REPLICA" -> null - tags = {} -> null - tags_all = {} -> null - task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-stage:1" -> null - triggers = {} -> null - wait_for_steady_state = false -> null - deployment_circuit_breaker { - enable = false -> null - rollback = false -> null } - deployment_controller { - type = "ECS" -> null } - load_balancer { - container_name = "jfp-arclight-stage-app" -> null - container_port = 3000 -> null - target_group_arn = "arn:aws:elasticloadbalancing:us-east-2:410965620680:targetgroup/arclight-stage-tg/9801b0e48900f188" -> null # (1 unchanged attribute hidden) } - network_configuration { - assign_public_ip = true -> null - security_groups = [ - "sg-0715e664d653ce89c", ] -> null - subnets = [ - "subnet-03bd7850c8bbe2ce9", - "subnet-0a609b33cdac65789", - "subnet-0c394639d255c3261", ] -> null } } # module.stage.module.arclight.module.ecs-task.aws_ecs_task_definition.ecs_task_definition will be destroyed # (because aws_ecs_task_definition.ecs_task_definition is not in configuration) - resource "aws_ecs_task_definition" "ecs_task_definition" { - arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-stage:1" -> null - arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-arclight-stage" -> null - container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "stage" }, - { - name = "SERVICE_NAME" - value = "arclight" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-arclight-stage:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "arclight" - dd_source = "nextjs" - dd_tags = "env:stage" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-arclight-stage-app" - portMappings = [ - { - containerPort = 3000 - hostPort = 3000 - protocol = "tcp" }, ] - secrets = [ - { - name = "NEXT_PUBLIC_GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/arclight/stage/NEXT_PUBLIC_GATEWAY_URL" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:stage app:arclight" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "arclight-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-arclight-stage-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "arclight-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-arclight-stage-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> null - cpu = "1024" -> null - execution_role_arn = "arn:aws:iam::410965620680:role/jfp-ecs-task-execution-role" -> null - family = "jfp-arclight-stage" -> null - id = "jfp-arclight-stage" -> null - memory = "2048" -> null - network_mode = "awsvpc" -> null - requires_compatibilities = [ - "FARGATE", ] -> null - revision = 1 -> null - skip_destroy = false -> null - tags = {} -> null - tags_all = {} -> null - task_role_arn = "arn:aws:iam::410965620680:role/terraform-ecs-task-role-stage" -> null # (2 unchanged attributes hidden) } # module.stage.module.arclight.module.ecs-task.aws_route53_record.record will be destroyed # (because aws_route53_record.record is not in configuration) - resource "aws_route53_record" "record" { - fqdn = "arclight.stage.central.jesusfilm.org" -> null - id = "Z09188583TUYV562FI49B_arclight_CNAME" -> null - multivalue_answer_routing_policy = false -> null - name = "arclight" -> null - records = [ - "jfp-public-alb-stage-1845039612.us-east-2.elb.amazonaws.com", ] -> null - ttl = 300 -> null - type = "CNAME" -> null - zone_id = "Z09188583TUYV562FI49B" -> null # (2 unchanged attributes hidden) } # module.stage.module.arclight.module.ecs-task.aws_ssm_parameter.parameters["NEXT_PUBLIC_GATEWAY_URL"] will be destroyed # (because aws_ssm_parameter.parameters is not in configuration) - resource "aws_ssm_parameter" "parameters" { - arn = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/arclight/stage/NEXT_PUBLIC_GATEWAY_URL" -> null - data_type = "text" -> null - id = "/ecs/arclight/stage/NEXT_PUBLIC_GATEWAY_URL" -> null - key_id = "alias/aws/ssm" -> null - name = "/ecs/arclight/stage/NEXT_PUBLIC_GATEWAY_URL" -> null - overwrite = true -> null - tags = { - "name" = "NEXT_PUBLIC_GATEWAY_URL" } -> null - tags_all = { - "name" = "NEXT_PUBLIC_GATEWAY_URL" } -> null - tier = "Standard" -> null - type = "SecureString" -> null - value = (sensitive value) -> null - version = 1 -> null # (2 unchanged attributes hidden) } Plan: 6 to add, 2 to change, 30 to destroy. ```

github-actions[bot] commented 2 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready journeys preview Fri Nov 15 19:12:47 NZDT 2024
github-actions[bot] commented 2 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
arclight ✅ Ready arclight preview Fri Nov 15 19:12:05 NZDT 2024
github-actions[bot] commented 2 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
videos-admin ✅ Ready videos-admin preview Fri Nov 15 19:13:04 NZDT 2024
github-actions[bot] commented 2 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready watch preview Fri Nov 15 19:12:34 NZDT 2024
github-actions[bot] commented 2 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys-admin ✅ Ready journeys-admin preview Fri Nov 15 19:14:02 NZDT 2024
mikeallisonJS commented 2 months ago

atlantis plan

jesus-film-bot commented 2 months ago

Ran Plan for dir: infrastructure workspace: default

Show Output ```diff Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place +/- create replacement and then destroy Terraform will perform the following actions: # module.prod.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service will be updated in-place ~ resource "aws_ecs_service" "ecs_service" { id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-prod/api-journeys-prod-service" name = "api-journeys-prod-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod:56" -> (known after apply) # (15 unchanged attributes hidden) # (5 unchanged blocks hidden) } # module.prod.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition must be replaced +/- resource "aws_ecs_task_definition" "ecs_task_definition" { ~ arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod:56" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "prod" }, - { - name = "SERVICE_NAME" - value = "api-journeys" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-journeys-prod:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-journeys" - dd_source = "nestjs" - dd_tags = "env:prod" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-api-journeys-prod-app" - portMappings = [ - { - containerPort = 4001 - hostPort = 4001 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/AWS_SECRET_ACCESS_KEY" }, - { - name = "CLOUDFLARE_ACCOUNT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/CLOUDFLARE_ACCOUNT_ID" }, - { - name = "CLOUDFLARE_STREAM_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/CLOUDFLARE_STREAM_TOKEN" }, - { - name = "FIREBASE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/FIREBASE_API_KEY" }, - { - name = "GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GATEWAY_URL" }, - { - name = "GIT_BRANCH" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GIT_BRANCH" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GOOGLE_APPLICATION_JSON" }, - { - name = "GROWTH_SPACES_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GROWTH_SPACES_URL" }, - { - name = "INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/JOURNEYS_ADMIN_URL" }, - { - name = "MAILCHIMP_AUDIENCE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_AUDIENCE_ID" }, - { - name = "MAILCHIMP_MARKETING_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_MARKETING_API_KEY" }, - { - name = "MAILCHIMP_MARKETING_API_SERVER_PREFIX" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_MARKETING_API_SERVER_PREFIX" }, - { - name = "PG_DATABASE_URL_JOURNEYS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PG_DATABASE_URL_JOURNEYS" }, - { - name = "PLAUSIBLE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAUSIBLE_API_KEY" }, - { - name = "PLAUSIBLE_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAUSIBLE_URL" }, - { - name = "PLAYWRIGHT_USER_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAYWRIGHT_USER_ID" }, - { - name = "POWER_BI_CLIENT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_CLIENT_ID" }, - { - name = "POWER_BI_CLIENT_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_CLIENT_SECRET" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_TENANT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_TENANT_ID" }, - { - name = "POWER_BI_WORKSPACE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_WORKSPACE_ID" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/REDIS_URL" }, - { - name = "SMTP_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/SMTP_URL" }, - { - name = "VERCEL_JOURNEYS_PROJECT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_JOURNEYS_PROJECT_ID" }, - { - name = "VERCEL_TEAM_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_TEAM_ID" }, - { - name = "VERCEL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_TOKEN" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:prod app:api-journeys" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-journeys-prod-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-journeys-prod-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> (known after apply) # forces replacement ~ id = "jfp-api-journeys-prod" -> (known after apply) ~ revision = 56 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/prod/MUX_ACCESS_TOKEN_ID" + overwrite = true + tags = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tags_all = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/prod/MUX_SECRET_KEY" + overwrite = true + tags = { + "name" = "MUX_SECRET_KEY" } + tags_all = { + "name" = "MUX_SECRET_KEY" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service will be updated in-place ~ resource "aws_ecs_service" "ecs_service" { id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-stage/api-journeys-stage-service" name = "api-journeys-stage-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage:45" -> (known after apply) # (15 unchanged attributes hidden) # (4 unchanged blocks hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition must be replaced +/- resource "aws_ecs_task_definition" "ecs_task_definition" { ~ arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage:45" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "stage" }, - { - name = "SERVICE_NAME" - value = "api-journeys" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-journeys-stage:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-journeys" - dd_source = "nestjs" - dd_tags = "env:stage" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-api-journeys-stage-app" - portMappings = [ - { - containerPort = 4001 - hostPort = 4001 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/AWS_SECRET_ACCESS_KEY" }, - { - name = "CLOUDFLARE_ACCOUNT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/CLOUDFLARE_ACCOUNT_ID" }, - { - name = "CLOUDFLARE_STREAM_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/CLOUDFLARE_STREAM_TOKEN" }, - { - name = "FIREBASE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/FIREBASE_API_KEY" }, - { - name = "GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GATEWAY_URL" }, - { - name = "GIT_BRANCH" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GIT_BRANCH" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GOOGLE_APPLICATION_JSON" }, - { - name = "GROWTH_SPACES_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GROWTH_SPACES_URL" }, - { - name = "INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/JOURNEYS_ADMIN_URL" }, - { - name = "MAILCHIMP_AUDIENCE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_AUDIENCE_ID" }, - { - name = "MAILCHIMP_MARKETING_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_MARKETING_API_KEY" }, - { - name = "MAILCHIMP_MARKETING_API_SERVER_PREFIX" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_MARKETING_API_SERVER_PREFIX" }, - { - name = "PG_DATABASE_URL_JOURNEYS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PG_DATABASE_URL_JOURNEYS" }, - { - name = "PLAUSIBLE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAUSIBLE_API_KEY" }, - { - name = "PLAUSIBLE_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAUSIBLE_URL" }, - { - name = "PLAYWRIGHT_USER_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAYWRIGHT_USER_ID" }, - { - name = "POWER_BI_CLIENT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_CLIENT_ID" }, - { - name = "POWER_BI_CLIENT_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_CLIENT_SECRET" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_TENANT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_TENANT_ID" }, - { - name = "POWER_BI_WORKSPACE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_WORKSPACE_ID" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/REDIS_URL" }, - { - name = "SMTP_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/SMTP_URL" }, - { - name = "VERCEL_JOURNEYS_PROJECT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_JOURNEYS_PROJECT_ID" }, - { - name = "VERCEL_TEAM_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_TEAM_ID" }, - { - name = "VERCEL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_TOKEN" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:stage app:api-journeys" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-journeys-stage-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-journeys-stage-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> (known after apply) # forces replacement ~ id = "jfp-api-journeys-stage" -> (known after apply) ~ revision = 45 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/stage/MUX_ACCESS_TOKEN_ID" + overwrite = true + tags = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tags_all = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/stage/MUX_SECRET_KEY" + overwrite = true + tags = { + "name" = "MUX_SECRET_KEY" } + tags_all = { + "name" = "MUX_SECRET_KEY" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } Plan: 6 to add, 2 to change, 2 to destroy. ```

jesus-film-bot commented 2 months ago

Ran Plan for dir: infrastructure workspace: default

Show Output ```diff Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place +/- create replacement and then destroy Terraform will perform the following actions: # module.prod.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service will be updated in-place ~ resource "aws_ecs_service" "ecs_service" { id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-prod/api-journeys-prod-service" name = "api-journeys-prod-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod:56" -> (known after apply) # (15 unchanged attributes hidden) # (5 unchanged blocks hidden) } # module.prod.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition must be replaced +/- resource "aws_ecs_task_definition" "ecs_task_definition" { ~ arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod:56" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "prod" }, - { - name = "SERVICE_NAME" - value = "api-journeys" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-journeys-prod:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-journeys" - dd_source = "nestjs" - dd_tags = "env:prod" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-api-journeys-prod-app" - portMappings = [ - { - containerPort = 4001 - hostPort = 4001 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/AWS_SECRET_ACCESS_KEY" }, - { - name = "CLOUDFLARE_ACCOUNT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/CLOUDFLARE_ACCOUNT_ID" }, - { - name = "CLOUDFLARE_STREAM_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/CLOUDFLARE_STREAM_TOKEN" }, - { - name = "FIREBASE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/FIREBASE_API_KEY" }, - { - name = "GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GATEWAY_URL" }, - { - name = "GIT_BRANCH" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GIT_BRANCH" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GOOGLE_APPLICATION_JSON" }, - { - name = "GROWTH_SPACES_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GROWTH_SPACES_URL" }, - { - name = "INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/JOURNEYS_ADMIN_URL" }, - { - name = "MAILCHIMP_AUDIENCE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_AUDIENCE_ID" }, - { - name = "MAILCHIMP_MARKETING_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_MARKETING_API_KEY" }, - { - name = "MAILCHIMP_MARKETING_API_SERVER_PREFIX" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_MARKETING_API_SERVER_PREFIX" }, - { - name = "PG_DATABASE_URL_JOURNEYS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PG_DATABASE_URL_JOURNEYS" }, - { - name = "PLAUSIBLE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAUSIBLE_API_KEY" }, - { - name = "PLAUSIBLE_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAUSIBLE_URL" }, - { - name = "PLAYWRIGHT_USER_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAYWRIGHT_USER_ID" }, - { - name = "POWER_BI_CLIENT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_CLIENT_ID" }, - { - name = "POWER_BI_CLIENT_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_CLIENT_SECRET" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_TENANT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_TENANT_ID" }, - { - name = "POWER_BI_WORKSPACE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_WORKSPACE_ID" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/REDIS_URL" }, - { - name = "SMTP_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/SMTP_URL" }, - { - name = "VERCEL_JOURNEYS_PROJECT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_JOURNEYS_PROJECT_ID" }, - { - name = "VERCEL_TEAM_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_TEAM_ID" }, - { - name = "VERCEL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_TOKEN" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:prod app:api-journeys" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-journeys-prod-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-journeys-prod-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> (known after apply) # forces replacement ~ id = "jfp-api-journeys-prod" -> (known after apply) ~ revision = 56 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/prod/MUX_ACCESS_TOKEN_ID" + overwrite = true + tags = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tags_all = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/prod/MUX_SECRET_KEY" + overwrite = true + tags = { + "name" = "MUX_SECRET_KEY" } + tags_all = { + "name" = "MUX_SECRET_KEY" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service will be updated in-place ~ resource "aws_ecs_service" "ecs_service" { id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-stage/api-journeys-stage-service" name = "api-journeys-stage-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage:45" -> (known after apply) # (15 unchanged attributes hidden) # (4 unchanged blocks hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition must be replaced +/- resource "aws_ecs_task_definition" "ecs_task_definition" { ~ arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage:45" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "stage" }, - { - name = "SERVICE_NAME" - value = "api-journeys" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-journeys-stage:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-journeys" - dd_source = "nestjs" - dd_tags = "env:stage" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-api-journeys-stage-app" - portMappings = [ - { - containerPort = 4001 - hostPort = 4001 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/AWS_SECRET_ACCESS_KEY" }, - { - name = "CLOUDFLARE_ACCOUNT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/CLOUDFLARE_ACCOUNT_ID" }, - { - name = "CLOUDFLARE_STREAM_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/CLOUDFLARE_STREAM_TOKEN" }, - { - name = "FIREBASE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/FIREBASE_API_KEY" }, - { - name = "GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GATEWAY_URL" }, - { - name = "GIT_BRANCH" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GIT_BRANCH" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GOOGLE_APPLICATION_JSON" }, - { - name = "GROWTH_SPACES_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GROWTH_SPACES_URL" }, - { - name = "INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/JOURNEYS_ADMIN_URL" }, - { - name = "MAILCHIMP_AUDIENCE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_AUDIENCE_ID" }, - { - name = "MAILCHIMP_MARKETING_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_MARKETING_API_KEY" }, - { - name = "MAILCHIMP_MARKETING_API_SERVER_PREFIX" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_MARKETING_API_SERVER_PREFIX" }, - { - name = "PG_DATABASE_URL_JOURNEYS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PG_DATABASE_URL_JOURNEYS" }, - { - name = "PLAUSIBLE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAUSIBLE_API_KEY" }, - { - name = "PLAUSIBLE_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAUSIBLE_URL" }, - { - name = "PLAYWRIGHT_USER_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAYWRIGHT_USER_ID" }, - { - name = "POWER_BI_CLIENT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_CLIENT_ID" }, - { - name = "POWER_BI_CLIENT_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_CLIENT_SECRET" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_TENANT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_TENANT_ID" }, - { - name = "POWER_BI_WORKSPACE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_WORKSPACE_ID" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/REDIS_URL" }, - { - name = "SMTP_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/SMTP_URL" }, - { - name = "VERCEL_JOURNEYS_PROJECT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_JOURNEYS_PROJECT_ID" }, - { - name = "VERCEL_TEAM_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_TEAM_ID" }, - { - name = "VERCEL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_TOKEN" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:stage app:api-journeys" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-journeys-stage-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-journeys-stage-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> (known after apply) # forces replacement ~ id = "jfp-api-journeys-stage" -> (known after apply) ~ revision = 45 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/stage/MUX_ACCESS_TOKEN_ID" + overwrite = true + tags = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tags_all = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/stage/MUX_SECRET_KEY" + overwrite = true + tags = { + "name" = "MUX_SECRET_KEY" } + tags_all = { + "name" = "MUX_SECRET_KEY" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } Plan: 6 to add, 2 to change, 2 to destroy. ```

mikeallisonJS commented 2 months ago

atlantis plan -d infrastructure

jesus-film-bot commented 2 months ago

Ran Plan for dir: infrastructure workspace: default

Show Output ```diff Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create ~ update in-place +/- create replacement and then destroy Terraform will perform the following actions: # module.prod.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service will be updated in-place ~ resource "aws_ecs_service" "ecs_service" { id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-prod/api-journeys-prod-service" name = "api-journeys-prod-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod:56" -> (known after apply) # (15 unchanged attributes hidden) # (5 unchanged blocks hidden) } # module.prod.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition must be replaced +/- resource "aws_ecs_task_definition" "ecs_task_definition" { ~ arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod:56" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-prod" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "prod" }, - { - name = "SERVICE_NAME" - value = "api-journeys" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-journeys-prod:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-journeys" - dd_source = "nestjs" - dd_tags = "env:prod" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-api-journeys-prod-app" - portMappings = [ - { - containerPort = 4001 - hostPort = 4001 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/AWS_SECRET_ACCESS_KEY" }, - { - name = "CLOUDFLARE_ACCOUNT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/CLOUDFLARE_ACCOUNT_ID" }, - { - name = "CLOUDFLARE_STREAM_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/CLOUDFLARE_STREAM_TOKEN" }, - { - name = "FIREBASE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/FIREBASE_API_KEY" }, - { - name = "GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GATEWAY_URL" }, - { - name = "GIT_BRANCH" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GIT_BRANCH" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GOOGLE_APPLICATION_JSON" }, - { - name = "GROWTH_SPACES_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/GROWTH_SPACES_URL" }, - { - name = "INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/JOURNEYS_ADMIN_URL" }, - { - name = "MAILCHIMP_AUDIENCE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_AUDIENCE_ID" }, - { - name = "MAILCHIMP_MARKETING_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_MARKETING_API_KEY" }, - { - name = "MAILCHIMP_MARKETING_API_SERVER_PREFIX" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/MAILCHIMP_MARKETING_API_SERVER_PREFIX" }, - { - name = "PG_DATABASE_URL_JOURNEYS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PG_DATABASE_URL_JOURNEYS" }, - { - name = "PLAUSIBLE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAUSIBLE_API_KEY" }, - { - name = "PLAUSIBLE_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAUSIBLE_URL" }, - { - name = "PLAYWRIGHT_USER_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/PLAYWRIGHT_USER_ID" }, - { - name = "POWER_BI_CLIENT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_CLIENT_ID" }, - { - name = "POWER_BI_CLIENT_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_CLIENT_SECRET" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_TENANT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_TENANT_ID" }, - { - name = "POWER_BI_WORKSPACE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/POWER_BI_WORKSPACE_ID" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/REDIS_URL" }, - { - name = "SMTP_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/SMTP_URL" }, - { - name = "VERCEL_JOURNEYS_PROJECT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_JOURNEYS_PROJECT_ID" }, - { - name = "VERCEL_TEAM_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_TEAM_ID" }, - { - name = "VERCEL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/prod/VERCEL_TOKEN" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:prod app:api-journeys" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-journeys-prod-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-journeys-prod-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> (known after apply) # forces replacement ~ id = "jfp-api-journeys-prod" -> (known after apply) ~ revision = 56 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/prod/MUX_ACCESS_TOKEN_ID" + overwrite = true + tags = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tags_all = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/prod/MUX_SECRET_KEY" + overwrite = true + tags = { + "name" = "MUX_SECRET_KEY" } + tags_all = { + "name" = "MUX_SECRET_KEY" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service will be updated in-place ~ resource "aws_ecs_service" "ecs_service" { id = "arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-stage/api-journeys-stage-service" name = "api-journeys-stage-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage:45" -> (known after apply) # (15 unchanged attributes hidden) # (4 unchanged blocks hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition must be replaced +/- resource "aws_ecs_task_definition" "ecs_task_definition" { ~ arn = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage:45" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-journeys-stage" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 1024 - environment = [ - { - name = "NODE_ENV" - value = "production" }, - { - name = "SERVICE_ENV" - value = "stage" }, - { - name = "SERVICE_NAME" - value = "api-journeys" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-journeys-stage:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-journeys" - dd_source = "nestjs" - dd_tags = "env:stage" - provider = "ecs" - retry_limit = "2" } - secretOptions = [ - { - name = "apikey" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] } - memory = 2048 - mountPoints = [] - name = "jfp-api-journeys-stage-app" - portMappings = [ - { - containerPort = 4001 - hostPort = 4001 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/AWS_SECRET_ACCESS_KEY" }, - { - name = "CLOUDFLARE_ACCOUNT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/CLOUDFLARE_ACCOUNT_ID" }, - { - name = "CLOUDFLARE_STREAM_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/CLOUDFLARE_STREAM_TOKEN" }, - { - name = "FIREBASE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/FIREBASE_API_KEY" }, - { - name = "GATEWAY_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GATEWAY_URL" }, - { - name = "GIT_BRANCH" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GIT_BRANCH" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GOOGLE_APPLICATION_JSON" }, - { - name = "GROWTH_SPACES_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/GROWTH_SPACES_URL" }, - { - name = "INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/INTEGRATION_ACCESS_KEY_ENCRYPTION_SECRET" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/JOURNEYS_ADMIN_URL" }, - { - name = "MAILCHIMP_AUDIENCE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_AUDIENCE_ID" }, - { - name = "MAILCHIMP_MARKETING_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_MARKETING_API_KEY" }, - { - name = "MAILCHIMP_MARKETING_API_SERVER_PREFIX" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/MAILCHIMP_MARKETING_API_SERVER_PREFIX" }, - { - name = "PG_DATABASE_URL_JOURNEYS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PG_DATABASE_URL_JOURNEYS" }, - { - name = "PLAUSIBLE_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAUSIBLE_API_KEY" }, - { - name = "PLAUSIBLE_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAUSIBLE_URL" }, - { - name = "PLAYWRIGHT_USER_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/PLAYWRIGHT_USER_ID" }, - { - name = "POWER_BI_CLIENT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_CLIENT_ID" }, - { - name = "POWER_BI_CLIENT_SECRET" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_CLIENT_SECRET" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_MULTIPLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_MULTIPLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_SINGLE_FULL_REPORT_ID" }, - { - name = "POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_JOURNEYS_SINGLE_SUMMARY_REPORT_ID" }, - { - name = "POWER_BI_TENANT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_TENANT_ID" }, - { - name = "POWER_BI_WORKSPACE_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/POWER_BI_WORKSPACE_ID" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/REDIS_URL" }, - { - name = "SMTP_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/SMTP_URL" }, - { - name = "VERCEL_JOURNEYS_PROJECT_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_JOURNEYS_PROJECT_ID" }, - { - name = "VERCEL_TEAM_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_TEAM_ID" }, - { - name = "VERCEL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-journeys/stage/VERCEL_TOKEN" }, - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [ - { - name = "DD_APM_ENABLED" - value = "true" }, - { - name = "DD_APM_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_DOGSTATSD_NON_LOCAL_TRAFFIC" - value = "true" }, - { - name = "DD_LOGS_INJECTION" - value = "true" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_GRPC_ENDPOINT" - value = "0.0.0.0:4317" }, - { - name = "DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT" - value = "0.0.0.0:4318" }, - { - name = "DD_PROCESS_AGENT_ENABLED" - value = "true" }, - { - name = "DD_PROFILING_ENABLED" - value = "true" }, - { - name = "DD_RUNTIME_METRICS_ENABLED" - value = "true" }, - { - name = "DD_TAGS" - value = "env:stage app:api-journeys" }, - { - name = "DD_TRACE_ANALYTICS_ENABLED" - value = "true" }, - { - name = "ECS_FARGATE" - value = "true" }, ] - essential = true - image = "public.ecr.aws/datadog/agent:latest" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-journeys-stage-datadog-agent" - portMappings = [ - { - containerPort = 4317 - hostPort = 4317 - protocol = "tcp" }, - { - containerPort = 4318 - hostPort = 4318 - protocol = "tcp" }, - { - containerPort = 8125 - hostPort = 8125 - protocol = "udp" }, ] - secrets = [ - { - name = "DD_API_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/terraform/prd/DATADOG_API_KEY" }, ] - systemControls = [] - volumesFrom = [] }, - { - cpu = 0 - environment = [] - essential = true - firelensConfiguration = { - options = { - config-file-type = "file" - config-file-value = "/fluent-bit/configs/parse-json.conf" - enable-ecs-log-metadata = "true" } - type = "fluentbit" } - image = "amazon/aws-for-fluent-bit:stable" - logConfiguration = { - logDriver = "awslogs" - options = { - awslogs-group = "api-journeys-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-journeys-stage-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] ) -> (known after apply) # forces replacement ~ id = "jfp-api-journeys-stage" -> (known after apply) ~ revision = 45 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/stage/MUX_ACCESS_TOKEN_ID" + overwrite = true + tags = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tags_all = { + "name" = "MUX_ACCESS_TOKEN_ID" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"] will be created + resource "aws_ssm_parameter" "parameters" { + arn = (known after apply) + data_type = (known after apply) + id = (known after apply) + insecure_value = (known after apply) + key_id = (known after apply) + name = "/ecs/api-journeys/stage/MUX_SECRET_KEY" + overwrite = true + tags = { + "name" = "MUX_SECRET_KEY" } + tags_all = { + "name" = "MUX_SECRET_KEY" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } Plan: 6 to add, 2 to change, 2 to destroy. ```

mikeallisonJS commented 2 months ago

atlantis apply -d infrastructure

jesus-film-bot commented 2 months ago

Ran Apply for dir: infrastructure workspace: default

Show Output ```diff module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"]: Creating... module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"]: Creating... module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"]: Creating... module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"]: Creating... module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"]: Creation complete after 0s [id=/ecs/api-journeys/prod/MUX_ACCESS_TOKEN_ID] module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"]: Creation complete after 0s [id=/ecs/api-journeys/stage/MUX_SECRET_KEY] module.stage.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_ACCESS_TOKEN_ID"]: Creation complete after 0s [id=/ecs/api-journeys/stage/MUX_ACCESS_TOKEN_ID] module.prod.module.api-journeys.module.ecs-task.aws_ssm_parameter.parameters["MUX_SECRET_KEY"]: Creation complete after 0s [id=/ecs/api-journeys/prod/MUX_SECRET_KEY] module.prod.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition: Creating... module.stage.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition: Creating... module.stage.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition: Creation complete after 0s [id=jfp-api-journeys-stage] module.prod.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition: Creation complete after 0s [id=jfp-api-journeys-prod] module.prod.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service: Modifying... [id=arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-prod/api-journeys-prod-service] module.stage.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service: Modifying... [id=arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-stage/api-journeys-stage-service] module.stage.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service: Modifications complete after 1s [id=arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-stage/api-journeys-stage-service] module.stage.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition (deposed object dcd9cf2a): Destroying... [id=jfp-api-journeys-stage] module.stage.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition: Destruction complete after 0s module.prod.module.api-journeys.module.ecs-task.aws_ecs_service.ecs_service: Modifications complete after 1s [id=arn:aws:ecs:us-east-2:410965620680:service/jfp-ecs-cluster-prod/api-journeys-prod-service] module.prod.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition (deposed object 49fcc29c): Destroying... [id=jfp-api-journeys-prod] module.prod.module.api-journeys.module.ecs-task.aws_ecs_task_definition.ecs_task_definition: Destruction complete after 0s Apply complete! Resources: 6 added, 2 changed, 2 destroyed. ```
jesus-film-bot commented 2 months ago

Automatically merging because all plans have been successfully applied.

jesus-film-bot commented 2 months ago

Automerging failed:

merging pull request: PUT https://api.github.com/repos/JesusFilm/core/pulls/4312/merge: 405 Changes must be made through the merge queue []
stage-branch-merger[bot] commented 2 months ago

I see you added the "on stage" label, I'll get this merged to the stage branch!

jesus-film-bot commented 2 months ago

Ran Plan for dir: infrastructure workspace: default

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

jesus-film-bot commented 2 months ago

Locks and plans deleted for the projects and workspaces modified in this pull request: