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

Setup observability #37

Merged
merged 4 commits into from
Dec 8, 2023

Conversation

TylerHendrickson
Copy link
Member

This PR configures enhanced observability for CPF Reporter by instrumenting the API side with Datadog APM, the web side with Datadog RUM. It also ensures that the correct environment variables are defined at build-time for the web side.

api/src/functions/graphql.ts Dismissed Show dismissed Hide dismissed
api/src/lib/db.ts Dismissed Show dismissed Hide dismissed
Copy link

github-actions bot commented Dec 7, 2023

QA Summary

QA Check Result
🌐 Web Tests
🔗 API Tests
📏 ESLint
🧹 TFLint

Test Coverage

Coverage report for api suite
St File % Stmts % Branch % Funcs % Lines Uncovered Line #s
🟡 All files 59.7 33.33 68.18 59.7
🟢  directives/requireAuth 100 100 100 100
🟢   requireAuth.ts 100 100 100 100
🟡  directives/skipAuth 50 100 0 50
🟡   skipAuth.ts 50 100 0 50 13
🔴  functions 0 100 0 0
🔴   graphql.ts 0 100 0 0 13-20
🔴  graphql 0 100 100 0
🔴   agencies.sdl.ts 0 100 100 0 1
🔴   organizations.sdl.ts 0 100 100 0 1
🔴  lib 40.74 50 57.14 40.74
🟢   auth.ts 83.33 100 66.66 83.33 15
🔴   db.ts 31.25 50 50 31.25 15-35,45,47
🟢   logger.ts 100 100 100 100
🔴   tracer.ts 0 100 100 0 5-14
🟡  services/agencies 70.58 0 83.33 70.58
🟢   agencies.scenarios.ts 100 100 100 100
🟡   agencies.ts 68.75 0 83.33 68.75 40-48
🟢  services/organizations 92.3 100 83.33 92.3
🟢   organizations.scenarios.ts 100 100 100 100
🟢   organizations.ts 91.66 100 83.33 91.66 47
Coverage report for web suite
St File % Stmts % Branch % Funcs % Lines Uncovered Line #s
🔴 All files 15.42 29.41 10.52 15.64
🔴  src 15.38 0 50 15.38
🔴   App.tsx 0 0 0 0 3-32
🟢   Routes.tsx 100 100 100 100
🔴   entry.client.tsx 0 0 100 0 10-22
🔴  src/components/Agency/Agencies 0 100 0 0
🔴   Agencies.tsx 0 100 0 0 9-21
🔴  src/components/Agency/AgenciesCell 0 100 0 0
🔴   AgenciesCell.tsx 0 100 0 0 8-39
🔴  src/components/Agency/Agency 0 0 0 0
🔴   Agency.tsx 0 0 0 0 10-78
🔴  src/components/Agency/AgencyCell 0 100 0 0
🔴   AgencyCell.tsx 0 100 0 0 7-27
🔴  src/components/Agency/AgencyForm 0 0 0 0
🔴   AgencyForm.tsx 0 0 0 0 24-39
🔴  src/components/Agency/EditAgencyCell 0 100 0 0
🔴   EditAgencyCell.tsx 0 100 0 0 10-58
🔴  src/components/Agency/NewAgency 0 100 0 0
🔴   NewAgency.tsx 0 100 0 0 9-35
🔴  src/components/Organization/EditOrganizationCell 0 100 0 0
🔴   EditOrganizationCell.tsx 0 100 0 0 13-62
🔴  src/components/Organization/NewOrganization 0 100 0 0
🔴   NewOrganization.tsx 0 100 0 0 9-35
🔴  src/components/Organization/Organization 0 0 0 0
🔴   Organization.tsx 0 0 0 0 10-70
🔴  src/components/Organization/OrganizationCell 0 100 0 0
🔴   OrganizationCell.tsx 0 100 0 0 7-27
🔴  src/components/Organization/OrganizationForm 0 0 0 0
🔴   OrganizationForm.tsx 0 0 0 0 27-41
🔴  src/components/Organization/Organizations 0 100 0 0
🔴   Organizations.tsx 0 100 0 0 9-21
🔴  src/components/Organization/OrganizationsCell 0 100 0 0
🔴   OrganizationsCell.tsx 0 100 0 0 8-37
🟡  src/layouts/ScaffoldLayout 50 100 0 50
🟡   ScaffoldLayout.tsx 50 100 0 50 10
🟢  src/lib 100 100 100 100
🟢   formatters.tsx 100 100 100 100
🔴  src/pages/Agency/AgenciesPage 0 100 0 0
🔴   AgenciesPage.tsx 0 100 0 0 7-11
🔴  src/pages/Agency/AgencyPage 0 100 0 0
🔴   AgencyPage.tsx 0 100 0 0 7-8
🔴  src/pages/Agency/EditAgencyPage 0 100 0 0
🔴   EditAgencyPage.tsx 0 100 0 0 7-8
🔴  src/pages/Agency/NewAgencyPage 0 100 0 0
🔴   NewAgencyPage.tsx 0 100 0 0 3-4
🔴  src/pages/FatalErrorPage 0 0 0 0
🔴   FatalErrorPage.tsx 0 0 0 0 15
🔴  src/pages/NotFoundPage 0 100 0 0
🔴   NotFoundPage.tsx 0 100 0 0 2
🔴  src/pages/Organization/EditOrganizationPage 0 100 0 0
🔴   EditOrganizationPage.tsx 0 100 0 0 7-8
🔴  src/pages/Organization/NewOrganizationPage 0 100 0 0
🔴   NewOrganizationPage.tsx 0 100 0 0 3-4
🔴  src/pages/Organization/OrganizationPage 0 100 0 0
🔴   OrganizationPage.tsx 0 100 0 0 7-8
🔴  src/pages/Organization/OrganizationsPage 0 100 0 0
🔴   OrganizationsPage.tsx 0 100 0 0 7-8

