Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [MC-681] Implement scheduled_corpus_candidate Snowplow functions #87

Merged
merged 28 commits into from
Mar 18, 2024

Conversation

mmiermans
Copy link
Contributor

@mmiermans mmiermans commented Mar 6, 2024

Goal

MC-681 Emit ML features when an ML item is scheduled, or fails to be scheduled.

Changes

  • content-common contains shared code to emit Snowplow events, with tests.
  • fix: prospect-api and curated-corpus-api failed to retry Snowplow events on error, because Snowplow's request library .
  • fix: remove unused package @aws-sdk/client-lambda to decrease AWS Lambda uncompressed size below 250 MB.

References

JIRA ticket:

Issue filed with Snowplow library:

Spec PR:

QA

  • Force-push to dev

Missing image

Steps:

  1. Open the scheduler SQS queue in Dev.
  2. Send missing_image.json

Expectations:

Successful scheduled item

Steps:

  1. Open record.json
  2. Change the URL to one that hasn't been scheduled before
  3. Send it in the scheduler SQS queue in Dev.

Expectations:

ML Scheduler run

After the ML scheduler runs in the morning:

  • 30 events are sent by the corpus-scheduler-lambda-dev:

image

  • 60 events (one schedule and approve event for each candidate) are sent by the curated-corpus-api-dev:

image

Removing prospects

  • A prospect entity is emitted when a prospect is removed from ConstraintSchedule
  • A prospect entity with a reason is emitted when a prospect is removed from SlateSchedulerV2

Screenshot from 2024-03-13 20-38-03

@pocket-ci
Copy link

pocket-ci commented Mar 6, 2024

Plan Result (prospect-api-cdk)

CI link

Plan: 1 to add, 5 to change, 0 to destroy.
  • Create
    • local_file.application_ecs_service_appspec_94386B9C
  • Update
    • aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E
    • aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6
    • aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9
    • aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A
    • aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA
