Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
katerinachinnappan committed Feb 28, 2024
1 parent e24b889 commit f4ac740
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ export class CorpusSchedulerSQSLambda extends Construct {
'corpus-scheduler-sqs-lambda',
{
name: `${config.prefix}-SQS`,
// set batchSize to something reasonable
batchSize: 20,
// batch size is 1 so SQS doesn't get smart and try to combine them
// (a combined message will mean a skipped candidate set from ML)
batchSize: 1,
batchWindow: 60,
sqsQueue: {
visibilityTimeoutSeconds: 150,
Expand Down
2 changes: 1 addition & 1 deletion lambdas/corpus-scheduler-lambda/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const config = {
region: process.env.REGION || 'us-east-1',
},
AdminApi: isDev
? process.env.ADMIN_API_URI || 'http://localhost:4027'
? process.env.ADMIN_API_URI || 'https://admin-api.getpocket.dev'
: process.env.ADMIN_API_URI || 'https://admin-api.getpocket.com',
jwt: {
key: process.env.JWT_KEY || 'CorpusSchedulerLambda/Dev/JWT_KEY',
Expand Down

3 comments on commit f4ac740

@pocket-ci
Copy link

Choose a reason for hiding this comment

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

✅ 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.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: 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 1s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.archive_file.translation-lambda_translation-sqs-lambda_lambda-default-file_FF0D2463: Read complete after 1s [id=2b764d3b21b3c9f088f043bc205556d3519be551]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Reading...
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Reading...
data.aws_caller_identity.pocket-vpc_current_identity_8303C1C9: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Reading...
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Reading...
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_assume-policy-document_8B36637A: Reading...
aws_ecr_repository.application_ecs_service_ecr-app_ecr-repo_ABFE17F0: Refreshing state... [id=prospectapi-dev-app]
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]
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_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: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
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.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
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_service-hash_BACE0E97: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_public_subnets_242E3139: 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_ssm_parameter.application_pocket_vpc_vpc_ssm_param_DD9C7A4F: Read complete after 0s [id=/Shared/Vpc]
data.aws_region.bridge-lambda_pocket-shared-vpc_current_region_3DA75732: Read complete after 0s [id=us-east-1]
data.aws_caller_identity.caller: 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_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
data.aws_ssm_parameter.bridge-lambda_service-hash_BACE0E97: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Reading...
data.aws_region.region: 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...
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_iam_policy_document.application_ecs_service_ecs_codedeploy_codedeploy_assume_role_C76E7224: Read complete after 0s [id=4250039221]
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.application_pocket_vpc_secrets_manager_key_2C3C8766: Read complete after 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-prospectapi-dev-images]
data.aws_sns_topic.backend_notifications: Reading...
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/ProspectAPI-Dev/ecs/app]
data.terraform_remote_state.incident_management: Read complete after 1s
aws_s3_bucket.translation-lambda_translation-sqs-lambda_code-bucket_8041EB81: Refreshing state... [id=pocket-prospectapi-dev-sqs-translation]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: 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_kms_alias.kms_alias: 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_ssm_parameter.bridge-lambda_pocket-shared-vpc_private_subnets_A014BE06: Read complete after 0s [id=/Shared/PrivateSubnets]
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_kms_alias.bridge-lambda_pocket-shared-vpc_secrets_manager_key_5CE4350D: 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.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: 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.translation-lambda_pocket-shared-vpc_current_identity_FA43F309: Read complete after 0s [id=410318598490]
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]
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_ssm_parameter.translation-lambda_service-hash_F58F05EF: Reading...
data.aws_kinesis_firehose_delivery_stream.bridge-lambda_metaflow-firehose_F5AB78B3: Reading...
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Reading...
aws_dynamodb_table.dynamodb_prospects_dynamodb_table_9854E41E: Refreshing state... [id=PROAPI-Dev-Prospects]
data.aws_ssm_parameter.application_pocket_vpc_public_subnets_282A59F4: Read complete after 0s [id=/Shared/PublicSubnets]
data.aws_kms_alias.pocket-vpc_secrets_manager_key_BF1637BF: Reading...
data.aws_ssm_parameter.translation-lambda_service-hash_F58F05EF: Read complete after 0s [id=/ProspectAPI/CircleCI/Dev/SERVICE_HASH]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 0s [id=ZCSIDA846KWLN]
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...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: 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.application_ecs_service_ecs-iam_ecs-task-assume_05903663: Read complete after 0s [id=1077804475]
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: 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: Read complete after 0s [id=4250039221]
data.aws_region.translation-lambda_pocket-shared-vpc_current_region_4915DE88: 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.pocket-vpc_current_region_1602AAD6: Reading...
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_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
aws_codedeploy_app.application_ecs_service_ecs_codedeploy_ecs_code_deploy_C2F7CBCF: Refreshing state... [id=4ee018c2-d5c1-4bf8-b940-2f4894b7a04b:ProspectAPI-Dev-ECS]
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_vpc_ssm_param_55487FEE: Read complete after 0s [id=/Shared/Vpc]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Reading...
data.aws_ssm_parameter.bridge-lambda_pocket-shared-vpc_public_subnets_144B4EA0: Read complete after 0s [id=/Shared/PublicSubnets]
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z07747349K0HE9ZG8VFL]
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_vpc_ssm_param_8DFBB095: Read complete after 0s [id=/Shared/Vpc]
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]
aws_iam_user.bridge-lambda_iam_user_EB469160: Refreshing state... [id=ProspectAPI-Dev-Queue-User]
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Reading...
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 1s [id=PZQ6AUS]
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Reading...
aws_iam_role.bridge-lambda_bridge-sqs-lambda_execution-role_F8CF76A9: Refreshing state... [id=ProspectAPI-Dev-Sqs-Bridge-ExecutionRole]
data.aws_caller_identity.bridge-lambda_pocket-shared-vpc_current_identity_3422E253: Read complete after 0s [id=410318598490]
data.aws_vpc.pocket-vpc_2587E211: Reading...
data.aws_ssm_parameter.translation-lambda_pocket-shared-vpc_private_subnets_8A1FDA95: Read complete after 0s [id=/Shared/PrivateSubnets]
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=prospectapi-dev-app]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
data.aws_ssm_parameter.translation-lambda_sentry-dsn_FBCEB305: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
data.aws_ssm_parameter.bridge-lambda_sentry-dsn_6923D1E6: Read complete after 0s [id=/ProspectAPI/Dev/SENTRY_DSN]
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=P8OH57E]
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=POL55K4]
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole]
aws_iam_role.translation-lambda_translation-sqs-lambda_execution-role_C2F15DF6: Refreshing state... [id=ProspectAPI-Dev-Sqs-Translation-ExecutionRole]
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.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_sentry_FFB12B7C: Read complete after 1s [id=PKAPG94]
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.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=ProspectAPI-Dev-TaskRole]
data.aws_iam_policy_document.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Reading...
aws_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=ProspectAPI-Dev-TaskExecutionRole]
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.bridge-lambda_bridge-sqs-lambda_execution-policy-document_1AA7F290: Read complete after 0s [id=335886075]
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]
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_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_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]
pagerduty_service_integration.pagerduty_pagerduty_cloudwatch_7956692A-critical_546FC7B5: Refreshing state... [id=PO7EPNU]
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_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]
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-critical_45BF6D23: Refreshing state... [id=P7YTOY4]
aws_iam_role_policy_attachment.application_ecs_service_ecs_codedeploy_ecs_codedeploy_role_attachment_1A1D5725: Refreshing state... [id=ProspectAPI-Dev-ECSCodeDeployRole-20240106052911264600000007]
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_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]
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_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_vpc.pocket-vpc_2587E211: Read complete after 1s [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]
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 1s [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]
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]
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]
aws_ecs_task_definition.application_ecs_service_ecs-task_461CC9D4: Refreshing state... [id=ProspectAPI-Dev]
data.aws_vpc.bridge-lambda_pocket-shared-vpc_7BBDC169: Read complete after 1s [id=vpc-012481e83ffa5e152]
data.aws_vpc.translation-lambda_pocket-shared-vpc_30AC5256: Read complete after 1s [id=vpc-012481e83ffa5e152]
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_policy.translation-lambda_translation-sqs-lambda_sqs-policy_1811B7AA: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Translation-LambdaSQSPolicy]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2024-01-06 05:29:56.201 +0000 UTC]
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_policy.bridge-lambda_bridge-sqs-lambda_sqs-policy_3397A47E: Refreshing state... [id=arn:aws:iam::410318598490:policy/ProspectAPI-Dev-Sqs-Bridge-LambdaSQSPolicy]
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.pocket-vpc_internal_security_groups_147262D8: Reading...
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_private_subnet_ids_73CCA71D: Reading...
data.aws_security_groups.pocket-vpc_default_security_groups_1F0F3778: Reading...
data.aws_subnets.pocket-vpc_public_subnet_ids_0B13AF23: 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_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-06e3341d7c9c86ad0]
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...
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.pocket-vpc_public_subnet_ids_0B13AF23: Read complete after 0s [id=us-east-1]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
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.application_pocket_vpc_private_subnet_ids_AED9F181: Read complete after 0s [id=us-east-1]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_internal_security_groups_F24916D7: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: Read complete after 0s [id=us-east-1]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: 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_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: Reading...
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: 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_security_groups.translation-lambda_pocket-shared-vpc_default_security_groups_30393149: Reading...
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: Reading...
data.aws_subnets.translation-lambda_pocket-shared-vpc_private_subnet_ids_AC206D4E: Reading...
data.aws_security_groups.translation-lambda_pocket-shared-vpc_internal_security_groups_4144D685: 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]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=0c0b2f00b3cdacec50643eb573dac05cf555781c]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_public_subnet_ids_4406CC2C: Read complete after 0s [id=us-east-1]
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]
data.aws_subnets.bridge-lambda_pocket-shared-vpc_private_subnet_ids_4EA7A114: Read complete after 0s [id=us-east-1]
data.aws_security_groups.bridge-lambda_pocket-shared-vpc_default_security_groups_9AEEF75D: 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]
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=ProspectAPI-Dev-TaskRole-20240106054555810400000005]
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_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_alb.application_application_load_balancer_alb_05EA9801: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:loadbalancer/app/PROAPI20240106052913213600000008/0d2c4fbfb1ac67a0]
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_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]
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_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z07747349K0HE9ZG8VFL_prospect-api.getpocket.dev_A_1]
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_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_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_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_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_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_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:74" -> (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:74/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "74" -> (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:405" -> (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:405/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "ProspectAPI"
        }
      ~ version                        = "405" -> (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...
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.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 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]

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