Pusher: @TylerHendrickson, Action: pull_request_target, Workflow: Continuous Integration

Copy link

github-actions bot commented Dec 7, 2023

Terraform Summary

Step Result
🖌 Terraform Format & Style
⚙️ Terraform Initialization
🤖 Terraform Validation
📖 Terraform Plan

Hint: If "Terraform Format & Style" failed, run terraform fmt -recursive from the terraform/ directory and commit the results.

Output

Validation Output
Success! The configuration is valid.


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

Terraform will perform the following actions:

  # aws_s3_object.lambda_artifact-graphql must be replaced
+/- resource "aws_s3_object" "lambda_artifact-graphql" {
+       acl                    = (known after apply)
      ~ bucket_key_enabled     = false -> (known after apply)
+       checksum_crc32         = (known after apply)
+       checksum_crc32c        = (known after apply)
+       checksum_sha1          = (known after apply)
+       checksum_sha256        = (known after apply)
      ~ content_type           = "binary/octet-stream" -> (known after apply)
      ~ etag                   = "4fda91659fe6d8754d7bf26afc1c8f01-6" -> "ec23298f57ffe85396f1fa0fbb0d7922"
      ~ id                     = "graphql.e408146bfeb3b9547e8ec75cd2f1e1a4.zip" -> (known after apply)
      ~ key                    = "graphql.e408146bfeb3b9547e8ec75cd2f1e1a4.zip" -> "graphql.ec23298f57ffe85396f1fa0fbb0d7922.zip" # forces replacement
+       kms_key_id             = (known after apply)
-       metadata               = {} -> null
      ~ source                 = "./../api/dist/zipballs/graphql.zip" -> "/home/runner/work/cpf-reporter/cpf-reporter/api/dist/zipballs/graphql.zip"
      ~ source_hash            = "e408146bfeb3b9547e8ec75cd2f1e1a4" -> "ec23298f57ffe85396f1fa0fbb0d7922"
      ~ storage_class          = "STANDARD" -> (known after apply)
-       tags                   = {} -> null
      ~ version_id             = "sj6I2.lNHSoW.lHVkAUE5R1GeQRtAGZ0" -> (known after apply)
        # (4 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["200.html"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
      ~ etag                   = "a3398d11d3218c26e0658d4f7b58b604" -> "f071657ebb17a343f405b4a8eaa2282c"
        id                     = "dist/200.html"
      ~ source                 = "./../web/dist/200.html" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/200.html"
      ~ source_hash            = "a3398d11d3218c26e0658d4f7b58b604" -> "f071657ebb17a343f405b4a8eaa2282c"
        tags                   = {}
      ~ version_id             = "R.uI4Ge_p5Aloo.SyYdACFimyN3eEZUV" -> (known after apply)
        # (9 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["build-manifest.json"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
      ~ etag                   = "ddf902f53d848e3da774f14325656506" -> "4655a30f49b4d080d081d0a732b7407a"
        id                     = "dist/build-manifest.json"
      ~ source                 = "./../web/dist/build-manifest.json" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/build-manifest.json"
      ~ source_hash            = "ddf902f53d848e3da774f14325656506" -> "4655a30f49b4d080d081d0a732b7407a"
        tags                   = {}
      ~ version_id             = "dBjJGKd5AOIajXXQQIzQGBIMDQUCihde" -> (known after apply)
        # (9 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["chunk-references.json"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
      ~ etag                   = "7883262ca02bd1a4cdb7f5e7ba4ed71c" -> "73a7d66a095472905a82593eda4b9e61"
        id                     = "dist/chunk-references.json"
      ~ source                 = "./../web/dist/chunk-references.json" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/chunk-references.json"
      ~ source_hash            = "7883262ca02bd1a4cdb7f5e7ba4ed71c" -> "73a7d66a095472905a82593eda4b9e61"
        tags                   = {}
      ~ version_id             = "FUjTlkafqu68zbeVuBdyLSkKsehSLOQF" -> (known after apply)
        # (9 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["favicon.png"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/favicon.png"
      ~ source                 = "./../web/dist/favicon.png" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/favicon.png"
        tags                   = {}
      ~ version_id             = "fx9Dw17D_fHtjnpOY_InHgpua8KhLmww" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["index.html"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
      ~ etag                   = "a3398d11d3218c26e0658d4f7b58b604" -> "f071657ebb17a343f405b4a8eaa2282c"
        id                     = "dist/index.html"
      ~ source                 = "./../web/dist/index.html" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/index.html"
      ~ source_hash            = "a3398d11d3218c26e0658d4f7b58b604" -> "f071657ebb17a343f405b4a8eaa2282c"
        tags                   = {}
      ~ version_id             = "8CBsxTWWoU1VVO2SytGJqn5z..hAvz.Q" -> (known after apply)
        # (9 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["robots.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/robots.txt"
      ~ source                 = "./../web/dist/robots.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/robots.txt"
        tags                   = {}
      ~ version_id             = "WB__0nw35SRrG6as64p6RV7o01Y9k5B0" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/css/app.eb724d08.css"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/css/app.eb724d08.css"
      ~ source                 = "./../web/dist/static/css/app.eb724d08.css" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/css/app.eb724d08.css"
        tags                   = {}
      ~ version_id             = "FHmuLSE73PfsHkAllFvteb_CXU9ygeRG" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/358.abc86593.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/358.abc86593.chunk.js"
      ~ source                 = "./../web/dist/static/js/358.abc86593.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/358.abc86593.chunk.js"
        tags                   = {}
      ~ version_id             = "utCQFvd0w.RcDlcUyLVEuImIDha6WxlH" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/358.abc86593.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/358.abc86593.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/358.abc86593.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/358.abc86593.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "BO1R.M61xakGx5OnvS510dsijMD1RVFo" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/390.ded542e6.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/390.ded542e6.chunk.js"
      ~ source                 = "./../web/dist/static/js/390.ded542e6.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/390.ded542e6.chunk.js"
        tags                   = {}
      ~ version_id             = "ZnmDR5MeW9Ir4pb_F5zHA_zMtdX8E5pC" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/390.ded542e6.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/390.ded542e6.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/390.ded542e6.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/390.ded542e6.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "xTtRomyu.Le20S8bDfPYL.2qsQ1e1Y4B" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/477.2ba1adfc.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/477.2ba1adfc.chunk.js"
      ~ source                 = "./../web/dist/static/js/477.2ba1adfc.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/477.2ba1adfc.chunk.js"
        tags                   = {}
      ~ version_id             = "IvFK0WyjTUDoFJwoUNchRRAESnjV.uqD" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/477.2ba1adfc.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/477.2ba1adfc.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/477.2ba1adfc.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/477.2ba1adfc.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "7yjMqiD0cZ99phr8clKnpv2w3L0dDw7s" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/AgencyAgenciesPage.5bfc4332.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/AgencyAgenciesPage.5bfc4332.chunk.js"
      ~ source                 = "./../web/dist/static/js/AgencyAgenciesPage.5bfc4332.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/AgencyAgenciesPage.5bfc4332.chunk.js"
        tags                   = {}
      ~ version_id             = "WfDrxJseSPlteG6rfwZSkM8nfwIhfynj" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/AgencyAgenciesPage.5bfc4332.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/AgencyAgenciesPage.5bfc4332.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/AgencyAgenciesPage.5bfc4332.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/AgencyAgenciesPage.5bfc4332.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "mizrKhbRbSCggGeUIpXlZKMJT.cn5j5n" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/AgencyAgencyPage.d7739b59.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/AgencyAgencyPage.d7739b59.chunk.js"
      ~ source                 = "./../web/dist/static/js/AgencyAgencyPage.d7739b59.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/AgencyAgencyPage.d7739b59.chunk.js"
        tags                   = {}
      ~ version_id             = "lPj1ZmDC9_u84hlNHxAihlLvd1BOT7Fm" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/AgencyAgencyPage.d7739b59.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/AgencyAgencyPage.d7739b59.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/AgencyAgencyPage.d7739b59.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/AgencyAgencyPage.d7739b59.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "aOX2aymAZ48CMFD5ur50lUyuf9LWzUPj" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/AgencyEditAgencyPage.623680c4.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/AgencyEditAgencyPage.623680c4.chunk.js"
      ~ source                 = "./../web/dist/static/js/AgencyEditAgencyPage.623680c4.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/AgencyEditAgencyPage.623680c4.chunk.js"
        tags                   = {}
      ~ version_id             = "R.q2HwCZhX5N1PJunW.zLpJ6uhwzrMk_" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/AgencyEditAgencyPage.623680c4.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/AgencyEditAgencyPage.623680c4.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/AgencyEditAgencyPage.623680c4.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/AgencyEditAgencyPage.623680c4.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = ".F9.Kp1QDRROWkt_eBjLSO2t3BYZ7qao" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/AgencyNewAgencyPage.94015f7b.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/AgencyNewAgencyPage.94015f7b.chunk.js"
      ~ source                 = "./../web/dist/static/js/AgencyNewAgencyPage.94015f7b.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/AgencyNewAgencyPage.94015f7b.chunk.js"
        tags                   = {}
      ~ version_id             = "R1ghxOVwyK9TZskd0paeIUwaxSgr6MOv" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/AgencyNewAgencyPage.94015f7b.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/AgencyNewAgencyPage.94015f7b.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/AgencyNewAgencyPage.94015f7b.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/AgencyNewAgencyPage.94015f7b.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "lFFcLUcqpDuQgkIr66zLrcPIoCyA2h2e" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/NotFoundPage.fd8a8c88.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/NotFoundPage.fd8a8c88.chunk.js"
      ~ source                 = "./../web/dist/static/js/NotFoundPage.fd8a8c88.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/NotFoundPage.fd8a8c88.chunk.js"
        tags                   = {}
      ~ version_id             = "WCE.Oz1QQL6siCVQeVbVcnFq9kKwrZNG" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/NotFoundPage.fd8a8c88.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/NotFoundPage.fd8a8c88.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/NotFoundPage.fd8a8c88.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/NotFoundPage.fd8a8c88.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "ePi98kOLLY90EsvNx5NnNPOOLIifc7sm" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/OrganizationEditOrganizationPage.46c7d494.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/OrganizationEditOrganizationPage.46c7d494.chunk.js"
      ~ source                 = "./../web/dist/static/js/OrganizationEditOrganizationPage.46c7d494.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/OrganizationEditOrganizationPage.46c7d494.chunk.js"
        tags                   = {}
      ~ version_id             = "P5UdeOT7eJCiMeTLYHxq54Urpdmsc5rX" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/OrganizationEditOrganizationPage.46c7d494.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/OrganizationEditOrganizationPage.46c7d494.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/OrganizationEditOrganizationPage.46c7d494.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/OrganizationEditOrganizationPage.46c7d494.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "8EkJmRKFY6xJoqUFV3FSiwRV2KsIgSt8" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/OrganizationNewOrganizationPage.053edd4c.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/OrganizationNewOrganizationPage.053edd4c.chunk.js"
      ~ source                 = "./../web/dist/static/js/OrganizationNewOrganizationPage.053edd4c.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/OrganizationNewOrganizationPage.053edd4c.chunk.js"
        tags                   = {}
      ~ version_id             = "LavK0exroB0.qyjgWW_TbH1i.KZC5cWj" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/OrganizationNewOrganizationPage.053edd4c.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/OrganizationNewOrganizationPage.053edd4c.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/OrganizationNewOrganizationPage.053edd4c.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/OrganizationNewOrganizationPage.053edd4c.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "CHPD8d_ocFhLfSP1JvPTQPCEttMVUqPW" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/OrganizationOrganizationPage.4fda6393.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/OrganizationOrganizationPage.4fda6393.chunk.js"
      ~ source                 = "./../web/dist/static/js/OrganizationOrganizationPage.4fda6393.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/OrganizationOrganizationPage.4fda6393.chunk.js"
        tags                   = {}
      ~ version_id             = "iltsGfwqSBQqzwDRHwY5R3YuDHPfyGJx" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/OrganizationOrganizationPage.4fda6393.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/OrganizationOrganizationPage.4fda6393.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/OrganizationOrganizationPage.4fda6393.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/OrganizationOrganizationPage.4fda6393.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "ZqM5OP.Ki5DoFVznMVJkEwHuBP0cGX_D" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/OrganizationOrganizationsPage.c09accec.chunk.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/OrganizationOrganizationsPage.c09accec.chunk.js"
      ~ source                 = "./../web/dist/static/js/OrganizationOrganizationsPage.c09accec.chunk.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/OrganizationOrganizationsPage.c09accec.chunk.js"
        tags                   = {}
      ~ version_id             = "wVw7E9S2a7IP7o6R3MALA6qgf9ruASaq" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/OrganizationOrganizationsPage.c09accec.chunk.js.LICENSE.txt"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/OrganizationOrganizationsPage.c09accec.chunk.js.LICENSE.txt"
      ~ source                 = "./../web/dist/static/js/OrganizationOrganizationsPage.c09accec.chunk.js.LICENSE.txt" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/OrganizationOrganizationsPage.c09accec.chunk.js.LICENSE.txt"
        tags                   = {}
      ~ version_id             = "gUUo7uyXCc4g.B5XODnom5BRqUIBz167" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # aws_s3_object.origin_dist_artifact["static/js/app.44213bdf.js"] will be created
+   resource "aws_s3_object" "origin_dist_artifact" {
+       acl                    = (known after apply)
+       bucket                 = "cpfreporter-origin-357150818708-us-west-2"
+       bucket_key_enabled     = (known after apply)
+       checksum_crc32         = (known after apply)
+       checksum_crc32c        = (known after apply)
+       checksum_sha1          = (known after apply)
+       checksum_sha256        = (known after apply)
+       content_type           = "text/javascript"
+       etag                   = "c46cd9179777cd2c91fa2f1058c7326f"
+       force_destroy          = false
+       id                     = (known after apply)
+       key                    = "dist/static/js/app.44213bdf.js"
+       kms_key_id             = (known after apply)
+       server_side_encryption = "AES256"
+       source                 = "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/app.44213bdf.js"
+       source_hash            = "c46cd9179777cd2c91fa2f1058c7326f"
+       storage_class          = (known after apply)
+       tags_all               = {
+           "env"        = "staging"
+           "management" = "terraform"
+           "owner"      = "grants"
+           "repo"       = "cpf-reporter"
+           "service"    = "cpf-reporter"
+           "usage"      = "workload"
        }
+       version_id             = (known after apply)
    }

  # aws_s3_object.origin_dist_artifact["static/js/app.44213bdf.js.LICENSE.txt"] will be created
+   resource "aws_s3_object" "origin_dist_artifact" {
+       acl                    = (known after apply)
+       bucket                 = "cpfreporter-origin-357150818708-us-west-2"
+       bucket_key_enabled     = (known after apply)
+       checksum_crc32         = (known after apply)
+       checksum_crc32c        = (known after apply)
+       checksum_sha1          = (known after apply)
+       checksum_sha256        = (known after apply)
+       content_type           = "text/plain"
+       etag                   = "32ee71aff25006c81492755925194994"
+       force_destroy          = false
+       id                     = (known after apply)
+       key                    = "dist/static/js/app.44213bdf.js.LICENSE.txt"
+       kms_key_id             = (known after apply)
+       server_side_encryption = "AES256"
+       source                 = "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/app.44213bdf.js.LICENSE.txt"
+       source_hash            = "32ee71aff25006c81492755925194994"
+       storage_class          = (known after apply)
+       tags_all               = {
+           "env"        = "staging"
+           "management" = "terraform"
+           "owner"      = "grants"
+           "repo"       = "cpf-reporter"
+           "service"    = "cpf-reporter"
+           "usage"      = "workload"
        }
+       version_id             = (known after apply)
    }

  # aws_s3_object.origin_dist_artifact["static/js/app.7ac863b8.js"] will be destroyed
  # (because key ["static/js/app.7ac863b8.js"] is not in for_each map)
-   resource "aws_s3_object" "origin_dist_artifact" {
-       bucket                 = "cpfreporter-origin-357150818708-us-west-2" -> null
-       bucket_key_enabled     = false -> null
-       content_type           = "text/javascript" -> null
-       etag                   = "8791de0e6644ae2438232e2999fd88db" -> null
-       force_destroy          = false -> null
-       id                     = "dist/static/js/app.7ac863b8.js" -> null
-       key                    = "dist/static/js/app.7ac863b8.js" -> null
-       metadata               = {} -> null
-       server_side_encryption = "AES256" -> null
-       source                 = "./../web/dist/static/js/app.7ac863b8.js" -> null
-       source_hash            = "8791de0e6644ae2438232e2999fd88db" -> null
-       storage_class          = "STANDARD" -> null
-       tags                   = {} -> null
-       tags_all               = {
-           "env"        = "staging"
-           "management" = "terraform"
-           "owner"      = "grants"
-           "repo"       = "cpf-reporter"
-           "service"    = "cpf-reporter"
-           "usage"      = "workload"
        } -> null
-       version_id             = "MEGgcN.k_gg8__M5sCu4hMD1B38vQari" -> null
    }

  # aws_s3_object.origin_dist_artifact["static/js/app.7ac863b8.js.LICENSE.txt"] will be destroyed
  # (because key ["static/js/app.7ac863b8.js.LICENSE.txt"] is not in for_each map)
-   resource "aws_s3_object" "origin_dist_artifact" {
-       bucket                 = "cpfreporter-origin-357150818708-us-west-2" -> null
-       bucket_key_enabled     = false -> null
-       content_type           = "text/plain" -> null
-       etag                   = "06940a9aab784938d8e0d53a11e0886f" -> null
-       force_destroy          = false -> null
-       id                     = "dist/static/js/app.7ac863b8.js.LICENSE.txt" -> null
-       key                    = "dist/static/js/app.7ac863b8.js.LICENSE.txt" -> null
-       metadata               = {} -> null
-       server_side_encryption = "AES256" -> null
-       source                 = "./../web/dist/static/js/app.7ac863b8.js.LICENSE.txt" -> null
-       source_hash            = "06940a9aab784938d8e0d53a11e0886f" -> null
-       storage_class          = "STANDARD" -> null
-       tags                   = {} -> null
-       tags_all               = {
-           "env"        = "staging"
-           "management" = "terraform"
-           "owner"      = "grants"
-           "repo"       = "cpf-reporter"
-           "service"    = "cpf-reporter"
-           "usage"      = "workload"
        } -> null
-       version_id             = "iCWpiuDDex0UsDxZbDKEK0kmwUrdV9Hr" -> null
    }

  # aws_s3_object.origin_dist_artifact["static/js/runtime-app.29fe59d2.js"] will be updated in-place
  ~ resource "aws_s3_object" "origin_dist_artifact" {
        id                     = "dist/static/js/runtime-app.29fe59d2.js"
      ~ source                 = "./../web/dist/static/js/runtime-app.29fe59d2.js" -> "/home/runner/work/cpf-reporter/cpf-reporter/web/dist/static/js/runtime-app.29fe59d2.js"
        tags                   = {}
      ~ version_id             = "bko7_Fd8x89..ZYAooBgBfujhkyCGKE1" -> (known after apply)
        # (11 unchanged attributes hidden)
    }

  # module.lambda_function-graphql.aws_lambda_function.this[0] will be updated in-place
  ~ resource "aws_lambda_function" "this" {
        id                             = "cpfreporter-graphql"
      ~ last_modified                  = "2023-12-07T20:42:47.000+0000" -> (known after apply)
      ~ qualified_arn                  = "arn:aws:lambda:us-west-2:357150818708:function:cpfreporter-graphql:16" -> (known after apply)
      ~ qualified_invoke_arn           = "arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:357150818708:function:cpfreporter-graphql:16/invocations" -> (known after apply)
      ~ s3_key                         = "graphql.e408146bfeb3b9547e8ec75cd2f1e1a4.zip" -> "graphql.ec23298f57ffe85396f1fa0fbb0d7922.zip"
        tags                           = {}
      ~ version                        = "16" -> (known after apply)
        # (19 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              ~ "DD_COMMIT_SHA"                      = "" -> "b9f8fd81a8d7caa65301f4a38ef84ea1643c690e"
              ~ "DD_TAGS"                            = "git.commit.sha:,git.repository_url:github.com/usdigitalresponse/cpf-reporter" -> "git.commit.sha:b9f8fd81a8d7caa65301f4a38ef84ea1643c690e,git.repository_url:github.com/usdigitalresponse/cpf-reporter"
              ~ "DD_VERSION"                         = "ebd6ae2ac58b579cb6ef92038317cfeb0bd61b73" -> "b9f8fd81a8d7caa65301f4a38ef84ea1643c690e"
                # (15 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

  # module.lambda_function-graphql.aws_lambda_permission.current_version_triggers["APIGateway"] must be replaced
-/+ resource "aws_lambda_permission" "current_version_triggers" {
      ~ id                  = "APIGateway" -> (known after apply)
      ~ qualifier           = "16" # forces replacement -> (known after apply) # forces replacement
+       statement_id_prefix = (known after apply)
        # (5 unchanged attributes hidden)
    }

Plan: 4 to add, 33 to change, 4 to destroy.

Pusher: @TylerHendrickson, Action: pull_request_target, Workflow: Continuous Integration

@TylerHendrickson TylerHendrickson merged commit 2c85074 into main Dec 8, 2023
18 checks passed
@TylerHendrickson TylerHendrickson deleted the tsh/deployment-environment-enhancements branch December 8, 2023 00:47
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.

2 participants