Change Result (Click me)
  # data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "dynamodb:BatchGet*",
              + "dynamodb:DescribeTable",
              + "dynamodb:Get*",
              + "dynamodb:Query",
              + "dynamodb:Scan",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects",
              + "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "s3:*",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:s3:::pocket-prospectapi-prod-images",
              + "arn:aws:s3:::pocket-prospectapi-prod-images/*",
            ]
        }
      + statement {
          + actions   = [
              + "events:PutEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:events:us-east-1:996905175585:event-bus/PocketEventBridge-Prod-Shared-Event-Bus",
            ]
        }
    }

  # data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "logs:CreateLogGroup",
              + "logs:CreateLogStream",
              + "logs:DescribeLogStreams",
              + "logs:PutLogEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:logs:*:*:*",
            ]
        }
      + statement {
          + actions   = [
              + "dynamodb:BatchWriteItem",
              + "dynamodb:DescribeTable",
              + "dynamodb:PutItem",
              + "dynamodb:Query",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects",
              + "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "ec2:AttachNetworkInterface",
              + "ec2:CreateNetworkInterface",
              + "ec2:DeleteNetworkInterface",
              + "ec2:DescribeInstances",
              + "ec2:DescribeNetworkInterfaces",
            ]
          + effect    = "Allow"
          + resources = [
              + "*",
            ]
        }
    }

  # aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E will be updated in-place
  ~ resource "aws_dynamodb_table" "dynamodb_prospects_dynamodb_table_9854E41E" {
        id                          = "PROAPI-Prod-Prospects"
        name                        = "PROAPI-Prod-Prospects"
        tags                        = {
            "environment" = "Prod"
            "service"     = "ProspectAPI"
        }
        # (9 unchanged attributes hidden)

      - global_secondary_index {
          - hash_key           = "scheduledSurfaceGuid" -> null
          - name               = "scheduledSurfaceGuid-prospectType" -> null
          - non_key_attributes = [] -> null
          - projection_type    = "ALL" -> null
          - range_key          = "prospectType" -> null
          - read_capacity      = 0 -> null
          - write_capacity     = 0 -> null
        }
      + global_secondary_index {
          + hash_key           = "scheduledSurfaceGuid"
          + name               = "scheduledSurfaceGuid-prospectType"
          + non_key_attributes = []
          + projection_type    = "ALL"
          + range_key          = "prospectType"
          + read_capacity      = 5
          + write_capacity     = 5
        }

        # (5 unchanged blocks hidden)
    }

  # aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6 will be updated in-place
  ~ resource "aws_iam_policy" "application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6" {
        id        = "arn:aws:iam::996905175585:policy/ProspectAPI-Prod-TaskRolePolicy"
        name      = "ProspectAPI-Prod-TaskRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Scan",
                          - "dynamodb:Query",
                          - "dynamodb:Get*",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchGet*",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects",
                        ]
                      - Sid      = ""
                    },
                  - {
                      - Action   = "s3:*"
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:s3:::pocket-prospectapi-prod-images/*",
                          - "arn:aws:s3:::pocket-prospectapi-prod-images",
                        ]
                      - Sid      = ""
                    },
                  - {
                      - Action   = "events:PutEvents"
                      - Effect   = "Allow"
                      - Resource = "arn:aws:events:us-east-1:996905175585:event-bus/PocketEventBridge-Prod-Shared-Event-Bus"
                      - Sid      = ""
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Prod"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9 will be updated in-place
  ~ resource "aws_iam_policy" "translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9" {
        id        = "arn:aws:iam::996905175585:policy/ProspectAPI-Prod-Sqs-Translation-ExecutionRolePolicy"
        name      = "ProspectAPI-Prod-Sqs-Translation-ExecutionRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "logs:PutLogEvents",
                          - "logs:DescribeLogStreams",
                          - "logs:CreateLogStream",
                          - "logs:CreateLogGroup",
                        ]
                      - Effect   = "Allow"
                      - Resource = "arn:aws:logs:*:*:*"
                      - Sid      = ""
                    },
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Query",
                          - "dynamodb:PutItem",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchWriteItem",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects",
                        ]
                      - Sid      = ""
                    },
                  - {
                      - Action   = [
                          - "ec2:DescribeNetworkInterfaces",
                          - "ec2:DescribeInstances",
                          - "ec2:DeleteNetworkInterface",
                          - "ec2:CreateNetworkInterface",
                          - "ec2:AttachNetworkInterface",
                        ]
                      - Effect   = "Allow"
                      - Resource = "*"
                      - Sid      = ""
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Prod"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A will be updated in-place
  ~ resource "aws_lambda_function" "bridge-lambda_bridge-sqs-lambda_343B543A" {
        id                             = "ProspectAPI-Prod-Sqs-Bridge-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:996905175585:function:ProspectAPI-Prod-Sqs-Bridge-Function:95" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:996905175585:function:ProspectAPI-Prod-Sqs-Bridge-Function:95/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Prod"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "95" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                  = (sensitive value)
                # (5 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA will be updated in-place
  ~ resource "aws_lambda_function" "translation-lambda_translation-sqs-lambda_B9BDF6BA" {
        id                             = "ProspectAPI-Prod-Sqs-Translation-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:996905175585:function:ProspectAPI-Prod-Sqs-Translation-Function:923" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:996905175585:function:ProspectAPI-Prod-Sqs-Translation-Function:923/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Prod"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "923" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                      = (sensitive value)
                # (3 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4026
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:996905175585:task-definition/ProspectAPI-Prod:400"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

Plan: 1 to add, 5 to change, 0 to destroy.

@pocket-ci
Copy link

pocket-ci commented Mar 6, 2024

Plan Result (curated-corpus-api-cdk)

CI link

⚠️ Resource Deletion will happen

This plan contains resource delete operation. Please check the plan result very carefully!

Plan: 2 to add, 0 to change, 1 to destroy.
  • Create
    • local_file.application_ecs_service_appspec_94386B9C
  • Replace
    • null_resource.application_ecs_service_create-task-definition-file_6BADBAF7
Change Result (Click me)
  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4025
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:996905175585:task-definition/CuratedCorpusAPI-Prod:768"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

  # null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 must be replaced
-/+ resource "null_resource" "application_ecs_service_create-task-definition-file_6BADBAF7" {
      ~ id       = "3985287213243613252" -> (known after apply)
      ~ triggers = { # forces replacement
          ~ "alwaysRun" = "2024-03-14T22:26:52Z" -> (known after apply)
        }
    }

Plan: 2 to add, 0 to change, 1 to destroy.

@pocket-ci
Copy link

pocket-ci commented Mar 6, 2024

Plan Result (corpus-scheduler-lambda-cdk)

CI link

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F
Change Result (Click me)
  # aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F will be updated in-place
  ~ resource "aws_lambda_function" "corpus-scheduler-sqs-lambda_F2ECDF9F" {
        id                             = "CorpusSchedulerLambda-Prod-SQS-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:996905175585:function:CorpusSchedulerLambda-Prod-SQS-Function:32" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:996905175585:function:CorpusSchedulerLambda-Prod-SQS-Function:32/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Prod"
            "service"     = "CorpusSchedulerLambda"
        }
      ~ version                        = "32" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                          = (sensitive value)
              + "SNOWPLOW_ENDPOINT"                = "d.getpocket.com"
                # (6 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

chore: move common Snowplow logic to content-common

chore: use shared Snowplow code in prospect-api and curated-corpus-api

fix: Snowplow retries on error

chore: move Snowplow Micro to integration test file

fix: lint error snowplowHttpProtocol unused

feat: emit Snowplow events on error

remove duplicate test coverage for image error

fix snowplow tests

fix ECONNREFUSED to Snowplow Micro in CI tests

Revert "fix ECONNREFUSED to Snowplow Micro in CI tests"

This reverts commit 470df13.

fix: move Snowplow Micro tests to integrations

add test for Snowplow event on success
@mmiermans mmiermans force-pushed the mc-681-scheduler-snowplow-event-2 branch from d0991d1 to 694e8b3 Compare March 7, 2024 01:11
@pocket-ci
Copy link

✅ Apply Succeeded (prospect-api-cdk-dev)

CI link

Apply complete! Resources: 1 added, 3 changed, 0 destroyed.
Details (Click me)
Acquiring state lock. This may take a few moments...
data.terraform_remote_state.incident_management: Reading...
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Reading...
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Reading...
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Reading...
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
aws_codedeploy_app.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-app_E422EADB: Refreshing state... [id=eade583b-0d01-404c-ae96-10b8f0995609:ProspectAPI-Dev-Sqs-Translation-Lambda]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_E8DA1FF4: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Bridge-Queue-Deadletter]
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Read complete after 0s [id=1349007126]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
data.aws_caller_identity.caller: Reading...
aws_s3_bucket.bridge-lambda_bridge-sqs-lambda_code-bucket_8EFA52B9: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Read complete after 0s [id=4250039221]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Read complete after 0s [id=4250039221]
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Reading...
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:cluster/ProspectAPI-Dev]
aws_iam_user.bridge-lambda_iam_user_EB469160: Refreshing state... [id=ProspectAPI-Dev-Queue-User]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Reading...
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_kms_alias.kms_alias: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Reading...
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Read complete after 0s [id=arn:aws:firehose:us-east-1:410318598490:deliverystream/MetaflowTools-Dev-firehose]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Refreshing state... [id=PROAPI-Dev-Prospects]
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Reading...
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_kms_alias.kms_alias: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=410318598490]
aws_codedeploy_app.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-app_32ED4D33: Refreshing state... [id=fbd00677-7dab-4a8f-815f-3302fc60fff4:ProspectAPI-Dev-Sqs-Bridge-Lambda]
aws_s3_bucket.translation-lambda_translation-sqs-lambda_code-bucket_8041EB81: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Reading...
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Reading...
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Reading...
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Read complete after 0s [id=/Shared/Vpc]
data.aws_region.region: Reading...
data.aws_region.region: Read complete after 0s [id=us-east-1]
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Non-Critical]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Reading...
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Reading...
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Critical]
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Read complete after 0s [id=410318598490]
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:410318598490:certificate/8ad52ecf-43c6-4984-bf41-c9e997988fc5]
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=prospectapi-dev-app]
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/ProspectAPI-Dev/ecs/app]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_25D64172: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Translation-Queue-Deadletter]
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=4ee018c2-d5c1-4bf8-b940-2f4894b7a04b:ProspectAPI-Dev-ECS]
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z07747349K0HE9ZG8VFL]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-prospectapi-dev-images]
data.aws_sns_topic.backend_notifications: Reading...
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:410318598490:Backend-Dev-ChatBot]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Reading...
aws_iam_role.bridge-lambda_bridge-sqs-lambda_execution-role_F8CF76A9: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Read complete after 0s [id=/Shared/PublicSubnets]
aws_iam_role.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-role_9208AEE5: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-CodeDeployRole]
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Read complete after 0s [id=1349007126]
aws_iam_role.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-role_4D2F29B7: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-CodeDeployRole]
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 0s [id=ZCSIDA846KWLN]
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole]
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_26C8CFD1: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Bridge-Queue]
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=492931643]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Read complete after 0s [id=335886075]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
aws_s3_bucket_ownership_controls.bridge-lambda_bridge-sqs-lambda_code-bucket-ownership-controls_1F0D6BBB: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
aws_s3_bucket_public_access_block.bridge-lambda_bridge-sqs-lambda_code-bucket-public-access-block_F15A60E0: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=ProspectAPI-Dev-TaskRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole]
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_486217BD: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Translation-Queue]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=prospectapi-dev-app]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Reading...
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:410318598490:notificationrule/494587429c2f067bd47b7b93a56ac1fa94e36fe0]
aws_iam_role.translation-lambda_translation-sqs-lambda_execution-role_C2F15DF6: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole]
aws_s3_bucket_public_access_block.translation-lambda_translation-sqs-lambda_code-bucket-public-access-block_68EE0417: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
aws_s3_bucket_ownership_controls.translation-lambda_translation-sqs-lambda_code-bucket-ownership-controls_0A8BE3B3: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
data.terraform_remote_state.incident_management: Read complete after 1s
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z07747349K0HE9ZG8VFL__a1e0772270e0a8963c7058ba99a77c66.prospect-api.getpocket.dev._CNAME]
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=ZCSIDA846KWLN_prospect-api.getpocket.dev_NS]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskExecutionRolePolicy]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Read complete after 0s [id=805730466]
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Reading...
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Read complete after 0s [id=3957006061]
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_execution-policy_C0CB0661: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-ExecutionRolePolicy]
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 0s [id=vpc-012481e83ffa5e152]
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Read complete after 1s [id=vpc-012481e83ffa5e152]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_9040A119: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-CodeDeployRole-20240124234655772700000001]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 1s [id=vpc-012481e83ffa5e152]
aws_codedeploy_deployment_group.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deployment-group_BBEED2C6: Refreshing state... [id=8dc25499-e92c-4321-88a8-c5993845c46f]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_88071B62: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-CodeDeployRole-20240106052910436000000006]
aws_codedeploy_deployment_group.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deployment-group_064B3F38: Refreshing state... [id=a63ddc0f-5a38-4b36-9688-dacbc2f9cf05]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole-20240106052911264600000007]
aws_s3_bucket_acl.bridge-lambda_bridge-sqs-lambda_code-bucket-acl_8894DA8F: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge,private]
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=P8OH57E]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 0s [id=PKAPG94]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Reading...
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole-20240106054532934900000001]
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=POL55K4]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Read complete after 0s [id=1682749772]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=ProspectAPI-Dev]
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_sqs-policy_3397A47E: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-LambdaSQSPolicy]
aws_s3_bucket_acl.translation-lambda_translation-sqs-lambda_code-bucket-acl_51DA7819: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation,private]
aws_iam_policy.bridge-lambda_iam-sqs-policy_08CAA544: Refreshing state... [id=arn:aws:iam::410318598490:policy/IAM-ProspectAPI-Dev-QueuePolicy]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-06e3341d7c9c86ad0]
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/PROAPI20240106052909644400000005/73dfe4c3e0c3e420]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 0s [id=PZQ6AUS]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/PROAPI20240106052909482200000001/f83f684699ca6a2f]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 0s [id=us-east-1]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Reading...
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Read complete after 0s [id=us-east-1]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Reading...
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 0s [id=us-east-1]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2024-01-06 05:29:56.201 +0000 UTC]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole-20240106054532944500000002]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Read complete after 0s [id=us-east-1]
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Reading...
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 0s [id=us-east-1]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Reading...
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Read complete after 0s [id=us-east-1]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskRolePolicy]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_74C92A99: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole-20240124234655796600000002]
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Reading...
aws_iam_policy.translation-lambda_translation-sqs-lambda_sqs-policy_1811B7AA: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-LambdaSQSPolicy]
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9BEA8A61: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole-20240106054555793000000004]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_273DD1B7: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole-20240124234746737600000003]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Read complete after 0s [id=us-east-1]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Read complete after 0s [id=us-east-1]
aws_iam_user_policy_attachment.bridge-lambda_iam-sqs-user-policy-attachment_2DD4C358: Refreshing state... [id=ProspectAPI-Dev-Queue-User-20240209181401408000000001]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=P7YTOY4]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=PO7EPNU]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-04bc98ecee646d4b1]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=PVTQQC7]
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:loadbalancer/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=PRH2PMH]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-Function]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=ProspectAPI-Dev-TaskRole-20240106054555810400000005]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-Function]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9054A7C3: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole-2024010605300009160000000a]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Critical:7785ae8f-3060-4a2a-81e1-577aa0a66f4f]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Non-Critical:224e98c6-5606-427c-add7-44c0f0c09a4e]
aws_cloudwatch_log_group.bridge-lambda_bridge-sqs-lambda_log-group_617CC958: Refreshing state... [id=/aws/lambda/ProspectAPI-Dev-Sqs-Bridge-Function]
aws_lambda_alias.bridge-lambda_bridge-sqs-lambda_alias_EC42B87F: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:DEPLOYED]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/1b1a3d7eaec7bddf]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z07747349K0HE9ZG8VFL_prospect-api.getpocket.dev_A_1]
aws_cloudwatch_metric_alarm.application_alarm-httptarget5xxerrorrate_F94D87C0: Refreshing state... [id=ProspectAPI-Dev-Alarm-HTTPTarget5xxErrorRate]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/8034a0109f8a2a3e]
aws_cloudwatch_log_group.translation-lambda_translation-sqs-lambda_log-group_CAF5915B: Refreshing state... [id=/aws/lambda/ProspectAPI-Dev-Sqs-Translation-Function]
aws_lambda_alias.translation-lambda_translation-sqs-lambda_alias_10FF84BB: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:DEPLOYED]
aws_lambda_event_source_mapping.bridge-lambda_bridge-sqs-lambda_lambda_event_source_mapping_1EF01E53: Refreshing state... [id=cdd392e8-e7a3-4aa8-9792-25d85f4da0e1]
aws_lambda_event_source_mapping.translation-lambda_translation-sqs-lambda_lambda_event_source_mapping_49D092A6: Refreshing state... [id=b874d1a9-9d39-4b9c-bf38-db409e470b53]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener-rule/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/1b1a3d7eaec7bddf/dd49b8d8bf6e8dfe]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:service/ProspectAPI-Dev/ProspectAPI-Dev]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/ProspectAPI-Dev/ProspectAPI-Dev]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=ProspectAPI-Dev]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=30e83bf4-f2af-4aba-b187-4f7142a35559]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=ProspectAPI-Dev-ScaleOutPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=ProspectAPI-Dev-ScaleInPolicy]
null_resource.application_ecs_service_update-task-definition_D19A511D: Refreshing state... [id=1467228676312391832]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=ProspectAPI-Dev Service Low CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=ProspectAPI-Dev Service High CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
 <= read (data resources)

Terraform will perform the following actions:

  # data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "dynamodb:BatchGet*",
              + "dynamodb:DescribeTable",
              + "dynamodb:Get*",
              + "dynamodb:Query",
              + "dynamodb:Scan",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "s3:*",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:s3:::pocket-prospectapi-dev-images",
              + "arn:aws:s3:::pocket-prospectapi-dev-images/*",
            ]
        }
      + statement {
          + actions   = [
              + "events:PutEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:events:us-east-1:410318598490:event-bus/PocketEventBridge-Dev-Shared-Event-Bus",
            ]
        }
    }

  # data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "logs:CreateLogGroup",
              + "logs:CreateLogStream",
              + "logs:DescribeLogStreams",
              + "logs:PutLogEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:logs:*:*:*",
            ]
        }
      + statement {
          + actions   = [
              + "dynamodb:BatchWriteItem",
              + "dynamodb:DescribeTable",
              + "dynamodb:PutItem",
              + "dynamodb:Query",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "ec2:AttachNetworkInterface",
              + "ec2:CreateNetworkInterface",
              + "ec2:DeleteNetworkInterface",
              + "ec2:DescribeInstances",
              + "ec2:DescribeNetworkInterfaces",
            ]
          + effect    = "Allow"
          + resources = [
              + "*",
            ]
        }
    }

  # aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E will be updated in-place
  ~ resource "aws_dynamodb_table" "dynamodb_prospects_dynamodb_table_9854E41E" {
        id                          = "PROAPI-Dev-Prospects"
        name                        = "PROAPI-Dev-Prospects"
        tags                        = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (9 unchanged attributes hidden)

      - global_secondary_index {
          - hash_key           = "scheduledSurfaceGuid" -> null
          - name               = "scheduledSurfaceGuid-prospectType" -> null
          - non_key_attributes = [] -> null
          - projection_type    = "ALL" -> null
          - range_key          = "prospectType" -> null
          - read_capacity      = 0 -> null
          - write_capacity     = 0 -> null
        }
      + global_secondary_index {
          + hash_key           = "scheduledSurfaceGuid"
          + name               = "scheduledSurfaceGuid-prospectType"
          + non_key_attributes = []
          + projection_type    = "ALL"
          + range_key          = "prospectType"
          + read_capacity      = 5
          + write_capacity     = 5
        }

        # (5 unchanged blocks hidden)
    }

  # aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6 will be updated in-place
  ~ resource "aws_iam_policy" "application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6" {
        id        = "arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskRolePolicy"
        name      = "ProspectAPI-Dev-TaskRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Scan",
                          - "dynamodb:Query",
                          - "dynamodb:Get*",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchGet*",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
                        ]
                    },
                  - {
                      - Action   = "s3:*"
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:s3:::pocket-prospectapi-dev-images/*",
                          - "arn:aws:s3:::pocket-prospectapi-dev-images",
                        ]
                    },
                  - {
                      - Action   = "events:PutEvents"
                      - Effect   = "Allow"
                      - Resource = "arn:aws:events:us-east-1:410318598490:event-bus/PocketEventBridge-Dev-Shared-Event-Bus"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9 will be updated in-place
  ~ resource "aws_iam_policy" "translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9" {
        id        = "arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy"
        name      = "ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "logs:PutLogEvents",
                          - "logs:DescribeLogStreams",
                          - "logs:CreateLogStream",
                          - "logs:CreateLogGroup",
                        ]
                      - Effect   = "Allow"
                      - Resource = "arn:aws:logs:*:*:*"
                    },
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Query",
                          - "dynamodb:PutItem",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchWriteItem",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
                        ]
                    },
                  - {
                      - Action   = [
                          - "ec2:DescribeNetworkInterfaces",
                          - "ec2:DescribeInstances",
                          - "ec2:DeleteNetworkInterface",
                          - "ec2:CreateNetworkInterface",
                          - "ec2:AttachNetworkInterface",
                        ]
                      - Effect   = "Allow"
                      - Resource = "*"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A will be updated in-place
  ~ resource "aws_lambda_function" "bridge-lambda_bridge-sqs-lambda_343B543A" {
        id                             = "ProspectAPI-Dev-Sqs-Bridge-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:88" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:88/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "88" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                  = (sensitive value)
                # (5 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA will be updated in-place
  ~ resource "aws_lambda_function" "translation-lambda_translation-sqs-lambda_B9BDF6BA" {
        id                             = "ProspectAPI-Dev-Sqs-Translation-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:419" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:419/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "419" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                      = (sensitive value)
                # (3 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4026
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:410318598490:task-definition/ProspectAPI-Dev:167"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

Plan: 1 to add, 5 to change, 0 to destroy.
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Modifying... [id=ProspectAPI-Dev-Sqs-Bridge-Function]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifying... [id=PROAPI-Dev-Prospects]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifications complete after 0s [id=PROAPI-Dev-Prospects]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Read complete after 0s [id=3208558407]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=2997876322]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Modifying... [id=ProspectAPI-Dev-Sqs-Translation-Function]
local_file.application_ecs_service_appspec_94386B9C: Creating...
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 0s [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Modifications complete after 7s [id=ProspectAPI-Dev-Sqs-Translation-Function]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Modifications complete after 8s [id=ProspectAPI-Dev-Sqs-Bridge-Function]
Releasing state lock. This may take a few moments...

Apply complete! Resources: 1 added, 3 changed, 0 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (corpus-scheduler-lambda-cdk-dev)

CI link

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Details (Click me)
data.archive_file.corpus-scheduler-sqs-lambda_lambda-default-file_375743AB: Reading...
data.archive_file.corpus-scheduler-sqs-lambda_lambda-default-file_375743AB: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
aws_sqs_queue.corpus-scheduler-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_9399287C: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/CorpusSchedulerLambda-Dev-SQS-Queue-Deadletter]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Reading...
aws_codedeploy_app.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-app_B02FBF37: Refreshing state... [id=f9f7e66f-afd4-4d7c-8edd-b77037db3263:CorpusSchedulerLambda-Dev-SQS-Lambda]
aws_s3_bucket.corpus-scheduler-sqs-lambda_code-bucket_71B015CC: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_B26D37EC: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Reading...
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_sentry-dsn_CC90D271: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_B26D37EC: Read complete after 0s [id=4250039221]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Read complete after 0s [id=1349007126]
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
aws_iam_role.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-role_2D0E51C4: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-CodeDeployRole]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_sentry-dsn_CC90D271: Read complete after 0s [id=/CorpusSchedulerLambda/Dev/SENTRY_DSN]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Read complete after 0s [id=/CorpusSchedulerLambda/CircleCI/Dev/SERVICE_HASH]
aws_iam_role.corpus-scheduler-sqs-lambda_execution-role_EAF2C9FE: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Reading...
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Read complete after 0s [id=1462001592]
aws_sqs_queue.corpus-scheduler-sqs-lambda_lambda_sqs_queue_162ECA18: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/CorpusSchedulerLambda-Dev-SQS-Queue]
aws_iam_policy.corpus-scheduler-sqs-lambda_execution-policy_CF929AE3: Refreshing state... [id=arn:aws:iam::410318598490:policy/CorpusSchedulerLambda-Dev-SQS-ExecutionRolePolicy]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda_sqs_policy_4779D776: Reading...
data.aws_iam_policy_document.corpus-scheduler-ml-user-policy_iam_sqs_policy_2CE4E3DF: Reading...
data.aws_iam_policy_document.corpus-scheduler-ml-user-policy_iam_sqs_policy_2CE4E3DF: Read complete after 0s [id=3551034865]
aws_iam_policy.corpus-scheduler-ml-user-policy_iam-sqs-policy_867A1D82: Refreshing state... [id=arn:aws:iam::410318598490:policy/IAM-CorpusSchedulerLambda-Dev-QueuePolicy]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda_sqs_policy_4779D776: Read complete after 0s [id=1697900982]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_execution-role-policy-attachment_DCF8A6BE: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole-20240220232452100000000002]
aws_iam_policy.corpus-scheduler-sqs-lambda_sqs-policy_00D0B4DA: Refreshing state... [id=arn:aws:iam::410318598490:policy/CorpusSchedulerLambda-Dev-SQS-LambdaSQSPolicy]
aws_codedeploy_deployment_group.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deployment-group_E7DBB35A: Refreshing state... [id=21994191-ae12-480b-9ef2-fb2a996db344]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_13D4D586: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-CodeDeployRole-20240220232452076500000001]
aws_iam_user_policy_attachment.corpus-scheduler-ml-user-policy_iam-sqs-user-policy-attachment_22113AFF: Refreshing state... [id=ProspectAPI-Dev-Queue-User-20240223144911654200000001]
aws_s3_bucket_ownership_controls.corpus-scheduler-sqs-lambda_code-bucket-ownership-controls_F322EEAB: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
aws_s3_bucket_public_access_block.corpus-scheduler-sqs-lambda_code-bucket-public-access-block_0345DD5C: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_execution-role-policy-attachment_B0FC2816: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole-20240220232542515500000003]
aws_s3_bucket_acl.corpus-scheduler-sqs-lambda_code-bucket-acl_F4BEB234: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs,private]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 1s [id=vpc-012481e83ffa5e152]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-Function]
aws_lambda_alias.corpus-scheduler-sqs-lambda_alias_6B1DD07D: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:CorpusSchedulerLambda-Dev-SQS-Function:DEPLOYED]
aws_cloudwatch_log_group.corpus-scheduler-sqs-lambda_log-group_7AB14A32: Refreshing state... [id=/aws/lambda/CorpusSchedulerLambda-Dev-SQS-Function]
aws_lambda_event_source_mapping.corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E: Refreshing state... [id=c53637e5-9c12-41ef-aff6-333f924c76b4]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F will be updated in-place
  ~ resource "aws_lambda_function" "corpus-scheduler-sqs-lambda_F2ECDF9F" {
        id                             = "CorpusSchedulerLambda-Dev-SQS-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:410318598490:function:CorpusSchedulerLambda-Dev-SQS-Function:30" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:410318598490:function:CorpusSchedulerLambda-Dev-SQS-Function:30/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "CorpusSchedulerLambda"
        }
      ~ version                        = "30" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"     = (sensitive value)
                # (4 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Modifying... [id=CorpusSchedulerLambda-Dev-SQS-Function]
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Modifications complete after 9s [id=CorpusSchedulerLambda-Dev-SQS-Function]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (curated-corpus-api-cdk-dev)

CI link

Apply complete! Resources: 2 added, 2 changed, 1 destroyed.
Details (Click me)
data.terraform_remote_state.incident_management: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_region.region: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_sns_topic.backend_notifications: Reading...
data.aws_region.region: Read complete after 0s [id=us-east-1]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Read complete after 0s [id=2690255455]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=curatedcorpusapi-dev-app]
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Non-Critical]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:410318598490:Backend-Dev-ChatBot]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:cluster/CuratedCorpusAPI-Dev]
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=7851a14d-3264-41b8-b886-3db372a66c8d:CuratedCorpusAPI-Dev-ECS]
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:410318598490:certificate/aaaf769b-2ddb-4be0-9fc4-f8f8e61be6fc]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/CuratedCorpusAPI-Dev/ecs/app]
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
data.aws_caller_identity.caller: Reading...
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z00475383NZHMVB1WW0NT]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
data.aws_kms_alias.kms_alias: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=410318598490]
aws_s3_bucket.synthetics_synthetics_synthetic_check_artifacts_53DD59E6: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-checks]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Critical]
data.aws_kms_alias.kms_alias: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskRole]
aws_iam_role.synthetics_synthetic_check_role_A3A5C38B: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-check]
data.aws_vpc.pocket-vpc_2587E211: Reading...
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=CuratedCorpusAPI-Dev-ECSCodeDeployRole]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
data.terraform_remote_state.incident_management: Read complete after 0s
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=curatedcorpusapi-dev-app]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 0s [id=ZCSIDA846KWLN]
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:410318598490:notificationrule/363be7ebf8dde2bfaf8a5484ebc162c0b8477362]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=1192295146]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z00475383NZHMVB1WW0NT__cb56274a8f7b5e57ed9f02fb4f9870f5.curated-corpus-api.getpocket.dev._CNAME]
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=PU1YFEE]
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=PXAJGU4]
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=ZCSIDA846KWLN_curated-corpus-api.getpocket.dev_NS]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::410318598490:policy/CuratedCorpusAPI-Dev-TaskExecutionRolePolicy]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole-20230815040242653200000005]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=CuratedCorpusAPI-Dev-ECSCodeDeployRole-20230809163530958100000008]
aws_s3_bucket_ownership_controls.pocket-curatedcorpusapi-dev-images: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=3308323158]
aws_s3_bucket_public_access_block.pocket-curatedcorpusapi-dev-images: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
aws_s3_bucket_lifecycle_configuration.synthetics_synthetics_synthetic_check_artifacts_lifecycle_5A7B9150: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-checks]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_access_4C83FECF: Reading...
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_access_4C83FECF: Read complete after 0s [id=3607784743]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 1s [id=vpc-012481e83ffa5e152]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 1s [id=PKAPG94]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole-20230815040242652500000004]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2023-08-09 16:36:14.338 +0000 UTC]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::410318598490:policy/CuratedCorpusAPI-Dev-TaskRolePolicy]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
aws_iam_policy.synthetics_synthetics_synthetic_check_access_policy_9A7D8849: Refreshing state... [id=arn:aws:iam::410318598490:policy/pocket-curatedcorpusapi-dev-synthetic-check-access]
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 1s [id=vpc-012481e83ffa5e152]
data.aws_vpc.rds_vpc_9E5B9996: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 1s [id=PZQ6AUS]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-01c8b8e6531c36ca7]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/CCSAPI20230809163518158500000001/1056f89db83740bf]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/CCSAPI20230809163521767800000005/38232a0df3b5bf6e]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.synthetics_synthetics_synthetic_check_access_attach_BC7F9559: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-check-20230815165631476900000001]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=PNY17AH]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=P3PS694]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=P6LD6LU]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=PR7P8Q7]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskRole-20230815040242336200000003]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-087e2709603495b27]
aws_db_subnet_group.rds_rds_subnet_group_796D20B7: Refreshing state... [id=curatedcorpusapi-dev20210930155115552900000009]
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:loadbalancer/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3]
data.aws_vpc.rds_vpc_9E5B9996: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_query_0_99E4AE1B: Refreshing state... [id=ccsapi-dev-query-0]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_uptime_0_4168D0DB: Refreshing state... [id=ccsapi-dev-uptime-0]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Critical:62f5ba8b-eb87-496f-a17c-bcdfe204e1e8]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Non-Critical:04bb5095-809b-4999-97be-37b417fca8ad]
aws_security_group.rds_rds_security_group_B7738CEB: Refreshing state... [id=sg-01306e441cb0756f8]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Refreshing state... [id=ccsapi-dev-query-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Refreshing state... [id=ccsapi-dev-uptime-0]
aws_rds_cluster.rds_rds_cluster_1A0399FD: Refreshing state... [id=curatedcorpusapi-dev20211019211102971300000001]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/1bc93d64fe882b1f]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z00475383NZHMVB1WW0NT_curated-corpus-api.getpocket.dev_A_1]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/8ed37725ad0175d8]
aws_cloudwatch_metric_alarm.application_alarm-httpresponsetime_9124C30A: Refreshing state... [id=CuratedCorpusAPI-Dev-Alarm-HTTPResponseTime]
aws_secretsmanager_secret.rds_rds_secret_A0401B27: Refreshing state... [id=arn:aws:secretsmanager:us-east-1:410318598490:secret:CuratedCorpusAPI-Dev/curatedcorpusapi-dev20211019211102971300000001-CUoEYY]
aws_secretsmanager_secret_version.rds_rds_secret_version_11D8C2B1: Refreshing state... [id=arn:aws:secretsmanager:us-east-1:410318598490:secret:CuratedCorpusAPI-Dev/curatedcorpusapi-dev20211019211102971300000001-CUoEYY|B74BA76B-62EA-4C2A-83EB-1E85D8BEDE57]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=CuratedCorpusAPI-Dev]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=4fa3693b714299bf1f46da9ec82a044c7a706300]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Refreshing state... [id=2812910864126163476]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener-rule/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/8ed37725ad0175d8/e828822ff6e9ba9e]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:service/CuratedCorpusAPI-Dev/CuratedCorpusAPI-Dev]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/CuratedCorpusAPI-Dev/CuratedCorpusAPI-Dev]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=CuratedCorpusAPI-Dev]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=5ac8fe68-6182-40db-83c9-5e02807ddbdd]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=CuratedCorpusAPI-Dev-ScaleOutPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=CuratedCorpusAPI-Dev-ScaleInPolicy]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=CuratedCorpusAPI-Dev Service High CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=CuratedCorpusAPI-Dev Service Low CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21 will be updated in-place
  ~ resource "aws_cloudwatch_metric_alarm" "synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21" {
      ~ alarm_actions             = [
          + "",
        ]
        id                        = "ccsapi-dev-query-0"
      ~ ok_actions                = [
          + "",
        ]
        tags                      = {}
        # (16 unchanged attributes hidden)
    }

  # aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7 will be updated in-place
  ~ resource "aws_cloudwatch_metric_alarm" "synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7" {
      ~ alarm_actions             = [
          + "",
        ]
        id                        = "ccsapi-dev-uptime-0"
      ~ ok_actions                = [
          + "",
        ]
        tags                      = {}
        # (16 unchanged attributes hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4025
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:410318598490:task-definition/CuratedCorpusAPI-Dev:130"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

  # null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 must be replaced
-/+ resource "null_resource" "application_ecs_service_create-task-definition-file_6BADBAF7" {
      ~ id       = "2812910864126163476" -> (known after apply)
      ~ triggers = { # forces replacement
          ~ "alwaysRun" = "2024-03-06T19:34:04Z" -> (known after apply)
        }
    }

Plan: 2 to add, 2 to change, 1 to destroy.
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Destroying... [id=2812910864126163476]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Destruction complete after 0s
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creating...
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Provisioning with 'local-exec'...
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 (local-exec): Executing: ["/bin/sh" "-c" "aws --region us-east-1 ecs describe-task-definition --task-definition CuratedCorpusAPI-Dev --query 'taskDefinition' >> taskdef.json"]
local_file.application_ecs_service_appspec_94386B9C: Creating...
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Modifying... [id=ccsapi-dev-uptime-0]
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 1s [id=4fa3693b714299bf1f46da9ec82a044c7a706300]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Modifying... [id=ccsapi-dev-query-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Modifications complete after 0s [id=ccsapi-dev-query-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Modifications complete after 0s [id=ccsapi-dev-uptime-0]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creation complete after 1s [id=5087288169204488176]

Apply complete! Resources: 2 added, 2 changed, 1 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (prospect-api-cdk-dev)

CI link

Apply complete! Resources: 1 added, 1 changed, 0 destroyed.
Details (Click me)
data.terraform_remote_state.incident_management: Reading...
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Reading...
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Reading...
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
aws_codedeploy_app.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-app_32ED4D33: Refreshing state... [id=fbd00677-7dab-4a8f-815f-3302fc60fff4:ProspectAPI-Dev-Sqs-Bridge-Lambda]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Reading...
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Reading...
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_25D64172: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Translation-Queue-Deadletter]
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Read complete after 0s [id=arn:aws:firehose:us-east-1:410318598490:deliverystream/MetaflowTools-Dev-firehose]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Non-Critical]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=410318598490]
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Reading...
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-prospectapi-dev-images]
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Read complete after 0s [id=us-east-1]
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_sns_topic.backend_notifications: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Reading...
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Read complete after 0s [id=1349007126]
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Reading...
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Reading...
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:410318598490:Backend-Dev-ChatBot]
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z07747349K0HE9ZG8VFL]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Reading...
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Reading...
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Reading...
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Read complete after 0s [id=/Shared/Vpc]
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Read complete after 0s [id=410318598490]
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Critical]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Reading...
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Reading...
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Reading...
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_codedeploy_app.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-app_E422EADB: Refreshing state... [id=eade583b-0d01-404c-ae96-10b8f0995609:ProspectAPI-Dev-Sqs-Translation-Lambda]
data.aws_region.region: Reading...
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_region.region: Read complete after 0s [id=us-east-1]
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:cluster/ProspectAPI-Dev]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
aws_iam_user.bridge-lambda_iam_user_EB469160: Refreshing state... [id=ProspectAPI-Dev-Queue-User]
data.aws_caller_identity.caller: Reading...
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Reading...
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_E8DA1FF4: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Bridge-Queue-Deadletter]
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Read complete after 0s [id=4250039221]
aws_s3_bucket.translation-lambda_translation-sqs-lambda_code-bucket_8041EB81: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Refreshing state... [id=PROAPI-Dev-Prospects]
data.terraform_remote_state.incident_management: Read complete after 1s
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Reading...
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/ProspectAPI-Dev/ecs/app]
data.aws_kms_alias.kms_alias: Reading...
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=4ee018c2-d5c1-4bf8-b940-2f4894b7a04b:ProspectAPI-Dev-ECS]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Reading...
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=prospectapi-dev-app]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Read complete after 0s [id=4250039221]
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
aws_s3_bucket.bridge-lambda_bridge-sqs-lambda_code-bucket_8EFA52B9: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
data.aws_kms_alias.kms_alias: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Reading...
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 0s [id=ZCSIDA846KWLN]
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Read complete after 0s [id=1349007126]
aws_iam_role.bridge-lambda_bridge-sqs-lambda_execution-role_F8CF76A9: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole]
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_486217BD: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Translation-Queue]
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Read complete after 0s [id=us-east-1]
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:410318598490:certificate/8ad52ecf-43c6-4984-bf41-c9e997988fc5]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Reading...
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Reading...
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=ProspectAPI-Dev-TaskRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Read complete after 0s [id=335886075]
aws_iam_role.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-role_9208AEE5: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-CodeDeployRole]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=P8OH57E]
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=POL55K4]
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_26C8CFD1: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Bridge-Queue]
aws_iam_role.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-role_4D2F29B7: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-CodeDeployRole]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=492931643]
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=ZCSIDA846KWLN_prospect-api.getpocket.dev_NS]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 1s [id=vpc-012481e83ffa5e152]
aws_iam_role.translation-lambda_translation-sqs-lambda_execution-role_C2F15DF6: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole]
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Read complete after 1s [id=vpc-012481e83ffa5e152]
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 1s [id=vpc-012481e83ffa5e152]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Read complete after 1s [id=vpc-012481e83ffa5e152]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Read complete after 0s [id=1682749772]
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:410318598490:notificationrule/494587429c2f067bd47b7b93a56ac1fa94e36fe0]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=prospectapi-dev-app]
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z07747349K0HE9ZG8VFL__a1e0772270e0a8963c7058ba99a77c66.prospect-api.getpocket.dev._CNAME]
aws_s3_bucket_public_access_block.translation-lambda_translation-sqs-lambda_code-bucket-public-access-block_68EE0417: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
aws_s3_bucket_ownership_controls.translation-lambda_translation-sqs-lambda_code-bucket-ownership-controls_0A8BE3B3: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_execution-policy_C0CB0661: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-ExecutionRolePolicy]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole-20240106052911264600000007]
aws_s3_bucket_public_access_block.bridge-lambda_bridge-sqs-lambda_code-bucket-public-access-block_F15A60E0: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
aws_s3_bucket_ownership_controls.bridge-lambda_bridge-sqs-lambda_code-bucket-ownership-controls_1F0D6BBB: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=ProspectAPI-Dev]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole-20240106054532934900000001]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_88071B62: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-CodeDeployRole-20240106052910436000000006]
aws_codedeploy_deployment_group.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deployment-group_064B3F38: Refreshing state... [id=a63ddc0f-5a38-4b36-9688-dacbc2f9cf05]
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Reading...
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Read complete after 0s [id=3957006061]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 0s [id=PZQ6AUS]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Read complete after 0s [id=805730466]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskExecutionRolePolicy]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Reading...
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Reading...
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Reading...
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Read complete after 0s [id=us-east-1]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Reading...
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 0s [id=PKAPG94]
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Read complete after 0s [id=us-east-1]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Reading...
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Read complete after 0s [id=us-east-1]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskRolePolicy]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-06e3341d7c9c86ad0]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Read complete after 0s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 0s [id=us-east-1]
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Read complete after 0s [id=us-east-1]
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/PROAPI20240106052909644400000005/73dfe4c3e0c3e420]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_9040A119: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-CodeDeployRole-20240124234655772700000001]
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/PROAPI20240106052909482200000001/f83f684699ca6a2f]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 0s [id=us-east-1]
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Read complete after 0s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 0s [id=us-east-1]
aws_iam_policy.translation-lambda_translation-sqs-lambda_sqs-policy_1811B7AA: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-LambdaSQSPolicy]
aws_codedeploy_deployment_group.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deployment-group_BBEED2C6: Refreshing state... [id=8dc25499-e92c-4321-88a8-c5993845c46f]
aws_s3_bucket_acl.translation-lambda_translation-sqs-lambda_code-bucket-acl_51DA7819: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation,private]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_74C92A99: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole-20240124234655796600000002]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2024-01-06 05:29:56.201 +0000 UTC]
aws_iam_policy.bridge-lambda_iam-sqs-policy_08CAA544: Refreshing state... [id=arn:aws:iam::410318598490:policy/IAM-ProspectAPI-Dev-QueuePolicy]
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_sqs-policy_3397A47E: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-LambdaSQSPolicy]
aws_s3_bucket_acl.bridge-lambda_bridge-sqs-lambda_code-bucket-acl_8894DA8F: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge,private]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole-20240106054532944500000002]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=PRH2PMH]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=PVTQQC7]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-Function]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=PO7EPNU]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=P7YTOY4]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-Function]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=ProspectAPI-Dev-TaskRole-20240106054555810400000005]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9BEA8A61: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole-20240106054555793000000004]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-04bc98ecee646d4b1]
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:loadbalancer/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9054A7C3: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole-2024010605300009160000000a]
aws_iam_user_policy_attachment.bridge-lambda_iam-sqs-user-policy-attachment_2DD4C358: Refreshing state... [id=ProspectAPI-Dev-Queue-User-20240209181401408000000001]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_273DD1B7: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole-20240124234746737600000003]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Non-Critical:224e98c6-5606-427c-add7-44c0f0c09a4e]
aws_lambda_alias.bridge-lambda_bridge-sqs-lambda_alias_EC42B87F: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:DEPLOYED]
aws_cloudwatch_log_group.bridge-lambda_bridge-sqs-lambda_log-group_617CC958: Refreshing state... [id=/aws/lambda/ProspectAPI-Dev-Sqs-Bridge-Function]
aws_lambda_event_source_mapping.bridge-lambda_bridge-sqs-lambda_lambda_event_source_mapping_1EF01E53: Refreshing state... [id=cdd392e8-e7a3-4aa8-9792-25d85f4da0e1]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Critical:7785ae8f-3060-4a2a-81e1-577aa0a66f4f]
aws_lambda_alias.translation-lambda_translation-sqs-lambda_alias_10FF84BB: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:DEPLOYED]
aws_cloudwatch_log_group.translation-lambda_translation-sqs-lambda_log-group_CAF5915B: Refreshing state... [id=/aws/lambda/ProspectAPI-Dev-Sqs-Translation-Function]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z07747349K0HE9ZG8VFL_prospect-api.getpocket.dev_A_1]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/1b1a3d7eaec7bddf]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/8034a0109f8a2a3e]
aws_cloudwatch_metric_alarm.application_alarm-httptarget5xxerrorrate_F94D87C0: Refreshing state... [id=ProspectAPI-Dev-Alarm-HTTPTarget5xxErrorRate]
aws_lambda_event_source_mapping.translation-lambda_translation-sqs-lambda_lambda_event_source_mapping_49D092A6: Refreshing state... [id=b874d1a9-9d39-4b9c-bf38-db409e470b53]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener-rule/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/1b1a3d7eaec7bddf/dd49b8d8bf6e8dfe]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:service/ProspectAPI-Dev/ProspectAPI-Dev]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=ProspectAPI-Dev]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/ProspectAPI-Dev/ProspectAPI-Dev]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=30e83bf4-f2af-4aba-b187-4f7142a35559]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=ProspectAPI-Dev-ScaleOutPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=ProspectAPI-Dev-ScaleInPolicy]
null_resource.application_ecs_service_update-task-definition_D19A511D: Refreshing state... [id=1467228676312391832]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=ProspectAPI-Dev Service Low CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=ProspectAPI-Dev Service High CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
 <= read (data resources)

Terraform will perform the following actions:

  # data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "dynamodb:BatchGet*",
              + "dynamodb:DescribeTable",
              + "dynamodb:Get*",
              + "dynamodb:Query",
              + "dynamodb:Scan",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "s3:*",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:s3:::pocket-prospectapi-dev-images",
              + "arn:aws:s3:::pocket-prospectapi-dev-images/*",
            ]
        }
      + statement {
          + actions   = [
              + "events:PutEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:events:us-east-1:410318598490:event-bus/PocketEventBridge-Dev-Shared-Event-Bus",
            ]
        }
    }

  # data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "logs:CreateLogGroup",
              + "logs:CreateLogStream",
              + "logs:DescribeLogStreams",
              + "logs:PutLogEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:logs:*:*:*",
            ]
        }
      + statement {
          + actions   = [
              + "dynamodb:BatchWriteItem",
              + "dynamodb:DescribeTable",
              + "dynamodb:PutItem",
              + "dynamodb:Query",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "ec2:AttachNetworkInterface",
              + "ec2:CreateNetworkInterface",
              + "ec2:DeleteNetworkInterface",
              + "ec2:DescribeInstances",
              + "ec2:DescribeNetworkInterfaces",
            ]
          + effect    = "Allow"
          + resources = [
              + "*",
            ]
        }
    }

  # aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E will be updated in-place
  ~ resource "aws_dynamodb_table" "dynamodb_prospects_dynamodb_table_9854E41E" {
        id                          = "PROAPI-Dev-Prospects"
        name                        = "PROAPI-Dev-Prospects"
        tags                        = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (9 unchanged attributes hidden)

      - global_secondary_index {
          - hash_key           = "scheduledSurfaceGuid" -> null
          - name               = "scheduledSurfaceGuid-prospectType" -> null
          - non_key_attributes = [] -> null
          - projection_type    = "ALL" -> null
          - range_key          = "prospectType" -> null
          - read_capacity      = 0 -> null
          - write_capacity     = 0 -> null
        }
      + global_secondary_index {
          + hash_key           = "scheduledSurfaceGuid"
          + name               = "scheduledSurfaceGuid-prospectType"
          + non_key_attributes = []
          + projection_type    = "ALL"
          + range_key          = "prospectType"
          + read_capacity      = 5
          + write_capacity     = 5
        }

        # (5 unchanged blocks hidden)
    }

  # aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6 will be updated in-place
  ~ resource "aws_iam_policy" "application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6" {
        id        = "arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskRolePolicy"
        name      = "ProspectAPI-Dev-TaskRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Scan",
                          - "dynamodb:Query",
                          - "dynamodb:Get*",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchGet*",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
                        ]
                    },
                  - {
                      - Action   = "s3:*"
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:s3:::pocket-prospectapi-dev-images/*",
                          - "arn:aws:s3:::pocket-prospectapi-dev-images",
                        ]
                    },
                  - {
                      - Action   = "events:PutEvents"
                      - Effect   = "Allow"
                      - Resource = "arn:aws:events:us-east-1:410318598490:event-bus/PocketEventBridge-Dev-Shared-Event-Bus"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9 will be updated in-place
  ~ resource "aws_iam_policy" "translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9" {
        id        = "arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy"
        name      = "ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "logs:PutLogEvents",
                          - "logs:DescribeLogStreams",
                          - "logs:CreateLogStream",
                          - "logs:CreateLogGroup",
                        ]
                      - Effect   = "Allow"
                      - Resource = "arn:aws:logs:*:*:*"
                    },
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Query",
                          - "dynamodb:PutItem",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchWriteItem",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
                        ]
                    },
                  - {
                      - Action   = [
                          - "ec2:DescribeNetworkInterfaces",
                          - "ec2:DescribeInstances",
                          - "ec2:DeleteNetworkInterface",
                          - "ec2:CreateNetworkInterface",
                          - "ec2:AttachNetworkInterface",
                        ]
                      - Effect   = "Allow"
                      - Resource = "*"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4026
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:410318598490:task-definition/ProspectAPI-Dev:167"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

Plan: 1 to add, 3 to change, 0 to destroy.
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifying... [id=PROAPI-Dev-Prospects]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifications complete after 0s [id=PROAPI-Dev-Prospects]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=2997876322]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Read complete after 0s [id=3208558407]
local_file.application_ecs_service_appspec_94386B9C: Creating...
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 0s [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]

Apply complete! Resources: 1 added, 1 changed, 0 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (corpus-scheduler-lambda-cdk-dev)

CI link

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Details (Click me)
data.archive_file.corpus-scheduler-sqs-lambda_lambda-default-file_375743AB: Reading...
data.archive_file.corpus-scheduler-sqs-lambda_lambda-default-file_375743AB: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_sentry-dsn_CC90D271: Reading...
aws_s3_bucket.corpus-scheduler-sqs-lambda_code-bucket_71B015CC: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
aws_sqs_queue.corpus-scheduler-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_9399287C: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/CorpusSchedulerLambda-Dev-SQS-Queue-Deadletter]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_B26D37EC: Reading...
aws_codedeploy_app.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-app_B02FBF37: Refreshing state... [id=f9f7e66f-afd4-4d7c-8edd-b77037db3263:CorpusSchedulerLambda-Dev-SQS-Lambda]
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_B26D37EC: Read complete after 0s [id=4250039221]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 1s [id=410318598490]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Read complete after 0s [id=1349007126]
aws_iam_role.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-role_2D0E51C4: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-CodeDeployRole]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 1s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Read complete after 0s [id=/CorpusSchedulerLambda/CircleCI/Dev/SERVICE_HASH]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Reading...
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_sentry-dsn_CC90D271: Read complete after 1s [id=/CorpusSchedulerLambda/Dev/SENTRY_DSN]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 1s [id=/Shared/Vpc]
aws_iam_role.corpus-scheduler-sqs-lambda_execution-role_EAF2C9FE: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole]
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Read complete after 0s [id=1462001592]
aws_iam_policy.corpus-scheduler-sqs-lambda_execution-policy_CF929AE3: Refreshing state... [id=arn:aws:iam::410318598490:policy/CorpusSchedulerLambda-Dev-SQS-ExecutionRolePolicy]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 1s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_sqs_queue.corpus-scheduler-sqs-lambda_lambda_sqs_queue_162ECA18: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/CorpusSchedulerLambda-Dev-SQS-Queue]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_iam_policy_document.corpus-scheduler-ml-user-policy_iam_sqs_policy_2CE4E3DF: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda_sqs_policy_4779D776: Reading...
data.aws_iam_policy_document.corpus-scheduler-ml-user-policy_iam_sqs_policy_2CE4E3DF: Read complete after 0s [id=3551034865]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda_sqs_policy_4779D776: Read complete after 0s [id=1697900982]
aws_iam_policy.corpus-scheduler-ml-user-policy_iam-sqs-policy_867A1D82: Refreshing state... [id=arn:aws:iam::410318598490:policy/IAM-CorpusSchedulerLambda-Dev-QueuePolicy]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_execution-role-policy-attachment_DCF8A6BE: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole-20240220232452100000000002]
aws_iam_policy.corpus-scheduler-sqs-lambda_sqs-policy_00D0B4DA: Refreshing state... [id=arn:aws:iam::410318598490:policy/CorpusSchedulerLambda-Dev-SQS-LambdaSQSPolicy]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_13D4D586: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-CodeDeployRole-20240220232452076500000001]
aws_codedeploy_deployment_group.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deployment-group_E7DBB35A: Refreshing state... [id=21994191-ae12-480b-9ef2-fb2a996db344]
aws_iam_user_policy_attachment.corpus-scheduler-ml-user-policy_iam-sqs-user-policy-attachment_22113AFF: Refreshing state... [id=ProspectAPI-Dev-Queue-User-20240223144911654200000001]
aws_s3_bucket_public_access_block.corpus-scheduler-sqs-lambda_code-bucket-public-access-block_0345DD5C: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
aws_s3_bucket_ownership_controls.corpus-scheduler-sqs-lambda_code-bucket-ownership-controls_F322EEAB: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_execution-role-policy-attachment_B0FC2816: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole-20240220232542515500000003]
aws_s3_bucket_acl.corpus-scheduler-sqs-lambda_code-bucket-acl_F4BEB234: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs,private]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 0s [id=vpc-012481e83ffa5e152]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-Function]
aws_lambda_alias.corpus-scheduler-sqs-lambda_alias_6B1DD07D: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:CorpusSchedulerLambda-Dev-SQS-Function:DEPLOYED]
aws_cloudwatch_log_group.corpus-scheduler-sqs-lambda_log-group_7AB14A32: Refreshing state... [id=/aws/lambda/CorpusSchedulerLambda-Dev-SQS-Function]
aws_lambda_event_source_mapping.corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E: Refreshing state... [id=c53637e5-9c12-41ef-aff6-333f924c76b4]

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.

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (curated-corpus-api-cdk-dev)

CI link

Apply complete! Resources: 2 added, 2 changed, 1 destroyed.
Details (Click me)
data.terraform_remote_state.incident_management: Reading...
aws_s3_bucket.synthetics_synthetics_synthetic_check_artifacts_53DD59E6: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-checks]
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=curatedcorpusapi-dev-app]
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:410318598490:certificate/aaaf769b-2ddb-4be0-9fc4-f8f8e61be6fc]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_region.region: Reading...
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Non-Critical]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Read complete after 0s [id=2690255455]
data.aws_region.region: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Critical]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=410318598490]
data.aws_caller_identity.caller: Reading...
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:cluster/CuratedCorpusAPI-Dev]
data.aws_sns_topic.backend_notifications: Reading...
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:410318598490:Backend-Dev-ChatBot]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=7851a14d-3264-41b8-b886-3db372a66c8d:CuratedCorpusAPI-Dev-ECS]
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z00475383NZHMVB1WW0NT]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/CuratedCorpusAPI-Dev/ecs/app]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_kms_alias.kms_alias: Reading...
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_kms_alias.kms_alias: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
aws_iam_role.synthetics_synthetic_check_role_A3A5C38B: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-check]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskRole]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=curatedcorpusapi-dev-app]
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=CuratedCorpusAPI-Dev-ECSCodeDeployRole]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 0s [id=ZCSIDA846KWLN]
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:410318598490:notificationrule/363be7ebf8dde2bfaf8a5484ebc162c0b8477362]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=1192295146]
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z00475383NZHMVB1WW0NT__cb56274a8f7b5e57ed9f02fb4f9870f5.curated-corpus-api.getpocket.dev._CNAME]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_access_4C83FECF: Reading...
aws_s3_bucket_lifecycle_configuration.synthetics_synthetics_synthetic_check_artifacts_lifecycle_5A7B9150: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-checks]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_access_4C83FECF: Read complete after 0s [id=3607784743]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=ZCSIDA846KWLN_curated-corpus-api.getpocket.dev_NS]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole-20230815040242653200000005]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::410318598490:policy/CuratedCorpusAPI-Dev-TaskExecutionRolePolicy]
data.terraform_remote_state.incident_management: Read complete after 1s
aws_iam_policy.synthetics_synthetics_synthetic_check_access_policy_9A7D8849: Refreshing state... [id=arn:aws:iam::410318598490:policy/pocket-curatedcorpusapi-dev-synthetic-check-access]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=CuratedCorpusAPI-Dev-ECSCodeDeployRole-20230809163530958100000008]
aws_s3_bucket_public_access_block.pocket-curatedcorpusapi-dev-images: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
aws_s3_bucket_ownership_controls.pocket-curatedcorpusapi-dev-images: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=3308323158]
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=PU1YFEE]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2023-08-09 16:36:14.338 +0000 UTC]
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=PXAJGU4]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole-20230815040242652500000004]
aws_iam_role_policy_attachment.synthetics_synthetics_synthetic_check_access_attach_BC7F9559: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-check-20230815165631476900000001]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 1s [id=PKAPG94]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::410318598490:policy/CuratedCorpusAPI-Dev-TaskRolePolicy]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskRole-20230815040242336200000003]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 1s [id=PZQ6AUS]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 1s [id=vpc-012481e83ffa5e152]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_vpc.rds_vpc_9E5B9996: Reading...
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 1s [id=vpc-012481e83ffa5e152]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/CCSAPI20230809163521767800000005/38232a0df3b5bf6e]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-01c8b8e6531c36ca7]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/CCSAPI20230809163518158500000001/1056f89db83740bf]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=PNY17AH]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=P6LD6LU]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=P3PS694]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=PR7P8Q7]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
aws_db_subnet_group.rds_rds_subnet_group_796D20B7: Refreshing state... [id=curatedcorpusapi-dev20210930155115552900000009]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 0s [id=us-east-1]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_uptime_0_4168D0DB: Refreshing state... [id=ccsapi-dev-uptime-0]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_query_0_99E4AE1B: Refreshing state... [id=ccsapi-dev-query-0]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-087e2709603495b27]
data.aws_vpc.rds_vpc_9E5B9996: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:loadbalancer/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Non-Critical:04bb5095-809b-4999-97be-37b417fca8ad]
aws_security_group.rds_rds_security_group_B7738CEB: Refreshing state... [id=sg-01306e441cb0756f8]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Refreshing state... [id=ccsapi-dev-query-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Refreshing state... [id=ccsapi-dev-uptime-0]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Critical:62f5ba8b-eb87-496f-a17c-bcdfe204e1e8]
aws_rds_cluster.rds_rds_cluster_1A0399FD: Refreshing state... [id=curatedcorpusapi-dev20211019211102971300000001]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/1bc93d64fe882b1f]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z00475383NZHMVB1WW0NT_curated-corpus-api.getpocket.dev_A_1]
aws_cloudwatch_metric_alarm.application_alarm-httpresponsetime_9124C30A: Refreshing state... [id=CuratedCorpusAPI-Dev-Alarm-HTTPResponseTime]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/8ed37725ad0175d8]
aws_secretsmanager_secret.rds_rds_secret_A0401B27: Refreshing state... [id=arn:aws:secretsmanager:us-east-1:410318598490:secret:CuratedCorpusAPI-Dev/curatedcorpusapi-dev20211019211102971300000001-CUoEYY]
aws_secretsmanager_secret_version.rds_rds_secret_version_11D8C2B1: Refreshing state... [id=arn:aws:secretsmanager:us-east-1:410318598490:secret:CuratedCorpusAPI-Dev/curatedcorpusapi-dev20211019211102971300000001-CUoEYY|B74BA76B-62EA-4C2A-83EB-1E85D8BEDE57]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=CuratedCorpusAPI-Dev]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Refreshing state... [id=5087288169204488176]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=4fa3693b714299bf1f46da9ec82a044c7a706300]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener-rule/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/8ed37725ad0175d8/e828822ff6e9ba9e]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:service/CuratedCorpusAPI-Dev/CuratedCorpusAPI-Dev]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=CuratedCorpusAPI-Dev]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/CuratedCorpusAPI-Dev/CuratedCorpusAPI-Dev]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=5ac8fe68-6182-40db-83c9-5e02807ddbdd]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=CuratedCorpusAPI-Dev-ScaleInPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=CuratedCorpusAPI-Dev-ScaleOutPolicy]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=CuratedCorpusAPI-Dev Service Low CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=CuratedCorpusAPI-Dev Service High CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21 will be updated in-place
  ~ resource "aws_cloudwatch_metric_alarm" "synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21" {
      ~ alarm_actions             = [
          + "",
        ]
        id                        = "ccsapi-dev-query-0"
      ~ ok_actions                = [
          + "",
        ]
        tags                      = {}
        # (16 unchanged attributes hidden)
    }

  # aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7 will be updated in-place
  ~ resource "aws_cloudwatch_metric_alarm" "synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7" {
      ~ alarm_actions             = [
          + "",
        ]
        id                        = "ccsapi-dev-uptime-0"
      ~ ok_actions                = [
          + "",
        ]
        tags                      = {}
        # (16 unchanged attributes hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4025
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:410318598490:task-definition/CuratedCorpusAPI-Dev:130"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

  # null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 must be replaced
-/+ resource "null_resource" "application_ecs_service_create-task-definition-file_6BADBAF7" {
      ~ id       = "5087288169204488176" -> (known after apply)
      ~ triggers = { # forces replacement
          ~ "alwaysRun" = "2024-03-07T16:13:50Z" -> (known after apply)
        }
    }

Plan: 2 to add, 2 to change, 1 to destroy.
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Destroying... [id=5087288169204488176]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Destruction complete after 0s
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creating...
local_file.application_ecs_service_appspec_94386B9C: Creating...
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 0s [id=4fa3693b714299bf1f46da9ec82a044c7a706300]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Provisioning with 'local-exec'...
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 (local-exec): Executing: ["/bin/sh" "-c" "aws --region us-east-1 ecs describe-task-definition --task-definition CuratedCorpusAPI-Dev --query 'taskDefinition' >> taskdef.json"]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Modifying... [id=ccsapi-dev-uptime-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Modifying... [id=ccsapi-dev-query-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Modifications complete after 0s [id=ccsapi-dev-query-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Modifications complete after 0s [id=ccsapi-dev-uptime-0]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creation complete after 1s [id=1154650537654360530]
Releasing state lock. This may take a few moments...

Apply complete! Resources: 2 added, 2 changed, 1 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (corpus-scheduler-lambda-cdk-dev)

CI link

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Details (Click me)
data.archive_file.corpus-scheduler-sqs-lambda_lambda-default-file_375743AB: Reading...
data.archive_file.corpus-scheduler-sqs-lambda_lambda-default-file_375743AB: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Reading...
aws_codedeploy_app.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-app_B02FBF37: Refreshing state... [id=f9f7e66f-afd4-4d7c-8edd-b77037db3263:CorpusSchedulerLambda-Dev-SQS-Lambda]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_B26D37EC: Reading...
aws_sqs_queue.corpus-scheduler-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_9399287C: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/CorpusSchedulerLambda-Dev-SQS-Queue-Deadletter]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_sentry-dsn_CC90D271: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_B26D37EC: Read complete after 0s [id=4250039221]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
aws_s3_bucket.corpus-scheduler-sqs-lambda_code-bucket_71B015CC: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Read complete after 0s [id=1349007126]
aws_iam_role.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-role_2D0E51C4: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-CodeDeployRole]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_iam_role.corpus-scheduler-sqs-lambda_execution-role_EAF2C9FE: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Read complete after 0s [id=1462001592]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Read complete after 0s [id=/CorpusSchedulerLambda/CircleCI/Dev/SERVICE_HASH]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_sentry-dsn_CC90D271: Read complete after 0s [id=/CorpusSchedulerLambda/Dev/SENTRY_DSN]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
aws_iam_policy.corpus-scheduler-sqs-lambda_execution-policy_CF929AE3: Refreshing state... [id=arn:aws:iam::410318598490:policy/CorpusSchedulerLambda-Dev-SQS-ExecutionRolePolicy]
aws_sqs_queue.corpus-scheduler-sqs-lambda_lambda_sqs_queue_162ECA18: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/CorpusSchedulerLambda-Dev-SQS-Queue]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda_sqs_policy_4779D776: Reading...
data.aws_iam_policy_document.corpus-scheduler-ml-user-policy_iam_sqs_policy_2CE4E3DF: Reading...
data.aws_iam_policy_document.corpus-scheduler-ml-user-policy_iam_sqs_policy_2CE4E3DF: Read complete after 0s [id=3551034865]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda_sqs_policy_4779D776: Read complete after 0s [id=1697900982]
aws_iam_policy.corpus-scheduler-ml-user-policy_iam-sqs-policy_867A1D82: Refreshing state... [id=arn:aws:iam::410318598490:policy/IAM-CorpusSchedulerLambda-Dev-QueuePolicy]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_13D4D586: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-CodeDeployRole-20240220232452076500000001]
aws_codedeploy_deployment_group.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deployment-group_E7DBB35A: Refreshing state... [id=21994191-ae12-480b-9ef2-fb2a996db344]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_execution-role-policy-attachment_DCF8A6BE: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole-20240220232452100000000002]
aws_iam_policy.corpus-scheduler-sqs-lambda_sqs-policy_00D0B4DA: Refreshing state... [id=arn:aws:iam::410318598490:policy/CorpusSchedulerLambda-Dev-SQS-LambdaSQSPolicy]
aws_iam_user_policy_attachment.corpus-scheduler-ml-user-policy_iam-sqs-user-policy-attachment_22113AFF: Refreshing state... [id=ProspectAPI-Dev-Queue-User-20240223144911654200000001]
aws_s3_bucket_public_access_block.corpus-scheduler-sqs-lambda_code-bucket-public-access-block_0345DD5C: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
aws_s3_bucket_ownership_controls.corpus-scheduler-sqs-lambda_code-bucket-ownership-controls_F322EEAB: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_execution-role-policy-attachment_B0FC2816: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole-20240220232542515500000003]
aws_s3_bucket_acl.corpus-scheduler-sqs-lambda_code-bucket-acl_F4BEB234: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs,private]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 0s [id=vpc-012481e83ffa5e152]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-Function]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
aws_cloudwatch_log_group.corpus-scheduler-sqs-lambda_log-group_7AB14A32: Refreshing state... [id=/aws/lambda/CorpusSchedulerLambda-Dev-SQS-Function]
aws_lambda_alias.corpus-scheduler-sqs-lambda_alias_6B1DD07D: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:CorpusSchedulerLambda-Dev-SQS-Function:DEPLOYED]
aws_lambda_event_source_mapping.corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E: Refreshing state... [id=c53637e5-9c12-41ef-aff6-333f924c76b4]

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.

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (curated-corpus-api-cdk-dev)

CI link

Apply complete! Resources: 2 added, 2 changed, 1 destroyed.
Details (Click me)
data.terraform_remote_state.incident_management: Reading...
data.terraform_remote_state.incident_management: Read complete after 0s
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/CuratedCorpusAPI-Dev/ecs/app]
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=7851a14d-3264-41b8-b886-3db372a66c8d:CuratedCorpusAPI-Dev-ECS]
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Reading...
data.aws_kms_alias.kms_alias: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Read complete after 0s [id=2690255455]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_caller_identity.caller: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_region.region: Reading...
data.aws_region.region: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=curatedcorpusapi-dev-app]
data.aws_kms_alias.kms_alias: Read complete after 1s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_s3_bucket.synthetics_synthetics_synthetic_check_artifacts_53DD59E6: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-checks]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 1s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:410318598490:certificate/aaaf769b-2ddb-4be0-9fc4-f8f8e61be6fc]
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:cluster/CuratedCorpusAPI-Dev]
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Non-Critical]
data.aws_sns_topic.backend_notifications: Reading...
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z00475383NZHMVB1WW0NT]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Critical]
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:410318598490:Backend-Dev-ChatBot]
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=CuratedCorpusAPI-Dev-ECSCodeDeployRole]
aws_iam_role.synthetics_synthetic_check_role_A3A5C38B: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-check]
data.aws_vpc.pocket-vpc_2587E211: Reading...
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=PXAJGU4]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=PU1YFEE]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 1s [id=ZCSIDA846KWLN]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=1192295146]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskRole]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:410318598490:notificationrule/363be7ebf8dde2bfaf8a5484ebc162c0b8477362]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=curatedcorpusapi-dev-app]
aws_s3_bucket_public_access_block.pocket-curatedcorpusapi-dev-images: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
aws_s3_bucket_ownership_controls.pocket-curatedcorpusapi-dev-images: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=3308323158]
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z00475383NZHMVB1WW0NT__cb56274a8f7b5e57ed9f02fb4f9870f5.curated-corpus-api.getpocket.dev._CNAME]
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=ZCSIDA846KWLN_curated-corpus-api.getpocket.dev_NS]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::410318598490:policy/CuratedCorpusAPI-Dev-TaskExecutionRolePolicy]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=CuratedCorpusAPI-Dev-ECSCodeDeployRole-20230809163530958100000008]
aws_s3_bucket_lifecycle_configuration.synthetics_synthetics_synthetic_check_artifacts_lifecycle_5A7B9150: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-checks]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_access_4C83FECF: Reading...
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_access_4C83FECF: Read complete after 0s [id=3607784743]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::410318598490:policy/CuratedCorpusAPI-Dev-TaskRolePolicy]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole-20230815040242653200000005]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 0s [id=PZQ6AUS]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2023-08-09 16:36:14.338 +0000 UTC]
aws_iam_policy.synthetics_synthetics_synthetic_check_access_policy_9A7D8849: Refreshing state... [id=arn:aws:iam::410318598490:policy/pocket-curatedcorpusapi-dev-synthetic-check-access]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 0s [id=vpc-012481e83ffa5e152]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=P3PS694]
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole-20230815040242652500000004]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 0s [id=PKAPG94]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_vpc.rds_vpc_9E5B9996: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-01c8b8e6531c36ca7]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/CCSAPI20230809163518158500000001/1056f89db83740bf]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/CCSAPI20230809163521767800000005/38232a0df3b5bf6e]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=PR7P8Q7]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=P6LD6LU]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=PNY17AH]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.synthetics_synthetics_synthetic_check_access_attach_BC7F9559: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-check-20230815165631476900000001]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskRole-20230815040242336200000003]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Critical:62f5ba8b-eb87-496f-a17c-bcdfe204e1e8]
aws_db_subnet_group.rds_rds_subnet_group_796D20B7: Refreshing state... [id=curatedcorpusapi-dev20210930155115552900000009]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 1s [id=us-east-1]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-087e2709603495b27]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_uptime_0_4168D0DB: Refreshing state... [id=ccsapi-dev-uptime-0]
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:loadbalancer/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_query_0_99E4AE1B: Refreshing state... [id=ccsapi-dev-query-0]
data.aws_vpc.rds_vpc_9E5B9996: Read complete after 1s [id=vpc-012481e83ffa5e152]
aws_security_group.rds_rds_security_group_B7738CEB: Refreshing state... [id=sg-01306e441cb0756f8]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Refreshing state... [id=ccsapi-dev-query-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Refreshing state... [id=ccsapi-dev-uptime-0]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Non-Critical:04bb5095-809b-4999-97be-37b417fca8ad]
aws_rds_cluster.rds_rds_cluster_1A0399FD: Refreshing state... [id=curatedcorpusapi-dev20211019211102971300000001]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z00475383NZHMVB1WW0NT_curated-corpus-api.getpocket.dev_A_1]
aws_cloudwatch_metric_alarm.application_alarm-httpresponsetime_9124C30A: Refreshing state... [id=CuratedCorpusAPI-Dev-Alarm-HTTPResponseTime]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/1bc93d64fe882b1f]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/8ed37725ad0175d8]
aws_secretsmanager_secret.rds_rds_secret_A0401B27: Refreshing state... [id=arn:aws:secretsmanager:us-east-1:410318598490:secret:CuratedCorpusAPI-Dev/curatedcorpusapi-dev20211019211102971300000001-CUoEYY]
aws_secretsmanager_secret_version.rds_rds_secret_version_11D8C2B1: Refreshing state... [id=arn:aws:secretsmanager:us-east-1:410318598490:secret:CuratedCorpusAPI-Dev/curatedcorpusapi-dev20211019211102971300000001-CUoEYY|B74BA76B-62EA-4C2A-83EB-1E85D8BEDE57]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=CuratedCorpusAPI-Dev]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Refreshing state... [id=1154650537654360530]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=4fa3693b714299bf1f46da9ec82a044c7a706300]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener-rule/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/8ed37725ad0175d8/e828822ff6e9ba9e]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:service/CuratedCorpusAPI-Dev/CuratedCorpusAPI-Dev]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/CuratedCorpusAPI-Dev/CuratedCorpusAPI-Dev]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=CuratedCorpusAPI-Dev]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=5ac8fe68-6182-40db-83c9-5e02807ddbdd]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=CuratedCorpusAPI-Dev-ScaleOutPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=CuratedCorpusAPI-Dev-ScaleInPolicy]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=CuratedCorpusAPI-Dev Service High CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=CuratedCorpusAPI-Dev Service Low CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21 will be updated in-place
  ~ resource "aws_cloudwatch_metric_alarm" "synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21" {
      ~ alarm_actions             = [
          + "",
        ]
        id                        = "ccsapi-dev-query-0"
      ~ ok_actions                = [
          + "",
        ]
        tags                      = {}
        # (16 unchanged attributes hidden)
    }

  # aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7 will be updated in-place
  ~ resource "aws_cloudwatch_metric_alarm" "synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7" {
      ~ alarm_actions             = [
          + "",
        ]
        id                        = "ccsapi-dev-uptime-0"
      ~ ok_actions                = [
          + "",
        ]
        tags                      = {}
        # (16 unchanged attributes hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4025
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:410318598490:task-definition/CuratedCorpusAPI-Dev:130"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

  # null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 must be replaced
-/+ resource "null_resource" "application_ecs_service_create-task-definition-file_6BADBAF7" {
      ~ id       = "1154650537654360530" -> (known after apply)
      ~ triggers = { # forces replacement
          ~ "alwaysRun" = "2024-03-07T16:28:44Z" -> (known after apply)
        }
    }

Plan: 2 to add, 2 to change, 1 to destroy.
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Destroying... [id=1154650537654360530]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Destruction complete after 0s
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creating...
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Provisioning with 'local-exec'...
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 (local-exec): Executing: ["/bin/sh" "-c" "aws --region us-east-1 ecs describe-task-definition --task-definition CuratedCorpusAPI-Dev --query 'taskDefinition' >> taskdef.json"]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Modifying... [id=ccsapi-dev-query-0]
local_file.application_ecs_service_appspec_94386B9C: Creating...
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 0s [id=4fa3693b714299bf1f46da9ec82a044c7a706300]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Modifying... [id=ccsapi-dev-uptime-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Modifications complete after 0s [id=ccsapi-dev-uptime-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Modifications complete after 0s [id=ccsapi-dev-query-0]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creation complete after 1s [id=3708511685686235605]
Releasing state lock. This may take a few moments...

Apply complete! Resources: 2 added, 2 changed, 1 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (prospect-api-cdk-dev)

CI link

Apply complete! Resources: 1 added, 3 changed, 0 destroyed.
Details (Click me)
data.terraform_remote_state.incident_management: Reading...
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Reading...
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Reading...
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Reading...
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Reading...
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:cluster/ProspectAPI-Dev]
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=4ee018c2-d5c1-4bf8-b940-2f4894b7a04b:ProspectAPI-Dev-ECS]
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Read complete after 0s [id=us-east-1]
data.aws_kms_alias.kms_alias: Reading...
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Reading...
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Reading...
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_kms_alias.kms_alias: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Read complete after 0s [id=410318598490]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Read complete after 0s [id=4250039221]
aws_s3_bucket.bridge-lambda_bridge-sqs-lambda_code-bucket_8EFA52B9: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Refreshing state... [id=PROAPI-Dev-Prospects]
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Reading...
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Read complete after 0s [id=us-east-1]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Reading...
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Read complete after 0s [id=arn:aws:firehose:us-east-1:410318598490:deliverystream/MetaflowTools-Dev-firehose]
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Non-Critical]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Read complete after 0s [id=1349007126]
data.aws_region.region: Reading...
data.aws_region.region: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_sns_topic.backend_notifications: Reading...
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:410318598490:Backend-Dev-ChatBot]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Reading...
aws_codedeploy_app.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-app_32ED4D33: Refreshing state... [id=fbd00677-7dab-4a8f-815f-3302fc60fff4:ProspectAPI-Dev-Sqs-Bridge-Lambda]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Read complete after 0s [id=4250039221]
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_25D64172: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Translation-Queue-Deadletter]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z07747349K0HE9ZG8VFL]
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/ProspectAPI-Dev/ecs/app]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Read complete after 0s [id=/Shared/Vpc]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 0s [id=ZCSIDA846KWLN]
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:410318598490:certificate/8ad52ecf-43c6-4984-bf41-c9e997988fc5]
data.terraform_remote_state.incident_management: Read complete after 0s
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Reading...
aws_s3_bucket.translation-lambda_translation-sqs-lambda_code-bucket_8041EB81: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Reading...
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Read complete after 0s [id=410318598490]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Read complete after 1s [id=/Shared/Vpc]
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Reading...
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-prospectapi-dev-images]
data.aws_caller_identity.caller: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=410318598490]
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Read complete after 0s [id=1349007126]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Critical]
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_E8DA1FF4: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Bridge-Queue-Deadletter]
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=prospectapi-dev-app]
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
aws_codedeploy_app.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-app_E422EADB: Refreshing state... [id=eade583b-0d01-404c-ae96-10b8f0995609:ProspectAPI-Dev-Sqs-Translation-Lambda]
aws_iam_user.bridge-lambda_iam_user_EB469160: Refreshing state... [id=ProspectAPI-Dev-Queue-User]
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole]
aws_iam_role.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-role_4D2F29B7: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-CodeDeployRole]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=ProspectAPI-Dev-TaskRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
aws_iam_role.translation-lambda_translation-sqs-lambda_execution-role_C2F15DF6: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Reading...
aws_iam_role.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-role_9208AEE5: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-CodeDeployRole]
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=P8OH57E]
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=POL55K4]
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_486217BD: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Translation-Queue]
aws_s3_bucket_ownership_controls.bridge-lambda_bridge-sqs-lambda_code-bucket-ownership-controls_1F0D6BBB: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
aws_s3_bucket_public_access_block.bridge-lambda_bridge-sqs-lambda_code-bucket-public-access-block_F15A60E0: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Reading...
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=ZCSIDA846KWLN_prospect-api.getpocket.dev_NS]
aws_iam_role.bridge-lambda_bridge-sqs-lambda_execution-role_F8CF76A9: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole]
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:410318598490:notificationrule/494587429c2f067bd47b7b93a56ac1fa94e36fe0]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 0s [id=PZQ6AUS]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Read complete after 0s [id=335886075]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_26C8CFD1: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Bridge-Queue]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=492931643]
data.aws_vpc.pocket-vpc_2587E211: Reading...
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z07747349K0HE9ZG8VFL__a1e0772270e0a8963c7058ba99a77c66.prospect-api.getpocket.dev._CNAME]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=prospectapi-dev-app]
aws_s3_bucket_public_access_block.translation-lambda_translation-sqs-lambda_code-bucket-public-access-block_68EE0417: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
aws_s3_bucket_ownership_controls.translation-lambda_translation-sqs-lambda_code-bucket-ownership-controls_0A8BE3B3: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole-20240106054532934900000001]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole-20240106052911264600000007]
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy]
aws_codedeploy_deployment_group.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deployment-group_BBEED2C6: Refreshing state... [id=8dc25499-e92c-4321-88a8-c5993845c46f]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Read complete after 0s [id=vpc-012481e83ffa5e152]
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Read complete after 0s [id=vpc-012481e83ffa5e152]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 0s [id=PKAPG94]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Reading...
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_9040A119: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-CodeDeployRole-20240124234655772700000001]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=ProspectAPI-Dev]
aws_s3_bucket_acl.bridge-lambda_bridge-sqs-lambda_code-bucket-acl_8894DA8F: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge,private]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_88071B62: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-CodeDeployRole-20240106052910436000000006]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Read complete after 0s [id=1682749772]
aws_codedeploy_deployment_group.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deployment-group_064B3F38: Refreshing state... [id=a63ddc0f-5a38-4b36-9688-dacbc2f9cf05]
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_execution-policy_C0CB0661: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-ExecutionRolePolicy]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskExecutionRolePolicy]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Read complete after 0s [id=805730466]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Reading...
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Read complete after 0s [id=3957006061]
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/PROAPI20240106052909644400000005/73dfe4c3e0c3e420]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/PROAPI20240106052909482200000001/f83f684699ca6a2f]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-06e3341d7c9c86ad0]
aws_s3_bucket_acl.translation-lambda_translation-sqs-lambda_code-bucket-acl_51DA7819: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation,private]
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Reading...
data.aws_vpc.pocket-vpc_2587E211: Read complete after 0s [id=vpc-012481e83ffa5e152]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 1s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 1s [id=us-east-1]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Reading...
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 1s [id=us-east-1]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Reading...
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Reading...
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Reading...
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2024-01-06 05:29:56.201 +0000 UTC]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Reading...
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Reading...
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Read complete after 1s [id=us-east-1]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Read complete after 0s [id=us-east-1]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Reading...
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Read complete after 0s [id=us-east-1]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Read complete after 0s [id=us-east-1]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskRolePolicy]
aws_iam_policy.translation-lambda_translation-sqs-lambda_sqs-policy_1811B7AA: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-LambdaSQSPolicy]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Read complete after 0s [id=us-east-1]
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Read complete after 0s [id=us-east-1]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9BEA8A61: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole-20240106054555793000000004]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=PO7EPNU]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=PRH2PMH]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=P7YTOY4]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=PVTQQC7]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_sqs-policy_3397A47E: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-LambdaSQSPolicy]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Read complete after 0s [id=us-east-1]
aws_iam_policy.bridge-lambda_iam-sqs-policy_08CAA544: Refreshing state... [id=arn:aws:iam::410318598490:policy/IAM-ProspectAPI-Dev-QueuePolicy]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_74C92A99: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole-20240124234655796600000002]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole-20240106054532944500000002]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:loadbalancer/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-04bc98ecee646d4b1]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-Function]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-Function]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9054A7C3: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole-2024010605300009160000000a]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=ProspectAPI-Dev-TaskRole-20240106054555810400000005]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Critical:7785ae8f-3060-4a2a-81e1-577aa0a66f4f]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_273DD1B7: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole-20240124234746737600000003]
aws_iam_user_policy_attachment.bridge-lambda_iam-sqs-user-policy-attachment_2DD4C358: Refreshing state... [id=ProspectAPI-Dev-Queue-User-20240209181401408000000001]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Non-Critical:224e98c6-5606-427c-add7-44c0f0c09a4e]
aws_lambda_alias.translation-lambda_translation-sqs-lambda_alias_10FF84BB: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:DEPLOYED]
aws_cloudwatch_log_group.translation-lambda_translation-sqs-lambda_log-group_CAF5915B: Refreshing state... [id=/aws/lambda/ProspectAPI-Dev-Sqs-Translation-Function]
aws_lambda_alias.bridge-lambda_bridge-sqs-lambda_alias_EC42B87F: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:DEPLOYED]
aws_cloudwatch_log_group.bridge-lambda_bridge-sqs-lambda_log-group_617CC958: Refreshing state... [id=/aws/lambda/ProspectAPI-Dev-Sqs-Bridge-Function]
aws_lambda_event_source_mapping.translation-lambda_translation-sqs-lambda_lambda_event_source_mapping_49D092A6: Refreshing state... [id=b874d1a9-9d39-4b9c-bf38-db409e470b53]
aws_lambda_event_source_mapping.bridge-lambda_bridge-sqs-lambda_lambda_event_source_mapping_1EF01E53: Refreshing state... [id=cdd392e8-e7a3-4aa8-9792-25d85f4da0e1]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/8034a0109f8a2a3e]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z07747349K0HE9ZG8VFL_prospect-api.getpocket.dev_A_1]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/1b1a3d7eaec7bddf]
aws_cloudwatch_metric_alarm.application_alarm-httptarget5xxerrorrate_F94D87C0: Refreshing state... [id=ProspectAPI-Dev-Alarm-HTTPTarget5xxErrorRate]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener-rule/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/1b1a3d7eaec7bddf/dd49b8d8bf6e8dfe]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:service/ProspectAPI-Dev/ProspectAPI-Dev]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=ProspectAPI-Dev]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/ProspectAPI-Dev/ProspectAPI-Dev]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=30e83bf4-f2af-4aba-b187-4f7142a35559]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=ProspectAPI-Dev-ScaleOutPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=ProspectAPI-Dev-ScaleInPolicy]
null_resource.application_ecs_service_update-task-definition_D19A511D: Refreshing state... [id=1467228676312391832]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=ProspectAPI-Dev Service High CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=ProspectAPI-Dev Service Low CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
 <= read (data resources)

Terraform will perform the following actions:

  # data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "dynamodb:BatchGet*",
              + "dynamodb:DescribeTable",
              + "dynamodb:Get*",
              + "dynamodb:Query",
              + "dynamodb:Scan",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "s3:*",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:s3:::pocket-prospectapi-dev-images",
              + "arn:aws:s3:::pocket-prospectapi-dev-images/*",
            ]
        }
      + statement {
          + actions   = [
              + "events:PutEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:events:us-east-1:410318598490:event-bus/PocketEventBridge-Dev-Shared-Event-Bus",
            ]
        }
    }

  # data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "logs:CreateLogGroup",
              + "logs:CreateLogStream",
              + "logs:DescribeLogStreams",
              + "logs:PutLogEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:logs:*:*:*",
            ]
        }
      + statement {
          + actions   = [
              + "dynamodb:BatchWriteItem",
              + "dynamodb:DescribeTable",
              + "dynamodb:PutItem",
              + "dynamodb:Query",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "ec2:AttachNetworkInterface",
              + "ec2:CreateNetworkInterface",
              + "ec2:DeleteNetworkInterface",
              + "ec2:DescribeInstances",
              + "ec2:DescribeNetworkInterfaces",
            ]
          + effect    = "Allow"
          + resources = [
              + "*",
            ]
        }
    }

  # aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E will be updated in-place
  ~ resource "aws_dynamodb_table" "dynamodb_prospects_dynamodb_table_9854E41E" {
        id                          = "PROAPI-Dev-Prospects"
        name                        = "PROAPI-Dev-Prospects"
        tags                        = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (9 unchanged attributes hidden)

      - global_secondary_index {
          - hash_key           = "scheduledSurfaceGuid" -> null
          - name               = "scheduledSurfaceGuid-prospectType" -> null
          - non_key_attributes = [] -> null
          - projection_type    = "ALL" -> null
          - range_key          = "prospectType" -> null
          - read_capacity      = 0 -> null
          - write_capacity     = 0 -> null
        }
      + global_secondary_index {
          + hash_key           = "scheduledSurfaceGuid"
          + name               = "scheduledSurfaceGuid-prospectType"
          + non_key_attributes = []
          + projection_type    = "ALL"
          + range_key          = "prospectType"
          + read_capacity      = 5
          + write_capacity     = 5
        }

        # (5 unchanged blocks hidden)
    }

  # aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6 will be updated in-place
  ~ resource "aws_iam_policy" "application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6" {
        id        = "arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskRolePolicy"
        name      = "ProspectAPI-Dev-TaskRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Scan",
                          - "dynamodb:Query",
                          - "dynamodb:Get*",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchGet*",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
                        ]
                    },
                  - {
                      - Action   = "s3:*"
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:s3:::pocket-prospectapi-dev-images/*",
                          - "arn:aws:s3:::pocket-prospectapi-dev-images",
                        ]
                    },
                  - {
                      - Action   = "events:PutEvents"
                      - Effect   = "Allow"
                      - Resource = "arn:aws:events:us-east-1:410318598490:event-bus/PocketEventBridge-Dev-Shared-Event-Bus"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9 will be updated in-place
  ~ resource "aws_iam_policy" "translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9" {
        id        = "arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy"
        name      = "ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "logs:PutLogEvents",
                          - "logs:DescribeLogStreams",
                          - "logs:CreateLogStream",
                          - "logs:CreateLogGroup",
                        ]
                      - Effect   = "Allow"
                      - Resource = "arn:aws:logs:*:*:*"
                    },
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Query",
                          - "dynamodb:PutItem",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchWriteItem",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
                        ]
                    },
                  - {
                      - Action   = [
                          - "ec2:DescribeNetworkInterfaces",
                          - "ec2:DescribeInstances",
                          - "ec2:DeleteNetworkInterface",
                          - "ec2:CreateNetworkInterface",
                          - "ec2:AttachNetworkInterface",
                        ]
                      - Effect   = "Allow"
                      - Resource = "*"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A will be updated in-place
  ~ resource "aws_lambda_function" "bridge-lambda_bridge-sqs-lambda_343B543A" {
        id                             = "ProspectAPI-Dev-Sqs-Bridge-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:91" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:91/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "91" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                  = (sensitive value)
                # (5 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA will be updated in-place
  ~ resource "aws_lambda_function" "translation-lambda_translation-sqs-lambda_B9BDF6BA" {
        id                             = "ProspectAPI-Dev-Sqs-Translation-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:422" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:422/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "422" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                      = (sensitive value)
                # (3 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4026
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:410318598490:task-definition/ProspectAPI-Dev:167"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

Plan: 1 to add, 5 to change, 0 to destroy.
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Modifying... [id=ProspectAPI-Dev-Sqs-Bridge-Function]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifying... [id=PROAPI-Dev-Prospects]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifications complete after 0s [id=PROAPI-Dev-Prospects]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
local_file.application_ecs_service_appspec_94386B9C: Creating...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=2997876322]
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 0s [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Read complete after 0s [id=3208558407]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Modifying... [id=ProspectAPI-Dev-Sqs-Translation-Function]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Modifications complete after 8s [id=ProspectAPI-Dev-Sqs-Translation-Function]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Modifications complete after 8s [id=ProspectAPI-Dev-Sqs-Bridge-Function]

Apply complete! Resources: 1 added, 3 changed, 0 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (prospect-api-cdk-dev)

CI link

Apply complete! Resources: 1 added, 1 changed, 0 destroyed.
Details (Click me)
data.terraform_remote_state.incident_management: Reading...
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Reading...
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Reading...
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Non-Critical]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Critical]
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Reading...
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Reading...
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/ProspectAPI-Dev/ecs/app]
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Reading...
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Read complete after 0s [id=410318598490]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Read complete after 0s [id=4250039221]
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Read complete after 0s [id=arn:aws:firehose:us-east-1:410318598490:deliverystream/MetaflowTools-Dev-firehose]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-prospectapi-dev-images]
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Reading...
aws_codedeploy_app.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-app_E422EADB: Refreshing state... [id=eade583b-0d01-404c-ae96-10b8f0995609:ProspectAPI-Dev-Sqs-Translation-Lambda]
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Reading...
aws_s3_bucket.bridge-lambda_bridge-sqs-lambda_code-bucket_8EFA52B9: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Reading...
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:cluster/ProspectAPI-Dev]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Read complete after 0s [id=4250039221]
aws_codedeploy_app.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-app_32ED4D33: Refreshing state... [id=fbd00677-7dab-4a8f-815f-3302fc60fff4:ProspectAPI-Dev-Sqs-Bridge-Lambda]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Reading...
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Read complete after 0s [id=/Shared/Vpc]
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Reading...
data.aws_sns_topic.backend_notifications: Reading...
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Read complete after 0s [id=us-east-1]
aws_iam_user.bridge-lambda_iam_user_EB469160: Refreshing state... [id=ProspectAPI-Dev-Queue-User]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Read complete after 0s [id=/Shared/Vpc]
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:410318598490:Backend-Dev-ChatBot]
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_25D64172: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Translation-Queue-Deadletter]
data.aws_caller_identity.caller: Reading...
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
aws_s3_bucket.translation-lambda_translation-sqs-lambda_code-bucket_8041EB81: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z07747349K0HE9ZG8VFL]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Reading...
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Reading...
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Reading...
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Read complete after 1s [id=/ProspectAPI/Dev/SENTRY_DSN]
data.aws_region.region: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Read complete after 1s [id=/Shared/PublicSubnets]
data.aws_region.region: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Reading...
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_E8DA1FF4: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Bridge-Queue-Deadletter]
data.aws_kms_alias.kms_alias: Reading...
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Read complete after 0s [id=410318598490]
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=4ee018c2-d5c1-4bf8-b940-2f4894b7a04b:ProspectAPI-Dev-ECS]
data.aws_kms_alias.kms_alias: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=410318598490]
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Reading...
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:410318598490:certificate/8ad52ecf-43c6-4984-bf41-c9e997988fc5]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Read complete after 0s [id=1349007126]
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
data.terraform_remote_state.incident_management: Read complete after 1s
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Reading...
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=prospectapi-dev-app]
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Read complete after 0s [id=1349007126]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Refreshing state... [id=PROAPI-Dev-Prospects]
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
aws_iam_role.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-role_9208AEE5: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-CodeDeployRole]
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_vpc.pocket-vpc_2587E211: Reading...
aws_iam_role.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-role_4D2F29B7: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-CodeDeployRole]
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Reading...
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Reading...
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=ProspectAPI-Dev-TaskRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 1s [id=ZCSIDA846KWLN]
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_486217BD: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Translation-Queue]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Read complete after 0s [id=335886075]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=492931643]
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_26C8CFD1: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Bridge-Queue]
aws_iam_role.bridge-lambda_bridge-sqs-lambda_execution-role_F8CF76A9: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole]
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=P8OH57E]
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=POL55K4]
aws_iam_role.translation-lambda_translation-sqs-lambda_execution-role_C2F15DF6: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole]
aws_s3_bucket_public_access_block.bridge-lambda_bridge-sqs-lambda_code-bucket-public-access-block_F15A60E0: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
aws_s3_bucket_ownership_controls.bridge-lambda_bridge-sqs-lambda_code-bucket-ownership-controls_1F0D6BBB: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:410318598490:notificationrule/494587429c2f067bd47b7b93a56ac1fa94e36fe0]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 0s [id=PKAPG94]
aws_s3_bucket_public_access_block.translation-lambda_translation-sqs-lambda_code-bucket-public-access-block_68EE0417: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
aws_s3_bucket_ownership_controls.translation-lambda_translation-sqs-lambda_code-bucket-ownership-controls_0A8BE3B3: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=prospectapi-dev-app]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_codedeploy_deployment_group.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deployment-group_BBEED2C6: Refreshing state... [id=8dc25499-e92c-4321-88a8-c5993845c46f]
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 0s [id=vpc-012481e83ffa5e152]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Read complete after 0s [id=vpc-012481e83ffa5e152]
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_codedeploy_deployment_group.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deployment-group_064B3F38: Refreshing state... [id=a63ddc0f-5a38-4b36-9688-dacbc2f9cf05]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_9040A119: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-CodeDeployRole-20240124234655772700000001]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_88071B62: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-CodeDeployRole-20240106052910436000000006]
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z07747349K0HE9ZG8VFL__a1e0772270e0a8963c7058ba99a77c66.prospect-api.getpocket.dev._CNAME]
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=ZCSIDA846KWLN_prospect-api.getpocket.dev_NS]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Read complete after 0s [id=1682749772]
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_execution-policy_C0CB0661: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-ExecutionRolePolicy]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskExecutionRolePolicy]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 0s [id=PZQ6AUS]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole-20240106052911264600000007]
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Reading...
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Read complete after 0s [id=3957006061]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Read complete after 0s [id=805730466]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole-20240106054532934900000001]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=ProspectAPI-Dev]
aws_s3_bucket_acl.bridge-lambda_bridge-sqs-lambda_code-bucket-acl_8894DA8F: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge,private]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskRolePolicy]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Reading...
aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Reading...
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-06e3341d7c9c86ad0]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 1s [id=us-east-1]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 1s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 1s [id=us-east-1]
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/PROAPI20240106052909644400000005/73dfe4c3e0c3e420]
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 1s [id=us-east-1]
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Reading...
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Read complete after 1s [id=us-east-1]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Reading...
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Read complete after 1s [id=us-east-1]
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/PROAPI20240106052909482200000001/f83f684699ca6a2f]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 0s [id=us-east-1]
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Read complete after 0s [id=us-east-1]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Reading...
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Read complete after 0s [id=us-east-1]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Read complete after 0s [id=us-east-1]
aws_iam_policy.translation-lambda_translation-sqs-lambda_sqs-policy_1811B7AA: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-LambdaSQSPolicy]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Reading...
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Reading...
aws_s3_bucket_acl.translation-lambda_translation-sqs-lambda_code-bucket-acl_51DA7819: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation,private]
aws_iam_policy.bridge-lambda_iam-sqs-policy_08CAA544: Refreshing state... [id=arn:aws:iam::410318598490:policy/IAM-ProspectAPI-Dev-QueuePolicy]
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_sqs-policy_3397A47E: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-LambdaSQSPolicy]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=PVTQQC7]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=PRH2PMH]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=PO7EPNU]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=P7YTOY4]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole-20240106054532944500000002]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_74C92A99: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole-20240124234655796600000002]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2024-01-06 05:29:56.201 +0000 UTC]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9BEA8A61: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole-20240106054555793000000004]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=ProspectAPI-Dev-TaskRole-20240106054555810400000005]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-Function]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-04bc98ecee646d4b1]
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:loadbalancer/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-Function]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_273DD1B7: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole-20240124234746737600000003]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9054A7C3: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole-2024010605300009160000000a]
aws_iam_user_policy_attachment.bridge-lambda_iam-sqs-user-policy-attachment_2DD4C358: Refreshing state... [id=ProspectAPI-Dev-Queue-User-20240209181401408000000001]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Critical:7785ae8f-3060-4a2a-81e1-577aa0a66f4f]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Non-Critical:224e98c6-5606-427c-add7-44c0f0c09a4e]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/8034a0109f8a2a3e]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z07747349K0HE9ZG8VFL_prospect-api.getpocket.dev_A_1]
aws_cloudwatch_metric_alarm.application_alarm-httptarget5xxerrorrate_F94D87C0: Refreshing state... [id=ProspectAPI-Dev-Alarm-HTTPTarget5xxErrorRate]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/1b1a3d7eaec7bddf]
aws_cloudwatch_log_group.bridge-lambda_bridge-sqs-lambda_log-group_617CC958: Refreshing state... [id=/aws/lambda/ProspectAPI-Dev-Sqs-Bridge-Function]
aws_lambda_alias.bridge-lambda_bridge-sqs-lambda_alias_EC42B87F: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:DEPLOYED]
aws_lambda_alias.translation-lambda_translation-sqs-lambda_alias_10FF84BB: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:DEPLOYED]
aws_cloudwatch_log_group.translation-lambda_translation-sqs-lambda_log-group_CAF5915B: Refreshing state... [id=/aws/lambda/ProspectAPI-Dev-Sqs-Translation-Function]
aws_lambda_event_source_mapping.bridge-lambda_bridge-sqs-lambda_lambda_event_source_mapping_1EF01E53: Refreshing state... [id=cdd392e8-e7a3-4aa8-9792-25d85f4da0e1]
aws_lambda_event_source_mapping.translation-lambda_translation-sqs-lambda_lambda_event_source_mapping_49D092A6: Refreshing state... [id=b874d1a9-9d39-4b9c-bf38-db409e470b53]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener-rule/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/1b1a3d7eaec7bddf/dd49b8d8bf6e8dfe]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:service/ProspectAPI-Dev/ProspectAPI-Dev]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/ProspectAPI-Dev/ProspectAPI-Dev]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=ProspectAPI-Dev]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=30e83bf4-f2af-4aba-b187-4f7142a35559]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=ProspectAPI-Dev-ScaleOutPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=ProspectAPI-Dev-ScaleInPolicy]
null_resource.application_ecs_service_update-task-definition_D19A511D: Refreshing state... [id=1467228676312391832]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=ProspectAPI-Dev Service High CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=ProspectAPI-Dev Service Low CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
 <= read (data resources)

Terraform will perform the following actions:

  # data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "dynamodb:BatchGet*",
              + "dynamodb:DescribeTable",
              + "dynamodb:Get*",
              + "dynamodb:Query",
              + "dynamodb:Scan",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "s3:*",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:s3:::pocket-prospectapi-dev-images",
              + "arn:aws:s3:::pocket-prospectapi-dev-images/*",
            ]
        }
      + statement {
          + actions   = [
              + "events:PutEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:events:us-east-1:410318598490:event-bus/PocketEventBridge-Dev-Shared-Event-Bus",
            ]
        }
    }

  # data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "logs:CreateLogGroup",
              + "logs:CreateLogStream",
              + "logs:DescribeLogStreams",
              + "logs:PutLogEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:logs:*:*:*",
            ]
        }
      + statement {
          + actions   = [
              + "dynamodb:BatchWriteItem",
              + "dynamodb:DescribeTable",
              + "dynamodb:PutItem",
              + "dynamodb:Query",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "ec2:AttachNetworkInterface",
              + "ec2:CreateNetworkInterface",
              + "ec2:DeleteNetworkInterface",
              + "ec2:DescribeInstances",
              + "ec2:DescribeNetworkInterfaces",
            ]
          + effect    = "Allow"
          + resources = [
              + "*",
            ]
        }
    }

  # aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E will be updated in-place
  ~ resource "aws_dynamodb_table" "dynamodb_prospects_dynamodb_table_9854E41E" {
        id                          = "PROAPI-Dev-Prospects"
        name                        = "PROAPI-Dev-Prospects"
        tags                        = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (9 unchanged attributes hidden)

      - global_secondary_index {
          - hash_key           = "scheduledSurfaceGuid" -> null
          - name               = "scheduledSurfaceGuid-prospectType" -> null
          - non_key_attributes = [] -> null
          - projection_type    = "ALL" -> null
          - range_key          = "prospectType" -> null
          - read_capacity      = 0 -> null
          - write_capacity     = 0 -> null
        }
      + global_secondary_index {
          + hash_key           = "scheduledSurfaceGuid"
          + name               = "scheduledSurfaceGuid-prospectType"
          + non_key_attributes = []
          + projection_type    = "ALL"
          + range_key          = "prospectType"
          + read_capacity      = 5
          + write_capacity     = 5
        }

        # (5 unchanged blocks hidden)
    }

  # aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6 will be updated in-place
  ~ resource "aws_iam_policy" "application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6" {
        id        = "arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskRolePolicy"
        name      = "ProspectAPI-Dev-TaskRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Scan",
                          - "dynamodb:Query",
                          - "dynamodb:Get*",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchGet*",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
                        ]
                    },
                  - {
                      - Action   = "s3:*"
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:s3:::pocket-prospectapi-dev-images/*",
                          - "arn:aws:s3:::pocket-prospectapi-dev-images",
                        ]
                    },
                  - {
                      - Action   = "events:PutEvents"
                      - Effect   = "Allow"
                      - Resource = "arn:aws:events:us-east-1:410318598490:event-bus/PocketEventBridge-Dev-Shared-Event-Bus"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9 will be updated in-place
  ~ resource "aws_iam_policy" "translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9" {
        id        = "arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy"
        name      = "ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "logs:PutLogEvents",
                          - "logs:DescribeLogStreams",
                          - "logs:CreateLogStream",
                          - "logs:CreateLogGroup",
                        ]
                      - Effect   = "Allow"
                      - Resource = "arn:aws:logs:*:*:*"
                    },
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Query",
                          - "dynamodb:PutItem",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchWriteItem",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
                        ]
                    },
                  - {
                      - Action   = [
                          - "ec2:DescribeNetworkInterfaces",
                          - "ec2:DescribeInstances",
                          - "ec2:DeleteNetworkInterface",
                          - "ec2:CreateNetworkInterface",
                          - "ec2:AttachNetworkInterface",
                        ]
                      - Effect   = "Allow"
                      - Resource = "*"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4026
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:410318598490:task-definition/ProspectAPI-Dev:167"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

Plan: 1 to add, 3 to change, 0 to destroy.
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifying... [id=PROAPI-Dev-Prospects]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifications complete after 0s [id=PROAPI-Dev-Prospects]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=2997876322]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Read complete after 0s [id=3208558407]
local_file.application_ecs_service_appspec_94386B9C: Creating...
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 0s [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]

Apply complete! Resources: 1 added, 1 changed, 0 destroyed.

httpProtocol: environment === 'production' ? 'https' : 'http',
bufferSize: 1,
retries,
namespace: 'content-engineering',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Checking in Slack whether it's ok to change this. If we're not sure then I'll change it back to pocket-backend.

Dbt-snowflake does not use namespace and has no reference to pocket-backend.

mmiermans and others added 4 commits March 12, 2024 15:56
fix: wait until Snowplow events are sent

fix: wait until Snowplow events are sent (2)
- follow up PRs will be needed to change the snowplow schema
- improve naming
- update readme
Will check with Kirill before changing this.

I searched through the dbt-snowflake repo, and I _think_ namespace is not used.
@mmiermans mmiermans marked this pull request as ready for review March 14, 2024 17:48
Copy link
Collaborator

@katerinachinnappan katerinachinnappan left a comment

Choose a reason for hiding this comment

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

glad to see this get merged soon!

@mmiermans mmiermans force-pushed the mc-681-scheduler-snowplow-event-2 branch from 81c15ed to 1807720 Compare March 16, 2024 03:40
@mmiermans mmiermans force-pushed the mc-681-scheduler-snowplow-event-2 branch from 1807720 to 857b332 Compare March 16, 2024 03:44
metadataErrorTestCases.forEach(
({ candidateKey, parserKey, expectedSnowplowError }) => {
it(`should emit a Snowplow event when ${candidateKey} is missing with error_name=${expectedSnowplowError}`, async () => {
// Create a ScheduledCandidate with
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
// Create a ScheduledCandidate with

httpProtocol: environment === 'production' ? 'https' : 'http',
bufferSize: 1,
retries,
namespace: 'pocket-backend',

This comment was marked as resolved.

Comment on lines 20 to 23
/** TODO: [MC-737] Add validation on scheduled date. */
INSUFFICIENT_TIME_BEFORE_SCHEDULED_DATE = 'INSUFFICIENT_TIME_BEFORE_SCHEDULED_DATE',
/** TODO: [MC-666] Add safeguard to prevent scheduling from unverified domains. */
DOMAIN_NOT_ALLOWED_FOR_AUTO_SCHEDULING = 'DOMAIN_NOT_ALLOWED_FOR_AUTO_SCHEDULING',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will remove these. We should not emit Snowplow errors for error scenarios that result from a bug, only when data is flaky.

const allEvents = await waitForSnowplowEvents();
expect(allEvents).toEqual({ total: 1, good: 1, bad: 0 });

// Check that the right error was emitted.

This comment was marked as resolved.

);
});
});
});

