JesusFilm / core

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

feat: api users yoga #3315

Closed mikeallisonJS closed 5 months ago

mikeallisonJS commented 5 months ago

Description

Issue

Need to move api-users to yoga

github-actions[bot] commented 5 months ago
Warnings
:warning: :exclamation: Big PR (3236 changes)
:warning: Is this PR related to a Basecamp issue? If so link it via the PR description - https://3.basecamp.com/3105655/buckets/:projectId/todos/:todoId

(change count - 3236): Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR will helps faster, easier review.

Generated by :no_entry_sign: dangerJS against ba4c74b8ac19bedb3faf05da1d50af78b700f45c

github-actions[bot] commented 5 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
docs ✅ Ready Visit Preview Fri Sep 6 00:10:38 UTC 2024
github-actions[bot] commented 5 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
arclight ✅ Ready Visit Preview Fri Sep 6 00:12:33 UTC 2024
github-actions[bot] commented 5 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
videos-admin ✅ Ready Visit Preview Fri Sep 6 00:13:46 UTC 2024
github-actions[bot] commented 5 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready Visit Preview Fri Sep 6 00:12:56 UTC 2024
github-actions[bot] commented 5 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready Visit Preview Fri Sep 6 00:13:20 UTC 2024
github-actions[bot] commented 5 months ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys-admin ✅ Ready Visit Preview Fri Sep 6 00:14:05 UTC 2024
jesus-film-bot commented 5 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-users.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-users-prod-service" name = "api-users-prod-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-users-prod:40" -> (known after apply) # (15 unchanged attributes hidden) # (5 unchanged blocks hidden) } # module.prod.module.api-users.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-users-prod:40" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-users-prod" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 512 - environment = [ - { - name = "NODE_ENV" - value = "production" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-users-prod:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-users" - 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 = 1024 - mountPoints = [] - name = "jfp-api-users-prod-app" - portMappings = [ - { - containerPort = 4002 - hostPort = 4002 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/AWS_SECRET_ACCESS_KEY" }, - { - name = "EXAMPLE_EMAIL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/EXAMPLE_EMAIL_TOKEN" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/GOOGLE_APPLICATION_JSON" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/JOURNEYS_ADMIN_URL" }, - { - name = "PG_DATABASE_URL_USERS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/PG_DATABASE_URL_USERS" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/REDIS_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:api-users" }, - { - 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-users-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-users-prod-datadog-agent" - portMappings = [ - { - 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-users-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-users-prod-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] # forces replacement ) -> (known after apply) # forces replacement ~ id = "jfp-api-users-prod" -> (known after apply) ~ revision = 40 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.prod.module.api-users.module.ecs-task.aws_ssm_parameter.parameters["NAT_ADDRESSES"] 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-users/prod/NAT_ADDRESSES" + overwrite = true + tags = { + "name" = "NAT_ADDRESSES" } + tags_all = { + "name" = "NAT_ADDRESSES" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.api-users.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-users-stage-service" name = "api-users-stage-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-users-stage:30" -> (known after apply) # (15 unchanged attributes hidden) # (4 unchanged blocks hidden) } # module.stage.module.api-users.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-users-stage:30" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-users-stage" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 512 - environment = [ - { - name = "NODE_ENV" - value = "production" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-users-stage:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-users" - 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 = 1024 - mountPoints = [] - name = "jfp-api-users-stage-app" - portMappings = [ - { - containerPort = 4002 - hostPort = 4002 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/AWS_SECRET_ACCESS_KEY" }, - { - name = "EXAMPLE_EMAIL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/EXAMPLE_EMAIL_TOKEN" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/GOOGLE_APPLICATION_JSON" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/JOURNEYS_ADMIN_URL" }, - { - name = "PG_DATABASE_URL_USERS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/PG_DATABASE_URL_USERS" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/REDIS_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:api-users" }, - { - 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-users-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-users-stage-datadog-agent" - portMappings = [ - { - 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-users-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-users-stage-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] # forces replacement ) -> (known after apply) # forces replacement ~ id = "jfp-api-users-stage" -> (known after apply) ~ revision = 30 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.stage.module.api-users.module.ecs-task.aws_ssm_parameter.parameters["NAT_ADDRESSES"] 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-users/stage/NAT_ADDRESSES" + overwrite = true + tags = { + "name" = "NAT_ADDRESSES" } + tags_all = { + "name" = "NAT_ADDRESSES" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } Plan: 4 to add, 2 to change, 2 to destroy. ```

jesus-film-bot commented 5 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-users.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-users-prod-service" name = "api-users-prod-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-users-prod:40" -> (known after apply) # (15 unchanged attributes hidden) # (5 unchanged blocks hidden) } # module.prod.module.api-users.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-users-prod:40" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-users-prod" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 512 - environment = [ - { - name = "NODE_ENV" - value = "production" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-users-prod:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-users" - 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 = 1024 - mountPoints = [] - name = "jfp-api-users-prod-app" - portMappings = [ - { - containerPort = 4002 - hostPort = 4002 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/AWS_SECRET_ACCESS_KEY" }, - { - name = "EXAMPLE_EMAIL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/EXAMPLE_EMAIL_TOKEN" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/GOOGLE_APPLICATION_JSON" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/JOURNEYS_ADMIN_URL" }, - { - name = "PG_DATABASE_URL_USERS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/PG_DATABASE_URL_USERS" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/prod/REDIS_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:api-users" }, - { - 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-users-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-users-prod-datadog-agent" - portMappings = [ - { - 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-users-prod-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-users-prod-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] # forces replacement ) -> (known after apply) # forces replacement ~ id = "jfp-api-users-prod" -> (known after apply) ~ revision = 40 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.prod.module.api-users.module.ecs-task.aws_ssm_parameter.parameters["NAT_ADDRESSES"] 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-users/prod/NAT_ADDRESSES" + overwrite = true + tags = { + "name" = "NAT_ADDRESSES" } + tags_all = { + "name" = "NAT_ADDRESSES" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } # module.stage.module.api-users.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-users-stage-service" name = "api-users-stage-service" tags = {} ~ task_definition = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-users-stage:30" -> (known after apply) # (15 unchanged attributes hidden) # (4 unchanged blocks hidden) } # module.stage.module.api-users.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-users-stage:30" -> (known after apply) ~ arn_without_revision = "arn:aws:ecs:us-east-2:410965620680:task-definition/jfp-api-users-stage" -> (known after apply) ~ container_definitions = jsonencode( [ - { - cpu = 512 - environment = [ - { - name = "NODE_ENV" - value = "production" }, ] - essential = true - image = "410965620680.dkr.ecr.us-east-2.amazonaws.com/jfp-api-users-stage:latest" - logConfiguration = { - logDriver = "awsfirelens" - options = { - Host = "http-intake.logs.datadoghq.com" - Name = "datadog" - TLS = "on" - compress = "gzip" - dd_service = "api-users" - 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 = 1024 - mountPoints = [] - name = "jfp-api-users-stage-app" - portMappings = [ - { - containerPort = 4002 - hostPort = 4002 - protocol = "tcp" }, ] - secrets = [ - { - name = "AWS_ACCESS_KEY_ID" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/AWS_ACCESS_KEY_ID" }, - { - name = "AWS_SECRET_ACCESS_KEY" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/AWS_SECRET_ACCESS_KEY" }, - { - name = "EXAMPLE_EMAIL_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/EXAMPLE_EMAIL_TOKEN" }, - { - name = "GOOGLE_APPLICATION_JSON" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/GOOGLE_APPLICATION_JSON" }, - { - name = "INTEROP_TOKEN" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/INTEROP_TOKEN" }, - { - name = "JOURNEYS_ADMIN_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/JOURNEYS_ADMIN_URL" }, - { - name = "PG_DATABASE_URL_USERS" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/PG_DATABASE_URL_USERS" }, - { - name = "REDIS_PORT" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/REDIS_PORT" }, - { - name = "REDIS_URL" - valueFrom = "arn:aws:ssm:us-east-2:410965620680:parameter/ecs/api-users/stage/REDIS_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:api-users" }, - { - 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-users-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 128 - mountPoints = [] - name = "jfp-api-users-stage-datadog-agent" - portMappings = [ - { - 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-users-stage-logs" - awslogs-region = "us-east-2" - awslogs-stream-prefix = "core" } } - memoryReservation = 100 - mountPoints = [] - name = "jfp-api-users-stage-log-router" - portMappings = [] - systemControls = [] - user = "0" - volumesFrom = [] }, ] # forces replacement ) -> (known after apply) # forces replacement ~ id = "jfp-api-users-stage" -> (known after apply) ~ revision = 30 -> (known after apply) - tags = {} -> null ~ tags_all = {} -> (known after apply) # (10 unchanged attributes hidden) } # module.stage.module.api-users.module.ecs-task.aws_ssm_parameter.parameters["NAT_ADDRESSES"] 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-users/stage/NAT_ADDRESSES" + overwrite = true + tags = { + "name" = "NAT_ADDRESSES" } + tags_all = { + "name" = "NAT_ADDRESSES" } + tier = (known after apply) + type = "SecureString" + value = (sensitive value) + version = (known after apply) } Plan: 4 to add, 2 to change, 2 to destroy. ```

stage-branch-merger[bot] commented 5 months ago

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

jesus-film-bot commented 5 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 5 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 5 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 5 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 5 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 5 months ago

Ran Plan for dir: infrastructure workspace: default

Plan Error

Show Output ``` running "/usr/local/bin/terraform plan -input=false -refresh -out \"/home/atlantis/.atlantis/repos/JesusFilm/core/3315/default/infrastructure/default.tfplan\"" in "/home/atlantis/.atlantis/repos/JesusFilm/core/3315/default/infrastructure": exit status 1 ╷ │ Error: Invalid function argument │ │ on modules/aws/ec2-cloudflared/main.tf line 14, in resource "aws_instance" "ec2_cloudflared": │ 14: user_data = templatefile("${path.module}/startup.sh", { │ 15: cloudflared_token = var.cloudflared_token │ 16: datadog_api_key = data.aws_ssm_parameter.datadog_api_key.value │ 17: }) │ ├──────────────── │ │ while calling templatefile(path, vars) │ │ path.module is "modules/aws/ec2-cloudflared" │ │ Invalid value for "path" parameter: no file exists at │ "modules/aws/ec2-cloudflared/startup.sh"; this function works only with │ files that are distributed as part of the configuration source code, so if │ this file will be created by a resource in this configuration you must │ instead obtain this result from an attribute of that resource. ╵ ╷ │ Error: Invalid function argument │ │ on modules/aws/ec2-cloudflared/main.tf line 14, in resource "aws_instance" "ec2_cloudflared": │ 14: user_data = templatefile("${path.module}/startup.sh", { │ 15: cloudflared_token = var.cloudflared_token │ 16: datadog_api_key = data.aws_ssm_parameter.datadog_api_key.value │ 17: }) │ ├──────────────── │ │ while calling templatefile(path, vars) │ │ path.module is "modules/aws/ec2-cloudflared" │ │ Invalid value for "path" parameter: no file exists at │ "modules/aws/ec2-cloudflared/startup.sh"; this function works only with │ files that are distributed as part of the configuration source code, so if │ this file will be created by a resource in this configuration you must │ instead obtain this result from an attribute of that resource. ╵ ╷ │ Error: Invalid function argument │ │ on modules/aws/ec2-dd-agent-aurora/main.tf line 8, in resource "aws_instance" "datadog_aurora": │ 8: user_data = templatefile("${path.module}/startup.sh", { │ 9: datadog_api_key = data.aws_ssm_parameter.datadog_api_key.value │ 10: postgres_instances = <
jesus-film-bot commented 5 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 5 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 5 months ago

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