@pocket-ci
Copy link

Choose a reason for hiding this comment

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

✅ 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.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Reading...
data.aws_caller_identity.application_pocket_vpc_current_identity_0A422301: Reading...
aws_cloudwatch_log_group.app-log-group: Refreshing state... [id=/Backend/CuratedCorpusAPI-Dev/ecs/app]
data.aws_ssm_parameter.application_pocket_vpc_private_subnets_424C83F8: Reading...
data.aws_sns_topic.backend_notifications: Reading...
data.aws_kms_alias.kms_alias: Reading...
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
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.application_pocket_vpc_current_identity_0A422301: Read complete after 0s [id=410318598490]
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:410318598490:CuratedCorpusAPI-Dev-Infrastructure-Alarm-Critical]
data.aws_region.pocket-vpc_current_region_1602AAD6: Read complete after 0s [id=us-east-1]
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]
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 0s [id=arn:aws:kms:us-east-1:410318598490:alias/aws/secretsmanager]
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.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: Read complete after 0s [id=arn:aws:sns:us-east-1:410318598490:Backend-Dev-ChatBot]
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/aaaf769b-2ddb-4be0-9fc4-f8f8e61be6fc]
aws_s3_bucket.image-uploads: Refreshing state... [id=pocket-curatedcorpusapi-dev-images]
data.aws_ssm_parameter.pocket-vpc_public_subnets_7F9CDB28: Read complete after 0s [id=/Shared/PublicSubnets]
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...
data.aws_iam_policy_document.application_ecs_service_ecs-iam_ecs-task-assume_05903663: 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: Read complete after 0s [id=1077804475]
data.terraform_remote_state.incident_management: Read complete after 1s
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Reading...
data.aws_region.application_ecs_service_ecs_codedeploy_current_region_A377EAA5: Reading...
data.aws_iam_policy_document.synthetics_synthetics_synthetic_check_assume_66385ECA: Read complete after 0s [id=2690255455]
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: 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_caller_identity.pocket-vpc_current_identity_8303C1C9: Read complete after 0s [id=410318598490]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: 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_vpc_ssm_param_17802658: Reading...
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: 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]
aws_ecs_cluster.application_ecs_cluster_4DC6EFB3: Refreshing state... [id=arn:aws:ecs:us-east-1:410318598490:cluster/CuratedCorpusAPI-Dev]
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 0s [id=/Shared/PrivateSubnets]
data.aws_ssm_parameter.pocket-vpc_vpc_ssm_param_17802658: Read complete after 0s [id=/Shared/Vpc]
data.aws_caller_identity.application_ecs_service_ecs_codedeploy_current_account_110B92B7: Read complete after 0s [id=410318598490]
aws_route53_zone.application_base_dns_subhosted_zone_77521D1C: Refreshing state... [id=Z00475383NZHMVB1WW0NT]
data.aws_caller_identity.caller: Reading...
aws_s3_bucket.synthetics_synthetics_synthetic_check_artifacts_53DD59E6: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-checks]
data.aws_kms_alias.application_pocket_vpc_secrets_manager_key_2C3C8766: Reading...
data.aws_caller_identity.caller: Read complete after 0s [id=410318598490]
aws_iam_role.application_ecs_service_ecs_codedeploy_ecs_code_deploy_role_175DB7D3: Refreshing state... [id=CuratedCorpusAPI-Dev-ECSCodeDeployRole]
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_iam_role.application_ecs_service_ecs-iam_ecs-execution-role_FB754BAA: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskExecutionRole]
data.aws_route53_zone.application_base_dns_main_hosted_zone_0141FA96: Read complete after 0s [id=ZCSIDA846KWLN]
aws_iam_role.application_ecs_service_ecs-iam_ecs-task-role_A72990ED: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskRole]
pagerduty_service.pagerduty_pagerduty-critical_464EE7CD: Refreshing state... [id=PXAJGU4]
pagerduty_service.pagerduty_pagerduty-non-critical_B4CB3938: Refreshing state... [id=PU1YFEE]
aws_iam_role.synthetics_synthetic_check_role_A3A5C38B: Refreshing state... [id=pocket-curatedcorpusapi-dev-synthetic-check]
data.aws_vpc.application_pocket_vpc_22D55D83: Reading...
aws_ecr_lifecycle_policy.application_ecs_service_ecr-app_ecr-repo-lifecyclepolicy_CCDF75B7: Refreshing state... [id=curatedcorpusapi-dev-app]
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_vpc.pocket-vpc_2587E211: Reading...
data.pagerduty_vendor.pagerduty_cloudwatch_7956692A: Read complete after 0s [id=PZQ6AUS]
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-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_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...
data.pagerduty_vendor.pagerduty_sentry_FFB12B7C: Read complete after 1s [id=PKAPG94]
aws_route53_record.application_base_dns_subhosted_zone_ns_DFB88A22: Refreshing state... [id=ZCSIDA846KWLN_curated-corpus-api.getpocket.dev_NS]
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_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_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_policy.application_ecs_service_ecs-iam_ecs-task-role-policy_6FC89FB6: Refreshing state... [id=arn:aws:iam::410318598490:policy/CuratedCorpusAPI-Dev-TaskRolePolicy]
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]
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]
data.aws_vpc.application_pocket_vpc_22D55D83: Read complete after 1s [id=vpc-012481e83ffa5e152]
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_subnets.application_pocket_vpc_private_subnet_ids_AED9F181: Reading...
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_subnets.application_pocket_vpc_public_subnet_ids_4577655C: Reading...
pagerduty_service_integration.pagerduty_pagerduty_sentry_FFB12B7C-non-critical_B7B95197: Refreshing state... [id=P6LD6LU]
aws_security_group.application_application_load_balancer_alb_security_group_7B45D070: Refreshing state... [id=sg-01c8b8e6531c36ca7]
data.aws_vpc.pocket-vpc_2587E211: Read complete after 1s [id=vpc-012481e83ffa5e152]
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.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_default_security_groups_4D3B6986: 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]
data.aws_security_groups.application_pocket_vpc_internal_security_groups_8D057D72: Reading...
aws_iam_role_policy_attachment.application_ecs_service_ecs-iam_ecs-task-custom-attachment_F8DDD355: Refreshing state... [id=CuratedCorpusAPI-Dev-TaskRole-20230815040242336200000003]
aws_acm_certificate_validation.application_alb_certificate_certificate_validation_25DAB195: Refreshing state... [id=2023-08-09 16:36:14.338 +0000 UTC]
data.aws_security_groups.application_pocket_vpc_default_security_groups_4D3B6986: Read complete after 0s [id=us-east-1]
data.aws_vpc.rds_vpc_9E5B9996: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: 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_default_security_groups_1F0F3778: Reading...
data.aws_security_groups.pocket-vpc_internal_security_groups_147262D8: 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_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Reading...
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.pocket-vpc_default_security_groups_1F0F3778: Read complete after 0s [id=us-east-1]
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_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]
data.aws_subnets.pocket-vpc_private_subnet_ids_73CCA71D: Read complete after 0s [id=us-east-1]
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_synthetics_canary.synthetics_synthetics_synthetic_check_query_0_99E4AE1B: Refreshing state... [id=ccsapi-dev-query-0]
aws_db_subnet_group.rds_rds_subnet_group_796D20B7: Refreshing state... [id=curatedcorpusapi-dev20210930155115552900000009]
aws_synthetics_canary.synthetics_synthetics_synthetic_check_uptime_0_4168D0DB: Refreshing state... [id=ccsapi-dev-uptime-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_uptime_0_3A56DFC7: Refreshing state... [id=ccsapi-dev-uptime-0]
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_alb_listener.application_listener_http_D74EC0ED: Refreshing state... [id=arn:aws:elasticloadbalancing:us-east-1:410318598490:listener/app/CCSAPI20230809163526291600000006/2d4f2a9f8c4a0fe3/1bc93d64fe882b1f]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Refreshing state... [id=ccsapi-dev-query-0]
aws_route53_record.application_alb_record_8EA9D3F9: Refreshing state... [id=Z00475383NZHMVB1WW0NT_curated-corpus-api.getpocket.dev_A_1]
data.aws_vpc.rds_vpc_9E5B9996: Read complete after 0s [id=vpc-012481e83ffa5e152]
aws_security_group.rds_rds_security_group_B7738CEB: Refreshing state... [id=sg-01306e441cb0756f8]
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_rds_cluster.rds_rds_cluster_1A0399FD: Refreshing state... [id=curatedcorpusapi-dev20211019211102971300000001]
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=5261946356053880358]
local_file.application_ecs_service_appspec_94386B9C: Refreshing state... [id=4fa3693b714299bf1f46da9ec82a044c7a706300]
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_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_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_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       = "5261946356053880358" -> (known after apply)
      ~ triggers = { # forces replacement
          ~ "alwaysRun" = "2024-02-28T22:42:52Z" -> (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=5261946356053880358]
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_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]
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: Modifications complete after 0s [id=ccsapi-dev-uptime-0]
aws_cloudwatch_metric_alarm.synthetics_synthetics_synthetic_check_alarm_query_0_52F9FF21: Modifications complete after 1s [id=ccsapi-dev-query-0]
null_resource.application_ecs_service_create-task-definition-file_6BADBAF7: Creation complete after 1s [id=3199701769084328957]

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