This comment was marked as resolved.

Comment on lines 72 to 73
? 'curated-corpus-api'
: 'curated-corpus-api-dev',

This comment was marked as resolved.

reviewed_at: 1668100358,
// The LDAP string of the curator who reviewed this prospect - for now, only dismissing prospect.
reviewed_by: 'sso-user',
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was copied from snowplow-test-helpers.ts

@pocket-ci
Copy link

✅ Apply Succeeded (corpus-scheduler-lambda-cdk-dev)

CI link

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Details (Click me)
data.archive_file.corpus-scheduler-sqs-lambda_lambda-default-file_375743AB: Reading...
data.archive_file.corpus-scheduler-sqs-lambda_lambda-default-file_375743AB: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
aws_s3_bucket.corpus-scheduler-sqs-lambda_code-bucket_71B015CC: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_allowed-to-schedule_63A523D4: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_B26D37EC: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_B26D37EC: Read complete after 0s [id=4250039221]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Read complete after 0s [id=1349007126]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_enable-scheduled-date-validation_9EC987EA: Reading...
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
aws_sqs_queue.corpus-scheduler-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_9399287C: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/CorpusSchedulerLambda-Dev-SQS-Queue-Deadletter]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_sentry-dsn_CC90D271: Reading...
aws_codedeploy_app.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-app_B02FBF37: Refreshing state... [id=f9f7e66f-afd4-4d7c-8edd-b77037db3263:CorpusSchedulerLambda-Dev-SQS-Lambda]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Reading...
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
aws_iam_role.corpus-scheduler-sqs-lambda_execution-role_EAF2C9FE: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole]
aws_iam_role.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-role_2D0E51C4: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-CodeDeployRole]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_allowed-to-schedule_63A523D4: Read complete after 0s [id=/CorpusSchedulerLambda/Dev/ALLOWED_TO_SCHEDULE]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Read complete after 0s [id=/CorpusSchedulerLambda/CircleCI/Dev/SERVICE_HASH]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_enable-scheduled-date-validation_9EC987EA: Read complete after 0s [id=/CorpusSchedulerLambda/Dev/ENABLE_SCHEDULED_DATE_VALIDATION]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Reading...
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_sentry-dsn_CC90D271: Read complete after 0s [id=/CorpusSchedulerLambda/Dev/SENTRY_DSN]
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Read complete after 0s [id=1462001592]
aws_sqs_queue.corpus-scheduler-sqs-lambda_lambda_sqs_queue_162ECA18: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/CorpusSchedulerLambda-Dev-SQS-Queue]
aws_iam_policy.corpus-scheduler-sqs-lambda_execution-policy_CF929AE3: Refreshing state... [id=arn:aws:iam::410318598490:policy/CorpusSchedulerLambda-Dev-SQS-ExecutionRolePolicy]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda_sqs_policy_4779D776: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda_sqs_policy_4779D776: Read complete after 0s [id=1697900982]
data.aws_iam_policy_document.corpus-scheduler-ml-user-policy_iam_sqs_policy_2CE4E3DF: Reading...
data.aws_iam_policy_document.corpus-scheduler-ml-user-policy_iam_sqs_policy_2CE4E3DF: Read complete after 0s [id=3551034865]
aws_iam_policy.corpus-scheduler-ml-user-policy_iam-sqs-policy_867A1D82: Refreshing state... [id=arn:aws:iam::410318598490:policy/IAM-CorpusSchedulerLambda-Dev-QueuePolicy]
aws_iam_user_policy_attachment.corpus-scheduler-ml-user-policy_iam-sqs-user-policy-attachment_22113AFF: Refreshing state... [id=ProspectAPI-Dev-Queue-User-20240223144911654200000001]
aws_s3_bucket_ownership_controls.corpus-scheduler-sqs-lambda_code-bucket-ownership-controls_F322EEAB: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_execution-role-policy-attachment_DCF8A6BE: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole-20240220232452100000000002]
aws_s3_bucket_public_access_block.corpus-scheduler-sqs-lambda_code-bucket-public-access-block_0345DD5C: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
aws_iam_policy.corpus-scheduler-sqs-lambda_sqs-policy_00D0B4DA: Refreshing state... [id=arn:aws:iam::410318598490:policy/CorpusSchedulerLambda-Dev-SQS-LambdaSQSPolicy]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_13D4D586: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-CodeDeployRole-20240220232452076500000001]
aws_codedeploy_deployment_group.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deployment-group_E7DBB35A: Refreshing state... [id=21994191-ae12-480b-9ef2-fb2a996db344]
aws_s3_bucket_acl.corpus-scheduler-sqs-lambda_code-bucket-acl_F4BEB234: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs,private]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_execution-role-policy-attachment_B0FC2816: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-ExecutionRole-20240220232542515500000003]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 1s [id=vpc-012481e83ffa5e152]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Refreshing state... [id=CorpusSchedulerLambda-Dev-SQS-Function]
aws_lambda_alias.corpus-scheduler-sqs-lambda_alias_6B1DD07D: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:CorpusSchedulerLambda-Dev-SQS-Function:DEPLOYED]
aws_cloudwatch_log_group.corpus-scheduler-sqs-lambda_log-group_7AB14A32: Refreshing state... [id=/aws/lambda/CorpusSchedulerLambda-Dev-SQS-Function]
aws_lambda_event_source_mapping.corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E: Refreshing state... [id=c53637e5-9c12-41ef-aff6-333f924c76b4]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F will be updated in-place
  ~ resource "aws_lambda_function" "corpus-scheduler-sqs-lambda_F2ECDF9F" {
        id                             = "CorpusSchedulerLambda-Dev-SQS-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:410318598490:function:CorpusSchedulerLambda-Dev-SQS-Function:75" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:410318598490:function:CorpusSchedulerLambda-Dev-SQS-Function:75/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "CorpusSchedulerLambda"
        }
      ~ version                        = "75" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                          = (sensitive value)
              + "SNOWPLOW_ENDPOINT"                = "com-getpocket-prod1.mini.snplow.net"
                # (6 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Modifying... [id=CorpusSchedulerLambda-Dev-SQS-Function]
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Modifications complete after 8s [id=CorpusSchedulerLambda-Dev-SQS-Function]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (curated-corpus-api-cdk-dev)

CI link

Apply complete! Resources: 2 added, 2 changed, 1 destroyed.
Details (Click me)
data.terraform_remote_state.incident_management: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_kms_alias.kms_alias: Reading...
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Non-Critical]
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:cluster/CuratedCorpusAPI-Dev]
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=curatedcorpusapi-dev-app]
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:410318598490:certificate/aaaf769b-2ddb-4be0-9fc4-f8f8e61be6fc]
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
data.aws_kms_alias.kms_alias: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Read complete after 0s [id=2690255455]
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Critical]
data.aws_caller_identity.caller: Reading...
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z00475383NZHMVB1WW0NT]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_sns_topic.backend_notifications: Reading...
aws_s3_bucket.synthetics_synthetics_synthetic_check_artifacts_53DD59E6: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-checks]
data.aws_region.region: Reading...
data.aws_region.region: Read complete after 0s [id=us-east-1]
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/CuratedCorpusAPI-Dev/ecs/app]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:410318598490:Backend-Dev-ChatBot]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 1s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=410318598490]
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=7851a14d-3264-41b8-b886-3db372a66c8d:CuratedCorpusAPI-Dev-ECS]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
aws_iam_role.synthetics_synthetic_check_role_A3A5C38B: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-check]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=1192295146]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=curatedcorpusapi-dev-app]
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole]
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=CuratedCorpusAPI-Dev-ECSCodeDeployRole]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 1s [id=ZCSIDA846KWLN]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z00475383NZHMVB1WW0NT__cb56274a8f7b5e57ed9f02fb4f9870f5.curated-corpus-api.getpocket.dev._CNAME]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::410318598490:policy/CuratedCorpusAPI-Dev-TaskExecutionRolePolicy]
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:410318598490:notificationrule/363be7ebf8dde2bfaf8a5484ebc162c0b8477362]
data.terraform_remote_state.incident_management: Read complete after 1s
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=ZCSIDA846KWLN_curated-corpus-api.getpocket.dev_NS]
aws_s3_bucket_ownership_controls.pocket-curatedcorpusapi-dev-images: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=3308323158]
aws_s3_bucket_public_access_block.pocket-curatedcorpusapi-dev-images: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_s3_bucket_lifecycle_configuration.synthetics_synthetics_synthetic_check_artifacts_lifecycle_5A7B9150: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-checks]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_access_4C83FECF: Reading...
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_access_4C83FECF: Read complete after 0s [id=3607784743]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole-20230815040242653200000005]
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=PU1YFEE]
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=PXAJGU4]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=CuratedCorpusAPI-Dev-ECSCodeDeployRole-20230809163530958100000008]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::410318598490:policy/CuratedCorpusAPI-Dev-TaskRolePolicy]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 0s [id=PKAPG94]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 0s [id=vpc-012481e83ffa5e152]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
data.aws_vpc.rds_vpc_9E5B9996: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2023-08-09 16:36:14.338 +0000 UTC]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
aws_iam_policy.synthetics_synthetics_synthetic_check_access_policy_9A7D8849: Refreshing state... [id=arn:aws:iam::410318598490:policy/pocket-curatedcorpusapi-dev-synthetic-check-access]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole-20230815040242652500000004]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 0s [id=PZQ6AUS]
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/CCSAPI20230809163518158500000001/1056f89db83740bf]
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/CCSAPI20230809163521767800000005/38232a0df3b5bf6e]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-01c8b8e6531c36ca7]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
aws_db_subnet_group.rds_rds_subnet_group_796D20B7: Refreshing state... [id=curatedcorpusapi-dev20210930155115552900000009]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 0s [id=us-east-1]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_query_0_99E4AE1B: Refreshing state... [id=ccsapi-dev-query-0]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_uptime_0_4168D0DB: Refreshing state... [id=ccsapi-dev-uptime-0]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskRole-20230815040242336200000003]
aws_iam_role_policy_attachment.synthetics_synthetics_synthetic_check_access_attach_BC7F9559: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-check-20230815165631476900000001]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=PNY17AH]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=P6LD6LU]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=P3PS694]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=PR7P8Q7]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-087e2709603495b27]
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:loadbalancer/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Refreshing state... [id=ccsapi-dev-query-0]
data.aws_vpc.rds_vpc_9E5B9996: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Refreshing state... [id=ccsapi-dev-uptime-0]
aws_security_group.rds_rds_security_group_B7738CEB: Refreshing state... [id=sg-01306e441cb0756f8]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Non-Critical:04bb5095-809b-4999-97be-37b417fca8ad]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/1bc93d64fe882b1f]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z00475383NZHMVB1WW0NT_curated-corpus-api.getpocket.dev_A_1]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/8ed37725ad0175d8]
aws_cloudwatch_metric_alarm.application_alarm-httpresponsetime_9124C30A: Refreshing state... [id=CuratedCorpusAPI-Dev-Alarm-HTTPResponseTime]
aws_rds_cluster.rds_rds_cluster_1A0399FD: Refreshing state... [id=curatedcorpusapi-dev20211019211102971300000001]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Critical:62f5ba8b-eb87-496f-a17c-bcdfe204e1e8]
aws_secretsmanager_secret.rds_rds_secret_A0401B27: Refreshing state... [id=arn:aws:secretsmanager:us-east-1:410318598490:secret:CuratedCorpusAPI-Dev/curatedcorpusapi-dev20211019211102971300000001-CUoEYY]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener-rule/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/8ed37725ad0175d8/e828822ff6e9ba9e]
aws_secretsmanager_secret_version.rds_rds_secret_version_11D8C2B1: Refreshing state... [id=arn:aws:secretsmanager:us-east-1:410318598490:secret:CuratedCorpusAPI-Dev/curatedcorpusapi-dev20211019211102971300000001-CUoEYY|B74BA76B-62EA-4C2A-83EB-1E85D8BEDE57]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=CuratedCorpusAPI-Dev]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=4fa3693b714299bf1f46da9ec82a044c7a706300]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Refreshing state... [id=2181537775719295428]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:service/CuratedCorpusAPI-Dev/CuratedCorpusAPI-Dev]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=5ac8fe68-6182-40db-83c9-5e02807ddbdd]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=CuratedCorpusAPI-Dev]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/CuratedCorpusAPI-Dev/CuratedCorpusAPI-Dev]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=CuratedCorpusAPI-Dev-ScaleInPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=CuratedCorpusAPI-Dev-ScaleOutPolicy]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=CuratedCorpusAPI-Dev Service Low CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=CuratedCorpusAPI-Dev Service High CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21 will be updated in-place
  ~ resource "aws_cloudwatch_metric_alarm" "synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21" {
      ~ alarm_actions             = [
          + "",
        ]
        id                        = "ccsapi-dev-query-0"
      ~ ok_actions                = [
          + "",
        ]
        tags                      = {}
        # (16 unchanged attributes hidden)
    }

  # aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7 will be updated in-place
  ~ resource "aws_cloudwatch_metric_alarm" "synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7" {
      ~ alarm_actions             = [
          + "",
        ]
        id                        = "ccsapi-dev-uptime-0"
      ~ ok_actions                = [
          + "",
        ]
        tags                      = {}
        # (16 unchanged attributes hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4025
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:410318598490:task-definition/CuratedCorpusAPI-Dev:130"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

  # null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 must be replaced
-/+ resource "null_resource" "application_ecs_service_create-task-definition-file_6BADBAF7" {
      ~ id       = "2181537775719295428" -> (known after apply)
      ~ triggers = { # forces replacement
          ~ "alwaysRun" = "2024-03-15T20:13:13Z" -> (known after apply)
        }
    }

Plan: 2 to add, 2 to change, 1 to destroy.
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Destroying... [id=2181537775719295428]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Destruction complete after 0s
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creating...
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Provisioning with 'local-exec'...
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 (local-exec): Executing: ["/bin/sh" "-c" "aws --region us-east-1 ecs describe-task-definition --task-definition CuratedCorpusAPI-Dev --query 'taskDefinition' >> taskdef.json"]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Modifying... [id=ccsapi-dev-query-0]
local_file.application_ecs_service_appspec_94386B9C: Creating...
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 0s [id=4fa3693b714299bf1f46da9ec82a044c7a706300]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Modifying... [id=ccsapi-dev-uptime-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Modifications complete after 0s [id=ccsapi-dev-uptime-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Modifications complete after 0s [id=ccsapi-dev-query-0]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creation complete after 0s [id=7520611016423915091]

Apply complete! Resources: 2 added, 2 changed, 1 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (prospect-api-cdk-dev)

CI link

Apply complete! Resources: 1 added, 3 changed, 0 destroyed.
Details (Click me)
data.terraform_remote_state.incident_management: Reading...
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Reading...
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Reading...
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:410318598490:certificate/8ad52ecf-43c6-4984-bf41-c9e997988fc5]
data.aws_caller_identity.caller: Reading...
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_E8DA1FF4: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Bridge-Queue-Deadletter]
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Refreshing state... [id=PROAPI-Dev-Prospects]
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
aws_s3_bucket.bridge-lambda_bridge-sqs-lambda_code-bucket_8EFA52B9: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Reading...
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Reading...
aws_iam_user.bridge-lambda_iam_user_EB469160: Refreshing state... [id=ProspectAPI-Dev-Queue-User]
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/ProspectAPI-Dev/ecs/app]
data.aws_region.region: Reading...
data.aws_region.region: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Reading...
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Read complete after 0s [id=410318598490]
aws_codedeploy_app.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-app_32ED4D33: Refreshing state... [id=fbd00677-7dab-4a8f-815f-3302fc60fff4:ProspectAPI-Dev-Sqs-Bridge-Lambda]
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
aws_s3_bucket.translation-lambda_translation-sqs-lambda_code-bucket_8041EB81: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Reading...
data.terraform_remote_state.incident_management: Read complete after 0s
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Read complete after 0s [id=arn:aws:firehose:us-east-1:410318598490:deliverystream/MetaflowTools-Dev-firehose]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Reading...
aws_codedeploy_app.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-app_E422EADB: Refreshing state... [id=eade583b-0d01-404c-ae96-10b8f0995609:ProspectAPI-Dev-Sqs-Translation-Lambda]
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Reading...
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 0s [id=ZCSIDA846KWLN]
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Reading...
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-prospectapi-dev-images]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Read complete after 0s [id=1349007126]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=4ee018c2-d5c1-4bf8-b940-2f4894b7a04b:ProspectAPI-Dev-ECS]
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Critical]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Reading...
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Reading...
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Reading...
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Reading...
data.aws_kms_alias.kms_alias: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Read complete after 0s [id=4250039221]
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Non-Critical]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Read complete after 0s [id=4250039221]
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=prospectapi-dev-app]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Reading...
data.aws_kms_alias.kms_alias: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Read complete after 0s [id=/Shared/PublicSubnets]
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z07747349K0HE9ZG8VFL]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Reading...
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Reading...
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_25D64172: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Translation-Queue-Deadletter]
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Read complete after 1s [id=us-east-1]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Read complete after 1s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Reading...
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Read complete after 0s [id=1349007126]
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:cluster/ProspectAPI-Dev]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Read complete after 1s [id=/Shared/PublicSubnets]
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_26C8CFD1: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Bridge-Queue]
data.aws_sns_topic.backend_notifications: Reading...
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Read complete after 0s [id=410318598490]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=POL55K4]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Reading...
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=P8OH57E]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Read complete after 0s [id=335886075]
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:410318598490:Backend-Dev-ChatBot]
aws_iam_role.translation-lambda_translation-sqs-lambda_execution-role_C2F15DF6: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole]
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Reading...
aws_s3_bucket_public_access_block.bridge-lambda_bridge-sqs-lambda_code-bucket-public-access-block_F15A60E0: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
aws_s3_bucket_ownership_controls.bridge-lambda_bridge-sqs-lambda_code-bucket-ownership-controls_1F0D6BBB: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Reading...
aws_iam_role.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-role_9208AEE5: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-CodeDeployRole]
aws_iam_role.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-role_4D2F29B7: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-CodeDeployRole]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=492931643]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=ProspectAPI-Dev-TaskRole]
aws_s3_bucket_ownership_controls.translation-lambda_translation-sqs-lambda_code-bucket-ownership-controls_0A8BE3B3: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
aws_s3_bucket_public_access_block.translation-lambda_translation-sqs-lambda_code-bucket-public-access-block_68EE0417: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole]
aws_iam_role.bridge-lambda_bridge-sqs-lambda_execution-role_F8CF76A9: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole]
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy]
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_486217BD: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/410318598490/ProspectAPI-Dev-Sqs-Translation-Queue]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 0s [id=PZQ6AUS]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=prospectapi-dev-app]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:410318598490:notificationrule/494587429c2f067bd47b7b93a56ac1fa94e36fe0]
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Reading...
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_execution-policy_C0CB0661: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-ExecutionRolePolicy]
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Read complete after 0s [id=3957006061]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Read complete after 0s [id=805730466]
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z07747349K0HE9ZG8VFL__a1e0772270e0a8963c7058ba99a77c66.prospect-api.getpocket.dev._CNAME]
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=ZCSIDA846KWLN_prospect-api.getpocket.dev_NS]
aws_s3_bucket_acl.bridge-lambda_bridge-sqs-lambda_code-bucket-acl_8894DA8F: Refreshing state... [id=pocket-prospectapi-dev-sqs-bridge,private]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskExecutionRolePolicy]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_88071B62: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-CodeDeployRole-20240106052910436000000006]
aws_codedeploy_deployment_group.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deployment-group_064B3F38: Refreshing state... [id=a63ddc0f-5a38-4b36-9688-dacbc2f9cf05]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_9040A119: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-CodeDeployRole-20240124234655772700000001]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 0s [id=PKAPG94]
aws_codedeploy_deployment_group.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deployment-group_BBEED2C6: Refreshing state... [id=8dc25499-e92c-4321-88a8-c5993845c46f]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole-20240106054532934900000001]
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=ProspectAPI-Dev]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Reading...
data.aws_vpc.pocket-vpc_2587E211: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_s3_bucket_acl.translation-lambda_translation-sqs-lambda_code-bucket-acl_51DA7819: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation,private]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Reading...
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Reading...
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Reading...
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Reading...
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole-20240106052911264600000007]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Read complete after 0s [id=us-east-1]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Read complete after 0s [id=1682749772]
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Reading...
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_sqs-policy_3397A47E: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-LambdaSQSPolicy]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Reading...
aws_iam_policy.bridge-lambda_iam-sqs-policy_08CAA544: Refreshing state... [id=arn:aws:iam::410318598490:policy/IAM-ProspectAPI-Dev-QueuePolicy]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Reading...
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9BEA8A61: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole-20240106054555793000000004]
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Read complete after 1s [id=us-east-1]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Read complete after 1s [id=us-east-1]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Read complete after 1s [id=us-east-1]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskRolePolicy]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=PVTQQC7]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_74C92A99: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole-20240124234655796600000002]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Read complete after 1s [id=us-east-1]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole-20240106054532944500000002]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=PRH2PMH]
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Read complete after 1s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/PROAPI20240106052909482200000001/f83f684699ca6a2f]
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:targetgroup/PROAPI20240106052909644400000005/73dfe4c3e0c3e420]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Read complete after 1s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 0s [id=us-east-1]
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-06e3341d7c9c86ad0]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 0s [id=us-east-1]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=PO7EPNU]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=P7YTOY4]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2024-01-06 05:29:56.201 +0000 UTC]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
aws_iam_policy.translation-lambda_translation-sqs-lambda_sqs-policy_1811B7AA: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-LambdaSQSPolicy]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-Function]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
aws_iam_user_policy_attachment.bridge-lambda_iam-sqs-user-policy-attachment_2DD4C358: Refreshing state... [id=ProspectAPI-Dev-Queue-User-20240209181401408000000001]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_273DD1B7: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole-20240124234746737600000003]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-Function]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=ProspectAPI-Dev-TaskRole-20240106054555810400000005]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Critical:7785ae8f-3060-4a2a-81e1-577aa0a66f4f]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:410318598490:ProspectAPI-Dev-Infrastructure-Alarm-Non-Critical:224e98c6-5606-427c-add7-44c0f0c09a4e]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9054A7C3: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole-2024010605300009160000000a]
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:loadbalancer/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-04bc98ecee646d4b1]
aws_lambda_alias.translation-lambda_translation-sqs-lambda_alias_10FF84BB: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:DEPLOYED]
aws_cloudwatch_log_group.translation-lambda_translation-sqs-lambda_log-group_CAF5915B: Refreshing state... [id=/aws/lambda/ProspectAPI-Dev-Sqs-Translation-Function]
aws_lambda_event_source_mapping.translation-lambda_translation-sqs-lambda_lambda_event_source_mapping_49D092A6: Refreshing state... [id=b874d1a9-9d39-4b9c-bf38-db409e470b53]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/1b1a3d7eaec7bddf]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z07747349K0HE9ZG8VFL_prospect-api.getpocket.dev_A_1]
aws_cloudwatch_metric_alarm.application_alarm-httptarget5xxerrorrate_F94D87C0: Refreshing state... [id=ProspectAPI-Dev-Alarm-HTTPTarget5xxErrorRate]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/8034a0109f8a2a3e]
aws_cloudwatch_log_group.bridge-lambda_bridge-sqs-lambda_log-group_617CC958: Refreshing state... [id=/aws/lambda/ProspectAPI-Dev-Sqs-Bridge-Function]
aws_lambda_alias.bridge-lambda_bridge-sqs-lambda_alias_EC42B87F: Refreshing state... [id=arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:DEPLOYED]
aws_lambda_event_source_mapping.bridge-lambda_bridge-sqs-lambda_lambda_event_source_mapping_1EF01E53: Refreshing state... [id=cdd392e8-e7a3-4aa8-9792-25d85f4da0e1]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener-rule/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0/1b1a3d7eaec7bddf/dd49b8d8bf6e8dfe]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:service/ProspectAPI-Dev/ProspectAPI-Dev]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/ProspectAPI-Dev/ProspectAPI-Dev]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=ProspectAPI-Dev]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=30e83bf4-f2af-4aba-b187-4f7142a35559]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=ProspectAPI-Dev-ScaleInPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=ProspectAPI-Dev-ScaleOutPolicy]
null_resource.application_ecs_service_update-task-definition_D19A511D: Refreshing state... [id=1467228676312391832]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=ProspectAPI-Dev Service High CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=ProspectAPI-Dev Service Low CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
 <= read (data resources)