@pocket-ci
Copy link

Choose a reason for hiding this comment

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

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

CI link

Apply complete! Resources: 0 added, 2 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]
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.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...
data.aws_region.pocket-vpc_current_region_1602AAD6: Reading...
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.pocket-vpc_public_subnets_7F9CDB28: Reading...
aws_s3_bucket.corpus-scheduler-sqs-lambda_code-bucket_71B015CC: Refreshing state... [id=pocket-corpusschedulerlambda-dev-sqs]
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_caller_identity.pocket-vpc_current_identity_8303C1C9: 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_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]
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_ssm_parameter.corpus-scheduler-sqs-lambda_service-hash_FF42B50B: Reading...
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_assume-policy-document_00BF5312: Read complete after 1s [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_public_subnets_7F9CDB28: Read complete after 1s [id=/Shared/PublicSubnets]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Reading...
data.aws_ssm_parameter.pocket-vpc_private_subnets_75BAFB11: Read complete after 1s [id=/Shared/PrivateSubnets]
data.aws_iam_policy_document.corpus-scheduler-sqs-lambda_execution-policy-document_98FDB3D7: Read complete after 0s [id=1462001592]
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_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]
aws_iam_policy.corpus-scheduler-sqs-lambda_execution-policy_CF929AE3: Refreshing state... [id=arn:aws:iam::410318598490:policy/CorpusSchedulerLambda-Dev-SQS-ExecutionRolePolicy]
data.aws_vpc.pocket-vpc_2587E211: Reading...
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 1s [id=/CorpusSchedulerLambda/Dev/SENTRY_DSN]
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_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 0s [id=vpc-012481e83ffa5e152]
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...
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_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]

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_event_source_mapping.corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E will be updated in-place
  ~ resource "aws_lambda_event_source_mapping" "corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E" {
      ~ batch_size                         = 20 -> 1
        id                                 = "c53637e5-9c12-41ef-aff6-333f924c76b4"
        # (17 unchanged attributes hidden)
    }

  # 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:16" -> (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:16/invocations" -> (known after apply)
        tags                           = {
            "environment" = "Dev"
            "service"     = "CorpusSchedulerLambda"
        }
      ~ version                        = "16" -> (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, 2 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]
aws_lambda_event_source_mapping.corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E: Modifying... [id=c53637e5-9c12-41ef-aff6-333f924c76b4]
aws_lambda_event_source_mapping.corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E: Still modifying... [id=c53637e5-9c12-41ef-aff6-333f924c76b4, 10s elapsed]
aws_lambda_event_source_mapping.corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E: Still modifying... [id=c53637e5-9c12-41ef-aff6-333f924c76b4, 20s elapsed]
aws_lambda_event_source_mapping.corpus-scheduler-sqs-lambda_lambda_event_source_mapping_F8FF050E: Modifications complete after 23s [id=c53637e5-9c12-41ef-aff6-333f924c76b4]

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

Please sign in to comment.