Terraform will perform the following actions:

  # data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "dynamodb:BatchGet*",
              + "dynamodb:DescribeTable",
              + "dynamodb:Get*",
              + "dynamodb:Query",
              + "dynamodb:Scan",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "s3:*",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:s3:::pocket-prospectapi-dev-images",
              + "arn:aws:s3:::pocket-prospectapi-dev-images/*",
            ]
        }
      + statement {
          + actions   = [
              + "events:PutEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:events:us-east-1:410318598490:event-bus/PocketEventBridge-Dev-Shared-Event-Bus",
            ]
        }
    }

  # data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "logs:CreateLogGroup",
              + "logs:CreateLogStream",
              + "logs:DescribeLogStreams",
              + "logs:PutLogEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:logs:*:*:*",
            ]
        }
      + statement {
          + actions   = [
              + "dynamodb:BatchWriteItem",
              + "dynamodb:DescribeTable",
              + "dynamodb:PutItem",
              + "dynamodb:Query",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
              + "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "ec2:AttachNetworkInterface",
              + "ec2:CreateNetworkInterface",
              + "ec2:DeleteNetworkInterface",
              + "ec2:DescribeInstances",
              + "ec2:DescribeNetworkInterfaces",
            ]
          + effect    = "Allow"
          + resources = [
              + "*",
            ]
        }
    }

  # aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E will be updated in-place
  ~ resource "aws_dynamodb_table" "dynamodb_prospects_dynamodb_table_9854E41E" {
        id                          = "PROAPI-Dev-Prospects"
        name                        = "PROAPI-Dev-Prospects"
        tags                        = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (9 unchanged attributes hidden)

      - global_secondary_index {
          - hash_key           = "scheduledSurfaceGuid" -> null
          - name               = "scheduledSurfaceGuid-prospectType" -> null
          - non_key_attributes = [] -> null
          - projection_type    = "ALL" -> null
          - range_key          = "prospectType" -> null
          - read_capacity      = 0 -> null
          - write_capacity     = 0 -> null
        }
      + global_secondary_index {
          + hash_key           = "scheduledSurfaceGuid"
          + name               = "scheduledSurfaceGuid-prospectType"
          + non_key_attributes = []
          + projection_type    = "ALL"
          + range_key          = "prospectType"
          + read_capacity      = 5
          + write_capacity     = 5
        }

        # (5 unchanged blocks hidden)
    }

  # aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6 will be updated in-place
  ~ resource "aws_iam_policy" "application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6" {
        id        = "arn:aws:iam::410318598490:policy/ProspectAPI-Dev-TaskRolePolicy"
        name      = "ProspectAPI-Dev-TaskRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Scan",
                          - "dynamodb:Query",
                          - "dynamodb:Get*",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchGet*",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
                        ]
                    },
                  - {
                      - Action   = "s3:*"
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:s3:::pocket-prospectapi-dev-images/*",
                          - "arn:aws:s3:::pocket-prospectapi-dev-images",
                        ]
                    },
                  - {
                      - Action   = "events:PutEvents"
                      - Effect   = "Allow"
                      - Resource = "arn:aws:events:us-east-1:410318598490:event-bus/PocketEventBridge-Dev-Shared-Event-Bus"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9 will be updated in-place
  ~ resource "aws_iam_policy" "translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9" {
        id        = "arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy"
        name      = "ProspectAPI-Dev-Sqs-Translation-ExecutionRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "logs:PutLogEvents",
                          - "logs:DescribeLogStreams",
                          - "logs:CreateLogStream",
                          - "logs:CreateLogGroup",
                        ]
                      - Effect   = "Allow"
                      - Resource = "arn:aws:logs:*:*:*"
                    },
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Query",
                          - "dynamodb:PutItem",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchWriteItem",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:410318598490:table/PROAPI-Dev-Prospects",
                        ]
                    },
                  - {
                      - Action   = [
                          - "ec2:DescribeNetworkInterfaces",
                          - "ec2:DescribeInstances",
                          - "ec2:DeleteNetworkInterface",
                          - "ec2:CreateNetworkInterface",
                          - "ec2:AttachNetworkInterface",
                        ]
                      - Effect   = "Allow"
                      - Resource = "*"
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A will be updated in-place
  ~ resource "aws_lambda_function" "bridge-lambda_bridge-sqs-lambda_343B543A" {
        id                             = "ProspectAPI-Dev-Sqs-Bridge-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:135" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Bridge-Function:135/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "135" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                  = (sensitive value)
                # (5 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA will be updated in-place
  ~ resource "aws_lambda_function" "translation-lambda_translation-sqs-lambda_B9BDF6BA" {
        id                             = "ProspectAPI-Dev-Sqs-Translation-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:466" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:410318598490:function:ProspectAPI-Dev-Sqs-Translation-Function:466/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "466" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                      = (sensitive value)
                # (3 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4026
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:410318598490:task-definition/ProspectAPI-Dev:167"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

Plan: 1 to add, 5 to change, 0 to destroy.
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifying... [id=PROAPI-Dev-Prospects]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Modifying... [id=ProspectAPI-Dev-Sqs-Bridge-Function]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifications complete after 0s [id=PROAPI-Dev-Prospects]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Reading...
local_file.application_ecs_service_appspec_94386B9C: Creating...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 0s [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Read complete after 0s [id=3208558407]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=2997876322]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Modifying... [id=ProspectAPI-Dev-Sqs-Translation-Function]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Modifications complete after 7s [id=ProspectAPI-Dev-Sqs-Bridge-Function]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Modifications complete after 9s [id=ProspectAPI-Dev-Sqs-Translation-Function]
Releasing state lock. This may take a few moments...

Apply complete! Resources: 1 added, 3 changed, 0 destroyed.

Copy link
Collaborator

@katerinachinnappan katerinachinnappan left a comment

Choose a reason for hiding this comment

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

🔥

@mmiermans mmiermans merged commit 4dd2e77 into main Mar 18, 2024
38 checks passed
@pocket-ci
Copy link

✅ Apply Succeeded (prospect-api-cdk)

CI link

Apply complete! Resources: 1 added, 3 changed, 0 destroyed.
Details (Click me)
data.terraform_remote_state.incident_management: Reading...
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Reading...
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Reading...
data.archive_file.bridge-lambda_bridge-sqs-lambda_lambda-default-file_0C88C3E5: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_E8DA1FF4: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/996905175585/ProspectAPI-Prod-Sqs-Bridge-Queue-Deadletter]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Reading...
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Reading...
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Refreshing state... [id=PROAPI-Prod-Prospects]
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Reading...
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z09066042I4VRK8QUOWL0]
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Reading...
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: Read complete after 0s [id=us-east-1]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Read complete after 0s [id=1349007126]
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Reading...
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Reading...
aws_iam_user.bridge-lambda_iam_user_EB469160: Refreshing state... [id=ProspectAPI-Prod-Queue-User]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_kms_alias.translation-lambda_pocket-shared-vpc_secrets_manager_key_58B66F25: Read complete after 0s [id=arn:aws:kms:us-east-1:996905175585:alias/aws/secretsmanager]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=16f8d5bb-d559-459e-ae83-011ad9e58798:ProspectAPI-Prod-ECS]
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Read complete after 0s [id=/ProspectAPI/Prod/SENTRY_DSN]
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Read complete after 0s [id=/ProspectAPI/CircleCI/Prod/SERVICE_HASH]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Read complete after 0s [id=/ProspectAPI/Prod/SENTRY_DSN]
data.aws_caller_identity.caller: Reading...
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-prospectapi-prod-images]
data.aws_caller_identity.caller: Read complete after 0s [id=996905175585]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_sns_topic.backend_notifications: Reading...
aws_codedeploy_app.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-app_E422EADB: Refreshing state... [id=dbae451c-82d5-40e2-b87b-f875a257b76b:ProspectAPI-Prod-Sqs-Translation-Lambda]
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Reading...
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=prospectapi-prod-app]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_assume-policy-document_58FCE41C: Read complete after 0s [id=1349007126]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 0s [id=arn:aws:kms:us-east-1:996905175585:alias/aws/secretsmanager]
data.aws_kms_alias.kms_alias: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
aws_codedeploy_app.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-app_32ED4D33: Refreshing state... [id=625aa668-29d5-4cb5-8dfd-832ffbb37d92:ProspectAPI-Prod-Sqs-Bridge-Lambda]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Read complete after 0s [id=/Shared/PrivateSubnets]
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:996905175585:cluster/ProspectAPI-Prod]
data.aws_kms_alias.kms_alias: Read complete after 0s [id=arn:aws:kms:us-east-1:996905175585:alias/aws/secretsmanager]
data.aws_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: Read complete after 0s [id=arn:aws:kms:us-east-1:996905175585:alias/aws/secretsmanager]
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_caller_identity.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Read complete after 0s [id=996905175585]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=996905175585]
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:996905175585:ProspectAPI-Prod-Infrastructure-Alarm-Non-Critical]
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:996905175585:Backend-Prod-ChatBot]
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:996905175585:alias/aws/secretsmanager]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Reading...
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_vpc_ssm_param_55487FEE: Read complete after 0s [id=/Shared/Vpc]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Read complete after 0s [id=arn:aws:firehose:us-east-1:996905175585:deliverystream/MetaflowTools-Prod-1-RecsAPICandidateSet]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=996905175585]
aws_s3_bucket.bridge-lambda_bridge-sqs-lambda_code-bucket_8EFA52B9: Refreshing state... [id=pocket-prospectapi-prod-sqs-bridge]
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:996905175585:ProspectAPI-Prod-Infrastructure-Alarm-Critical]
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Read complete after 0s [id=/Shared/PrivateSubnets]
data.terraform_remote_state.incident_management: Read complete after 1s
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Read complete after 0s [id=/ProspectAPI/CircleCI/Prod/SERVICE_HASH]
aws_s3_bucket.translation-lambda_translation-sqs-lambda_code-bucket_8041EB81: Refreshing state... [id=pocket-prospectapi-prod-sqs-translation]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/ProspectAPI-Prod/ecs/app]
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_25D64172: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/996905175585/ProspectAPI-Prod-Sqs-Translation-Queue-Deadletter]
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=996905175585]
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:996905175585:certificate/aaca1e96-52cf-4265-bba6-14934b83575a]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_5DC37CC2: Read complete after 0s [id=4250039221]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Read complete after 0s [id=/Shared/Vpc]
data.aws_region.region: Reading...
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Reading...
data.aws_region.region: Read complete after 0s [id=us-east-1]
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_DC564871: Read complete after 0s [id=4250039221]
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Read complete after 0s [id=996905175585]
aws_iam_role.bridge-lambda_bridge-sqs-lambda_execution-role_F8CF76A9: Refreshing state... [id=ProspectAPI-Prod-Sqs-Bridge-ExecutionRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=ProspectAPI-Prod-TaskRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=ProspectAPI-Prod-TaskExecutionRole]
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Read complete after 0s [id=us-east-1]
data.aws_vpc.pocket-vpc_2587E211: Reading...
aws_sqs_queue.bridge-lambda_bridge-sqs-lambda_lambda_sqs_queue_26C8CFD1: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/996905175585/ProspectAPI-Prod-Sqs-Bridge-Queue]
aws_iam_role.translation-lambda_translation-sqs-lambda_execution-role_C2F15DF6: Refreshing state... [id=ProspectAPI-Prod-Sqs-Translation-ExecutionRole]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 0s [id=Z2BHWTOWFVNW3M]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:996905175585:notificationrule/3348ec81293152bcb3447e3b4ff7bedadca9616c]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=prospectapi-prod-app]
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=PTPUWNY]
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=PWLFWML]
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=ProspectAPI-Prod-ECSCodeDeployRole]
aws_iam_role.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-role_4D2F29B7: Refreshing state... [id=ProspectAPI-Prod-Sqs-Bridge-CodeDeployRole]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Reading...
aws_sqs_queue.translation-lambda_translation-sqs-lambda_lambda_sqs_queue_486217BD: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/996905175585/ProspectAPI-Prod-Sqs-Translation-Queue]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Read complete after 0s [id=2380310928]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=1693816825]
aws_iam_role.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-role_9208AEE5: Refreshing state... [id=ProspectAPI-Prod-Sqs-Translation-CodeDeployRole]
aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9: Refreshing state... [id=arn:aws:iam::996905175585:policy/ProspectAPI-Prod-Sqs-Translation-ExecutionRolePolicy]
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=Z2BHWTOWFVNW3M_prospect-api.readitlater.com_NS]
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Reading...
data.aws_iam_policy_document.bridge-lambda_iam_sqs_policy_03F0BF30: Read complete after 0s [id=177125608]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_lambda_sqs_policy_3BC2AB53: Read complete after 0s [id=583475576]
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z09066042I4VRK8QUOWL0__809538e5524c21efef99ef976bbeaf0b.prospect-api.readitlater.com._CNAME]
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Read complete after 1s [id=vpc-867638e3]
aws_s3_bucket_public_access_block.bridge-lambda_bridge-sqs-lambda_code-bucket-public-access-block_F15A60E0: Refreshing state... [id=pocket-prospectapi-prod-sqs-bridge]
aws_s3_bucket_ownership_controls.bridge-lambda_bridge-sqs-lambda_code-bucket-ownership-controls_1F0D6BBB: Refreshing state... [id=pocket-prospectapi-prod-sqs-bridge]
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 1s [id=vpc-867638e3]
aws_s3_bucket_public_access_block.translation-lambda_translation-sqs-lambda_code-bucket-public-access-block_68EE0417: Refreshing state... [id=pocket-prospectapi-prod-sqs-translation]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 1s [id=vpc-867638e3]
aws_s3_bucket_ownership_controls.translation-lambda_translation-sqs-lambda_code-bucket-ownership-controls_0A8BE3B3: Refreshing state... [id=pocket-prospectapi-prod-sqs-translation]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=ProspectAPI-Prod-TaskExecutionRole-2021092316174733770000000b]
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 1s [id=PZQ6AUS]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=ProspectAPI-Prod]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_9040A119: Refreshing state... [id=ProspectAPI-Prod-Sqs-Bridge-CodeDeployRole-20240129173740049100000001]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Read complete after 0s [id=vpc-867638e3]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=ProspectAPI-Prod-ECSCodeDeployRole-20210923161747031900000008]
aws_codedeploy_deployment_group.bridge-lambda_bridge-sqs-lambda_lambda-code-deploy_code-deployment-group_BBEED2C6: Refreshing state... [id=def6d252-9017-4000-b12f-8b45a3eb1a97]
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_execution-policy_C0CB0661: Refreshing state... [id=arn:aws:iam::996905175585:policy/ProspectAPI-Prod-Sqs-Bridge-ExecutionRolePolicy]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Reading...
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_lambda_sqs_policy_FC6424CF: Read complete after 0s [id=4187296312]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::996905175585:policy/ProspectAPI-Prod-TaskExecutionRolePolicy]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::996905175585:policy/ProspectAPI-Prod-TaskRolePolicy]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_88071B62: Refreshing state... [id=ProspectAPI-Prod-Sqs-Translation-CodeDeployRole-20210930215206762900000001]
aws_codedeploy_deployment_group.translation-lambda_translation-sqs-lambda_lambda-code-deploy_code-deployment-group_064B3F38: Refreshing state... [id=275b5c74-14aa-412e-b9a2-0904a3a193c8]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9BEA8A61: Refreshing state... [id=ProspectAPI-Prod-Sqs-Translation-ExecutionRole-20210930215946149800000001]
aws_iam_policy.bridge-lambda_iam-sqs-policy_08CAA544: Refreshing state... [id=arn:aws:iam::996905175585:policy/IAM-ProspectAPI-Prod-QueuePolicy]
aws_iam_policy.bridge-lambda_bridge-sqs-lambda_sqs-policy_3397A47E: Refreshing state... [id=arn:aws:iam::996905175585:policy/ProspectAPI-Prod-Sqs-Bridge-LambdaSQSPolicy]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 1s [id=PKAPG94]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Reading...
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Reading...
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Reading...
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Reading...
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:targetgroup/PROAPI20210923161746487200000005/bef8c96d0b9c54f8]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-00a0505366a83efd2]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: Read complete after 0s [id=us-east-1]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Read complete after 0s [id=us-east-1]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Read complete after 0s [id=us-east-1]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:targetgroup/PROAPI20210923161746787700000007/e8c6e309743debcb]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 0s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=04a0e9555648efde4845e0145be8dfd912f7a76c]
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Reading...
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Reading...
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Reading...
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Reading...
aws_s3_bucket_acl.bridge-lambda_bridge-sqs-lambda_code-bucket-acl_8894DA8F: Refreshing state... [id=pocket-prospectapi-prod-sqs-bridge,private]
aws_iam_policy.translation-lambda_translation-sqs-lambda_sqs-policy_1811B7AA: Refreshing state... [id=arn:aws:iam::996905175585:policy/ProspectAPI-Prod-Sqs-Translation-LambdaSQSPolicy]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
data.aws_subnets.translation-lambda_pocket-shared-vpc_public_subnet_ids_F62D4FF8: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=ProspectAPI-Prod-TaskRole-20210923161747141700000009]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_74C92A99: Refreshing state... [id=ProspectAPI-Prod-Sqs-Bridge-ExecutionRole-20240129173740067700000002]
aws_s3_bucket_acl.translation-lambda_translation-sqs-lambda_code-bucket-acl_51DA7819: Refreshing state... [id=pocket-prospectapi-prod-sqs-translation,private]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2021-09-23 16:19:09 +0000 UTC]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: Read complete after 0s [id=us-east-1]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=ProspectAPI-Prod-TaskExecutionRole-2021092316174730590000000a]
data.aws_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=POCIKQC]
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Read complete after 0s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=PSP6L32]
aws_iam_user_policy_attachment.bridge-lambda_iam-sqs-user-policy-attachment_2DD4C358: Refreshing state... [id=ProspectAPI-Prod-Queue-User-20240207191610430300000001]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=P83XJBP]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=PVLULFS]
aws_iam_role_policy_attachment.bridge-lambda_bridge-sqs-lambda_execution-role-policy-attachment_273DD1B7: Refreshing state... [id=ProspectAPI-Prod-Sqs-Bridge-ExecutionRole-20240129173831205600000003]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Refreshing state... [id=ProspectAPI-Prod-Sqs-Bridge-Function]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-05d724400f22e3055]
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:loadbalancer/app/PROAPI2021092316174802200000000c/d452bda5087b0641]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Refreshing state... [id=ProspectAPI-Prod-Sqs-Translation-Function]
aws_iam_role_policy_attachment.translation-lambda_translation-sqs-lambda_execution-role-policy-attachment_9054A7C3: Refreshing state... [id=ProspectAPI-Prod-Sqs-Translation-ExecutionRole-20210930215207241500000002]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:996905175585:ProspectAPI-Prod-Infrastructure-Alarm-Non-Critical:6c203178-e737-4d4e-a3f6-e4b44c845273]
aws_cloudwatch_log_group.bridge-lambda_bridge-sqs-lambda_log-group_617CC958: Refreshing state... [id=/aws/lambda/ProspectAPI-Prod-Sqs-Bridge-Function]
aws_lambda_alias.bridge-lambda_bridge-sqs-lambda_alias_EC42B87F: Refreshing state... [id=arn:aws:lambda:us-east-1:996905175585:function:ProspectAPI-Prod-Sqs-Bridge-Function:DEPLOYED]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:996905175585:ProspectAPI-Prod-Infrastructure-Alarm-Critical:f2555335-881c-4a7a-bed5-281a5358db7c]
aws_lambda_event_source_mapping.bridge-lambda_bridge-sqs-lambda_lambda_event_source_mapping_1EF01E53: Refreshing state... [id=397d01dc-1713-404b-9d28-dcbe47885289]
aws_cloudwatch_log_group.translation-lambda_translation-sqs-lambda_log-group_CAF5915B: Refreshing state... [id=/aws/lambda/ProspectAPI-Prod-Sqs-Translation-Function]
aws_lambda_alias.translation-lambda_translation-sqs-lambda_alias_10FF84BB: Refreshing state... [id=arn:aws:lambda:us-east-1:996905175585:function:ProspectAPI-Prod-Sqs-Translation-Function:DEPLOYED]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:listener/app/PROAPI2021092316174802200000000c/d452bda5087b0641/a5230e6a1cae2585]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z09066042I4VRK8QUOWL0_prospect-api.readitlater.com_A_1]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:listener/app/PROAPI2021092316174802200000000c/d452bda5087b0641/9b74d383f847df30]
aws_cloudwatch_metric_alarm.application_alarm-httptarget5xxerrorrate_F94D87C0: Refreshing state... [id=ProspectAPI-Prod-Alarm-HTTPTarget5xxErrorRate]
aws_lambda_event_source_mapping.translation-lambda_translation-sqs-lambda_lambda_event_source_mapping_49D092A6: Refreshing state... [id=6c2bd47b-7605-4a7a-a15e-5518d05f8651]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:listener-rule/app/PROAPI2021092316174802200000000c/d452bda5087b0641/9b74d383f847df30/8a9e19fa9f0d9df0]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:996905175585:service/ProspectAPI-Prod/ProspectAPI-Prod]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=5d36805a-10c0-4f99-8823-7e63b7400869]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/ProspectAPI-Prod/ProspectAPI-Prod]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=ProspectAPI-Prod]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=ProspectAPI-Prod-ScaleOutPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=ProspectAPI-Prod-ScaleInPolicy]
null_resource.application_ecs_service_update-task-definition_D19A511D: Refreshing state... [id=2212550692137011013]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=ProspectAPI-Prod Service High CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=ProspectAPI-Prod Service Low CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
 <= read (data resources)

Terraform will perform the following actions:

  # data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "dynamodb:BatchGet*",
              + "dynamodb:DescribeTable",
              + "dynamodb:Get*",
              + "dynamodb:Query",
              + "dynamodb:Scan",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects",
              + "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "s3:*",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:s3:::pocket-prospectapi-prod-images",
              + "arn:aws:s3:::pocket-prospectapi-prod-images/*",
            ]
        }
      + statement {
          + actions   = [
              + "events:PutEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:events:us-east-1:996905175585:event-bus/PocketEventBridge-Prod-Shared-Event-Bus",
            ]
        }
    }

  # data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "aws_iam_policy_document" "translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E" {
      + id      = (known after apply)
      + json    = (known after apply)
      + version = "2012-10-17"

      + statement {
          + actions   = [
              + "logs:CreateLogGroup",
              + "logs:CreateLogStream",
              + "logs:DescribeLogStreams",
              + "logs:PutLogEvents",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:logs:*:*:*",
            ]
        }
      + statement {
          + actions   = [
              + "dynamodb:BatchWriteItem",
              + "dynamodb:DescribeTable",
              + "dynamodb:PutItem",
              + "dynamodb:Query",
              + "dynamodb:UpdateItem",
            ]
          + effect    = "Allow"
          + resources = [
              + "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects",
              + "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects/*",
            ]
        }
      + statement {
          + actions   = [
              + "ec2:AttachNetworkInterface",
              + "ec2:CreateNetworkInterface",
              + "ec2:DeleteNetworkInterface",
              + "ec2:DescribeInstances",
              + "ec2:DescribeNetworkInterfaces",
            ]
          + effect    = "Allow"
          + resources = [
              + "*",
            ]
        }
    }

  # aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E will be updated in-place
  ~ resource "aws_dynamodb_table" "dynamodb_prospects_dynamodb_table_9854E41E" {
        id                          = "PROAPI-Prod-Prospects"
        name                        = "PROAPI-Prod-Prospects"
        tags                        = {
            "environment" = "Prod"
            "service"     = "ProspectAPI"
        }
        # (9 unchanged attributes hidden)

      - global_secondary_index {
          - hash_key           = "scheduledSurfaceGuid" -> null
          - name               = "scheduledSurfaceGuid-prospectType" -> null
          - non_key_attributes = [] -> null
          - projection_type    = "ALL" -> null
          - range_key          = "prospectType" -> null
          - read_capacity      = 0 -> null
          - write_capacity     = 0 -> null
        }
      + global_secondary_index {
          + hash_key           = "scheduledSurfaceGuid"
          + name               = "scheduledSurfaceGuid-prospectType"
          + non_key_attributes = []
          + projection_type    = "ALL"
          + range_key          = "prospectType"
          + read_capacity      = 5
          + write_capacity     = 5
        }

        # (5 unchanged blocks hidden)
    }

  # aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6 will be updated in-place
  ~ resource "aws_iam_policy" "application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6" {
        id        = "arn:aws:iam::996905175585:policy/ProspectAPI-Prod-TaskRolePolicy"
        name      = "ProspectAPI-Prod-TaskRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Scan",
                          - "dynamodb:Query",
                          - "dynamodb:Get*",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchGet*",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects",
                        ]
                      - Sid      = ""
                    },
                  - {
                      - Action   = "s3:*"
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:s3:::pocket-prospectapi-prod-images/*",
                          - "arn:aws:s3:::pocket-prospectapi-prod-images",
                        ]
                      - Sid      = ""
                    },
                  - {
                      - Action   = "events:PutEvents"
                      - Effect   = "Allow"
                      - Resource = "arn:aws:events:us-east-1:996905175585:event-bus/PocketEventBridge-Prod-Shared-Event-Bus"
                      - Sid      = ""
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Prod"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_iam_policy.translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9 will be updated in-place
  ~ resource "aws_iam_policy" "translation-lambda_translation-sqs-lambda_execution-policy_E70E40B9" {
        id        = "arn:aws:iam::996905175585:policy/ProspectAPI-Prod-Sqs-Translation-ExecutionRolePolicy"
        name      = "ProspectAPI-Prod-Sqs-Translation-ExecutionRolePolicy"
      ~ policy    = jsonencode(
            {
              - Statement = [
                  - {
                      - Action   = [
                          - "logs:PutLogEvents",
                          - "logs:DescribeLogStreams",
                          - "logs:CreateLogStream",
                          - "logs:CreateLogGroup",
                        ]
                      - Effect   = "Allow"
                      - Resource = "arn:aws:logs:*:*:*"
                      - Sid      = ""
                    },
                  - {
                      - Action   = [
                          - "dynamodb:UpdateItem",
                          - "dynamodb:Query",
                          - "dynamodb:PutItem",
                          - "dynamodb:DescribeTable",
                          - "dynamodb:BatchWriteItem",
                        ]
                      - Effect   = "Allow"
                      - Resource = [
                          - "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects/*",
                          - "arn:aws:dynamodb:us-east-1:996905175585:table/PROAPI-Prod-Prospects",
                        ]
                      - Sid      = ""
                    },
                  - {
                      - Action   = [
                          - "ec2:DescribeNetworkInterfaces",
                          - "ec2:DescribeInstances",
                          - "ec2:DeleteNetworkInterface",
                          - "ec2:CreateNetworkInterface",
                          - "ec2:AttachNetworkInterface",
                        ]
                      - Effect   = "Allow"
                      - Resource = "*"
                      - Sid      = ""
                    },
                ]
              - Version   = "2012-10-17"
            }
        ) -> (known after apply)
        tags      = {
            "environment" = "Prod"
            "service"     = "ProspectAPI"
        }
        # (4 unchanged attributes hidden)
    }

  # aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A will be updated in-place
  ~ resource "aws_lambda_function" "bridge-lambda_bridge-sqs-lambda_343B543A" {
        id                             = "ProspectAPI-Prod-Sqs-Bridge-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:996905175585:function:ProspectAPI-Prod-Sqs-Bridge-Function:95" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:996905175585:function:ProspectAPI-Prod-Sqs-Bridge-Function:95/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Prod"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "95" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                  = (sensitive value)
                # (5 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA will be updated in-place
  ~ resource "aws_lambda_function" "translation-lambda_translation-sqs-lambda_B9BDF6BA" {
        id                             = "ProspectAPI-Prod-Sqs-Translation-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:996905175585:function:ProspectAPI-Prod-Sqs-Translation-Function:923" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:996905175585:function:ProspectAPI-Prod-Sqs-Translation-Function:923/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Prod"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "923" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                      = (sensitive value)
                # (3 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4026
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:996905175585:task-definition/ProspectAPI-Prod:400"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

Plan: 1 to add, 5 to change, 0 to destroy.
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Modifying... [id=ProspectAPI-Prod-Sqs-Bridge-Function]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifying... [id=PROAPI-Prod-Prospects]
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Modifications complete after 0s [id=PROAPI-Prod-Prospects]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=493413709]
data.aws_iam_policy_document.translation-lambda_translation-sqs-lambda_execution-policy-document_94EBBD6E: Read complete after 0s [id=4205120356]
local_file.application_ecs_service_appspec_94386B9C: Creating...
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 0s [id=04a0e9555648efde4845e0145be8dfd912f7a76c]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Modifying... [id=ProspectAPI-Prod-Sqs-Translation-Function]
aws_lambda_function.translation-lambda_translation-sqs-lambda_B9BDF6BA: Modifications complete after 8s [id=ProspectAPI-Prod-Sqs-Translation-Function]
aws_lambda_function.bridge-lambda_bridge-sqs-lambda_343B543A: Modifications complete after 8s [id=ProspectAPI-Prod-Sqs-Bridge-Function]

Apply complete! Resources: 1 added, 3 changed, 0 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (curated-corpus-api-cdk)

CI link

Apply complete! Resources: 2 added, 0 changed, 1 destroyed.
Details (Click me)
data.terraform_remote_state.incident_management: Reading...
data.aws_region.application_pocket_vpc_current_region_7774DA97: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Reading...
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z03494167S821NUQL37C]
aws_sns_topic.pagerduty_alarm-non-critical-topic_53C1A3B3: Refreshing state... [id=arn:aws:sns:us-east-1:996905175585:CuratedCorpusAPI-Prod-Infrastructure-Alarm-Non-Critical]
data.aws_region.application_pocket_vpc_current_region_7774DA97: Read complete after 0s [id=us-east-1]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/CuratedCorpusAPI-Prod/ecs/app]
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=curatedcorpusapi-prod-app]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=996905175585]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 0s [id=arn:aws:kms:us-east-1:996905175585:alias/aws/secretsmanager]
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=ac6c7966-0865-4bea-bbb1-aaa0740267bb:CuratedCorpusAPI-Prod-ECS]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
aws_s3_bucket.synthetics_synthetics_synthetic_check_artifacts_53DD59E6: Refreshing state... [id=pocket-curatedcorpusapi-prod-synthetic-checks]
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:996905175585:cluster/CuratedCorpusAPI-Prod]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_region.region: Reading...
data.aws_region.region: Read complete after 0s [id=us-east-1]
aws_sns_topic.pagerduty_alarm-critical-topic_F1534579: Refreshing state... [id=arn:aws:sns:us-east-1:996905175585:CuratedCorpusAPI-Prod-Infrastructure-Alarm-Critical]
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
data.aws_kms_alias.kms_alias: Reading...
data.aws_kms_alias.kms_alias: Read complete after 1s [id=arn:aws:kms:us-east-1:996905175585:alias/aws/secretsmanager]
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 1s [id=996905175585]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.caller: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=996905175585]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_caller_identity.caller: Read complete after 0s [id=996905175585]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Reading...
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Read complete after 0s [id=2690255455]
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-curatedcorpusapi-prod-images]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
aws_acm_certificate.application_alb_certificate_93966247: Refreshing state... [id=arn:aws:acm:us-east-1:996905175585:certificate/50230970-bd95-4bf6-a27d-c23ef98f20f9]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_sns_topic.backend_notifications: Reading...
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:996905175585:alias/aws/secretsmanager]
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=CuratedCorpusAPI-Prod-ECSCodeDeployRole]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Read complete after 0s [id=/Shared/PrivateSubnets]
data.terraform_remote_state.incident_management: Read complete after 1s
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=CuratedCorpusAPI-Prod-TaskRole]
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=CuratedCorpusAPI-Prod-TaskExecutionRole]
data.aws_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_sns_topic.backend_notifications: Read complete after 0s [id=arn:aws:sns:us-east-1:996905175585:Backend-Prod-ChatBot]
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 0s [id=Z2BHWTOWFVNW3M]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=curatedcorpusapi-prod-app]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Reading...
aws_iam_role.synthetics_synthetic_check_role_A3A5C38B: Refreshing state... [id=pocket-curatedcorpusapi-prod-synthetic-check]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-execution-role-policy_015FDEBA: Read complete after 0s [id=3927035254]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
aws_codestarnotifications_notification_rule.application_ecs_service_ecs_codedeploy_ecs_codedeploy_notifications_CB44EADE: Refreshing state... [id=arn:aws:codestar-notifications:us-east-1:996905175585:notificationrule/9bee4f95363a9bb617002122bc072944a51a4633]
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=Z2BHWTOWFVNW3M_curated-corpus-api.readitlater.com_NS]
aws_route53_record.application_alb_certificate_certificate_record_51B45CF2: Refreshing state... [id=Z03494167S821NUQL37C__1f6523a9330982ec08f3626843c5271a.curated-corpus-api.readitlater.com._CNAME]
aws_s3_bucket_lifecycle_configuration.synthetics_synthetics_synthetic_check_artifacts_lifecycle_5A7B9150: Refreshing state... [id=pocket-curatedcorpusapi-prod-synthetic-checks]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_access_4C83FECF: Reading...
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-execution-role-policy_2D469A77: Refreshing state... [id=arn:aws:iam::996905175585:policy/CuratedCorpusAPI-Prod-TaskExecutionRolePolicy]
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_access_4C83FECF: Read complete after 0s [id=1243659561]
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=PFYUN4B]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=CuratedCorpusAPI-Prod-ECSCodeDeployRole-2021092100430979470000000f]
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=PBM69SO]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-default-attachment_99A621FF: Refreshing state... [id=CuratedCorpusAPI-Prod-TaskExecutionRole-2021092100430957110000000d]
aws_iam_policy.synthetics_synthetics_synthetic_check_access_policy_9A7D8849: Refreshing state... [id=arn:aws:iam::996905175585:policy/pocket-curatedcorpusapi-prod-synthetic-check-access]
aws_s3_bucket_ownership_controls.pocket-curatedcorpusapi-prod-images: Refreshing state... [id=pocket-curatedcorpusapi-prod-images]
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Reading...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_data-ecs-task-role-policy_090CC3AD: Read complete after 0s [id=726549160]
aws_s3_bucket_public_access_block.pocket-curatedcorpusapi-prod-images: Refreshing state... [id=pocket-curatedcorpusapi-prod-images]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-execution-custom-attachment_046B7E2E: Refreshing state... [id=CuratedCorpusAPI-Prod-TaskExecutionRole-2021092100430973440000000e]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2021-09-21 00:44:02 +0000 UTC]
aws_iam_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::996905175585:policy/CuratedCorpusAPI-Prod-TaskRolePolicy]
aws_iam_role_policy_attachment.synthetics_synthetics_synthetic_check_access_attach_BC7F9559: Refreshing state... [id=pocket-curatedcorpusapi-prod-synthetic-check-20230531004034104400000001]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 0s [id=vpc-867638e3]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_vpc.rds_vpc_9E5B9996: Reading...
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 0s [id=vpc-867638e3]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 0s [id=PKAPG94]
aws_alb_target_group.application_ecs_service_green_target_group_ecs_target_group_4E06DCA6: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:targetgroup/CCSAPI20210921004259345600000003/d74ab65e104216c9]
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 0s [id=PZQ6AUS]
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-09f9ae2df21555791]
data.aws_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
data.aws_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Read complete after 0s [id=us-east-1]
aws_alb_target_group.application_ecs_service_blue_target_group_ecs_target_group_4A9BF49B: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:targetgroup/CCSAPI20210921004259652600000005/8d13dc795542a32e]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=CuratedCorpusAPI-Prod-TaskRole-2021092100430722550000000a]
aws_db_subnet_group.rds_rds_subnet_group_796D20B7: Refreshing state... [id=curatedcorpusapi-prod20210921004301433000000008]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_uptime_0_4168D0DB: Refreshing state... [id=ccsapi-prod-uptime-0]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_query_0_99E4AE1B: Refreshing state... [id=ccsapi-prod-query-0]
aws_security_group.application_ecs_service_ecs_security_group_231C6B1E: Refreshing state... [id=sg-0e362cd05cfe9b1e9]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 1s [id=us-east-1]
aws_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:loadbalancer/app/CCSAPI2021092100430851810000000c/ff14042c695793f2]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Read complete after 1s [id=us-east-1]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=PSB2SW6]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-non-critical_EFA67B2C: Refreshing state... [id=P8STR4T]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=PP1ERGG]
data.aws_vpc.rds_vpc_9E5B9996: Read complete after 1s [id=vpc-867638e3]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=PWNQT8W]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Refreshing state... [id=ccsapi-prod-uptime-0]
aws_security_group.rds_rds_security_group_B7738CEB: Refreshing state... [id=sg-0c8ee3c7b1f6e1b6b]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Refreshing state... [id=ccsapi-prod-query-0]
aws_sns_topic_subscription.pagerduty_alarm-non-critical-subscription_4702677B: Refreshing state... [id=arn:aws:sns:us-east-1:996905175585:CuratedCorpusAPI-Prod-Infrastructure-Alarm-Non-Critical:c33cee90-c174-4de9-addb-695ae0a94ecd]
aws_alb_listener.application_listener_https_D31CB055: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:listener/app/CCSAPI2021092100430851810000000c/ff14042c695793f2/ba6eb88e3d65111a]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z03494167S821NUQL37C_curated-corpus-api.readitlater.com_A_1]
aws_cloudwatch_metric_alarm.application_alarm-httpresponsetime_9124C30A: Refreshing state... [id=CuratedCorpusAPI-Prod-Alarm-HTTPResponseTime]
aws_sns_topic_subscription.pagerduty_alarm-critical-subscription_E2168B84: Refreshing state... [id=arn:aws:sns:us-east-1:996905175585:CuratedCorpusAPI-Prod-Infrastructure-Alarm-Critical:7b5936d4-8639-4971-b097-7dfd00d7e65c]
aws_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:listener/app/CCSAPI2021092100430851810000000c/ff14042c695793f2/05ead18fb0e8badb]
aws_rds_cluster.rds_rds_cluster_1A0399FD: Refreshing state... [id=curatedcorpusapi-prod20210927235441510200000001]
aws_secretsmanager_secret.rds_rds_secret_A0401B27: Refreshing state... [id=arn:aws:secretsmanager:us-east-1:996905175585:secret:CuratedCorpusAPI-Prod/curatedcorpusapi-prod20210927235441510200000001-9IpWYR]
aws_alb_listener_rule.application_ecs_service_listener_rule_903F815F: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:996905175585:listener-rule/app/CCSAPI2021092100430851810000000c/ff14042c695793f2/ba6eb88e3d65111a/4212e0b07bfa1bf5]
aws_secretsmanager_secret_version.rds_rds_secret_version_11D8C2B1: Refreshing state... [id=arn:aws:secretsmanager:us-east-1:996905175585:secret:CuratedCorpusAPI-Prod/curatedcorpusapi-prod20210927235441510200000001-9IpWYR|50CE64F2-F4DF-4E84-9363-70D95CBF264D]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=CuratedCorpusAPI-Prod]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Refreshing state... [id=3985287213243613252]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=d4608950ef4ba6a8ebad5a233cbb03a0fdc4b66a]
aws_ecs_service.application_ecs_service_ecs-service_A8BAB5F4: Refreshing state... [id=arn:aws:ecs:us-east-1:996905175585:service/CuratedCorpusAPI-Prod/CuratedCorpusAPI-Prod]
aws_appautoscaling_target.application_autoscaling_autoscaling_target_42BF5C99: Refreshing state... [id=service/CuratedCorpusAPI-Prod/CuratedCorpusAPI-Prod]
aws_cloudwatch_dashboard.application_cloudwatch-dashboard_1F3DC0ED: Refreshing state... [id=CuratedCorpusAPI-Prod]
aws_codedeploy_deployment_group.application_ecs_service_ecs_codedeploy_ecs_codedeploy_deployment_group_48384247: Refreshing state... [id=22f917f2-5a44-49e4-ba20-bf92d766692b]
aws_appautoscaling_policy.application_autoscaling_scale_in_policy_BF273511: Refreshing state... [id=CuratedCorpusAPI-Prod-ScaleInPolicy]
aws_appautoscaling_policy.application_autoscaling_scale_out_policy_D03900A2: Refreshing state... [id=CuratedCorpusAPI-Prod-ScaleOutPolicy]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_out_alarm_E40FCBA0: Refreshing state... [id=CuratedCorpusAPI-Prod Service High CPU]
aws_cloudwatch_metric_alarm.application_autoscaling_scale_in_alarm_850BE3A1: Refreshing state... [id=CuratedCorpusAPI-Prod Service Low CPU]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # local_file.application_ecs_service_appspec_94386B9C will be created
  + resource "local_file" "application_ecs_service_appspec_94386B9C" {
      + content              = jsonencode(
            {
              + Resources = [
                  + {
                      + TargetService = {
                          + Properties = {
                              + LoadBalancerInfo = {
                                  + ContainerName = "app"
                                  + ContainerPort = 4025
                                }
                              + TaskDefinition   = "arn:aws:ecs:us-east-1:996905175585:task-definition/CuratedCorpusAPI-Prod:768"
                            }
                          + Type       = "AWS::ECS::Service"
                        }
                    },
                ]
              + version   = 1
            }
        )
      + content_base64sha256 = (known after apply)
      + content_base64sha512 = (known after apply)
      + content_md5          = (known after apply)
      + content_sha1         = (known after apply)
      + content_sha256       = (known after apply)
      + content_sha512       = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "appspec.json"
      + id                   = (known after apply)
    }

  # null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 must be replaced
-/+ resource "null_resource" "application_ecs_service_create-task-definition-file_6BADBAF7" {
      ~ id       = "3985287213243613252" -> (known after apply)
      ~ triggers = { # forces replacement
          ~ "alwaysRun" = "2024-03-14T22:26:52Z" -> (known after apply)
        }
    }

Plan: 2 to add, 0 to change, 1 to destroy.
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Destroying... [id=3985287213243613252]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Destruction complete after 0s
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creating...
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Provisioning with 'local-exec'...
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7 (local-exec): Executing: ["/bin/sh" "-c" "aws --region us-east-1 ecs describe-task-definition --task-definition CuratedCorpusAPI-Prod --query 'taskDefinition' >> taskdef.json"]
local_file.application_ecs_service_appspec_94386B9C: Creating...
local_file.application_ecs_service_appspec_94386B9C: Creation complete after 0s [id=d4608950ef4ba6a8ebad5a233cbb03a0fdc4b66a]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creation complete after 0s [id=7639937128368930139]

Apply complete! Resources: 2 added, 0 changed, 1 destroyed.

@pocket-ci
Copy link

✅ Apply Succeeded (corpus-scheduler-lambda-cdk)

CI link

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Details (Click me)
data.archive_file.corpus-scheduler-sqs-lambda_lambda-default-file_375743AB: Reading...
data.archive_file.corpus-scheduler-sqs-lambda_lambda-default-file_375743AB: Read complete after 0s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_enable-scheduled-date-validation_9EC987EA: Reading...
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_allowed-to-schedule_63A523D4: Reading...
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_sentry-dsn_CC90D271: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_B26D37EC: Reading...
aws_sqs_queue.corpus-scheduler-sqs-lambda_lambda_sqs_queue_redrive_sqs_queue_9399287C: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/996905175585/CorpusSchedulerLambda-Prod-SQS-Queue-Deadletter]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Reading...
aws_s3_bucket.corpus-scheduler-sqs-lambda_code-bucket_71B015CC: Refreshing state... [id=pocket-corpusschedulerlambda-prod-sqs]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Read complete after 0s [id=1349007126]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-assume-role-policy-document_B26D37EC: Read complete after 0s [id=4250039221]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
aws_codedeploy_app.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-app_B02FBF37: Refreshing state... [id=644f3252-ab48-4e55-b8bb-7ed289893091:CorpusSchedulerLambda-Prod-SQS-Lambda]
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=996905175585]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Read complete after 0s [id=arn:aws:kms:us-east-1:996905175585:alias/aws/secretsmanager]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
aws_iam_role.corpus-scheduler-sqs-lambda_execution-role_EAF2C9FE: Refreshing state... [id=CorpusSchedulerLambda-Prod-SQS-ExecutionRole]
aws_iam_role.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-role_2D0E51C4: Refreshing state... [id=CorpusSchedulerLambda-Prod-SQS-CodeDeployRole]
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
aws_sqs_queue.corpus-scheduler-sqs-lambda_lambda_sqs_queue_162ECA18: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/996905175585/CorpusSchedulerLambda-Prod-SQS-Queue]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_sentry-dsn_CC90D271: Read complete after 0s [id=/CorpusSchedulerLambda/Prod/SENTRY_DSN]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_allowed-to-schedule_63A523D4: Read complete after 0s [id=/CorpusSchedulerLambda/Prod/ALLOWED_TO_SCHEDULE]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Reading...
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_enable-scheduled-date-validation_9EC987EA: Read complete after 0s [id=/CorpusSchedulerLambda/Prod/ENABLE_SCHEDULED_DATE_VALIDATION]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Read complete after 0s [id=3873131706]
data.aws_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Read complete after 0s [id=/CorpusSchedulerLambda/CircleCI/Prod/SERVICE_HASH]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda_sqs_policy_4779D776: Reading...
data.aws_iam_policy_document.corpus-scheduler-ml-user-policy_iam_sqs_policy_2CE4E3DF: Reading...
aws_iam_policy.corpus-scheduler-sqs-lambda_execution-policy_CF929AE3: Refreshing state... [id=arn:aws:iam::996905175585:policy/CorpusSchedulerLambda-Prod-SQS-ExecutionRolePolicy]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_lambda_sqs_policy_4779D776: Read complete after 0s [id=2389447581]
data.aws_iam_policy_document.corpus-scheduler-ml-user-policy_iam_sqs_policy_2CE4E3DF: Read complete after 0s [id=1717722170]
aws_iam_policy.corpus-scheduler-ml-user-policy_iam-sqs-policy_867A1D82: Refreshing state... [id=arn:aws:iam::996905175585:policy/IAM-CorpusSchedulerLambda-Prod-QueuePolicy]
aws_iam_policy.corpus-scheduler-sqs-lambda_sqs-policy_00D0B4DA: Refreshing state... [id=arn:aws:iam::996905175585:policy/CorpusSchedulerLambda-Prod-SQS-LambdaSQSPolicy]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_execution-role-policy-attachment_DCF8A6BE: Refreshing state... [id=CorpusSchedulerLambda-Prod-SQS-ExecutionRole-20240221180712092400000002]
aws_codedeploy_deployment_group.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deployment-group_E7DBB35A: Refreshing state... [id=8cf464e3-4dfd-4d79-9440-493933098f54]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_lambda-code-deploy_code-deploy-policy-attachment_13D4D586: Refreshing state... [id=CorpusSchedulerLambda-Prod-SQS-CodeDeployRole-20240221180712091900000001]
aws_iam_user_policy_attachment.corpus-scheduler-ml-user-policy_iam-sqs-user-policy-attachment_22113AFF: Refreshing state... [id=ProspectAPI-Prod-Queue-User-20240223212701487600000001]
aws_s3_bucket_public_access_block.corpus-scheduler-sqs-lambda_code-bucket-public-access-block_0345DD5C: Refreshing state... [id=pocket-corpusschedulerlambda-prod-sqs]
aws_s3_bucket_ownership_controls.corpus-scheduler-sqs-lambda_code-bucket-ownership-controls_F322EEAB: Refreshing state... [id=pocket-corpusschedulerlambda-prod-sqs]
aws_iam_role_policy_attachment.corpus-scheduler-sqs-lambda_execution-role-policy-attachment_B0FC2816: Refreshing state... [id=CorpusSchedulerLambda-Prod-SQS-ExecutionRole-20240221180802560200000003]
aws_s3_bucket_acl.corpus-scheduler-sqs-lambda_code-bucket-acl_F4BEB234: Refreshing state... [id=pocket-corpusschedulerlambda-prod-sqs,private]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 1s [id=vpc-867638e3]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Refreshing state... [id=CorpusSchedulerLambda-Prod-SQS-Function]
aws_lambda_alias.corpus-scheduler-sqs-lambda_alias_6B1DD07D: Refreshing state... [id=arn:aws:lambda:us-east-1:996905175585:function:CorpusSchedulerLambda-Prod-SQS-Function:DEPLOYED]
aws_cloudwatch_log_group.corpus-scheduler-sqs-lambda_log-group_7AB14A32: Refreshing state... [id=/aws/lambda/CorpusSchedulerLambda-Prod-SQS-Function]
aws_lambda_event_source_mapping.corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E: Refreshing state... [id=c825252e-e419-4a33-a3da-bae68fb95c0e]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F will be updated in-place
  ~ resource "aws_lambda_function" "corpus-scheduler-sqs-lambda_F2ECDF9F" {
        id                             = "CorpusSchedulerLambda-Prod-SQS-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:996905175585:function:CorpusSchedulerLambda-Prod-SQS-Function:32" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:996905175585:function:CorpusSchedulerLambda-Prod-SQS-Function:32/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Prod"
            "service"     = "CorpusSchedulerLambda"
        }
      ~ version                        = "32" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "GIT_SHA"                          = (sensitive value)
              + "SNOWPLOW_ENDPOINT"                = "d.getpocket.com"
                # (6 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Modifying... [id=CorpusSchedulerLambda-Prod-SQS-Function]
aws_lambda_function.corpus-scheduler-sqs-lambda_F2ECDF9F: Modifications complete after 7s [id=CorpusSchedulerLambda-Prod-SQS-Function]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

@katerinachinnappan katerinachinnappan deleted the mc-681-scheduler-snowplow-event-2 branch March 19, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants