Skip to content

fix: try to get JWT_KEY env var into AWS infra #285

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

Closed
wants to merge 1 commit into from

Conversation

jpetto
Copy link
Contributor

@jpetto jpetto commented Apr 2, 2025

Goal

the JWT_KEY env var somehow never got added to prod (it does exist in dev). unclear why a deployment did not add this env var. trying removing a semi-mysterious infra config line to see if it solves the problem.

  • comment out ignoreEnvironmentVars: ['GIT_SHA'] in section manager lambda infra code

I'd love feedback/perspectives on:

  • any other guesses as to why JWT_KEY never made it to prod?

Copy link

github-actions bot commented Apr 2, 2025

Plan Result (section-manager-lambda-cdk-production)

CI link

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • aws_lambda_function.section-manager-sqs-lambda_D7365DAE
Change Result (Click me)
  # aws_lambda_function.section-manager-sqs-lambda_D7365DAE will be updated in-place
  ~ resource "aws_lambda_function" "section-manager-sqs-lambda_D7365DAE" {
        id                             = "SectionManagerLambda-Prod-SQS-Function"
      ~ qualified_arn                  = "arn:aws:lambda:us-east-1:996905175585:function:SectionManagerLambda-Prod-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:996905175585:function:SectionManagerLambda-Prod-SQS-Function:16/invocations" -> (known after apply)
        tags                           = {
            "app_code"       = "content"
            "component_code" = "content-sectionmanagerlambda"
            "env_code"       = "prod"
            "environment"    = "Prod"
            "service"        = "SectionManagerLambda"
        }
      ~ version                        = "16" -> (known after apply)
        # (20 unchanged attributes hidden)

      ~ environment {
          ~ variables = {
              - "GIT_SHA"     = "c949e709fa3114713051f0fff29c7a7b736f55c4" -> null
              + "JWT_KEY"     = "SectionManagerLambda/Prod/JWT_KEY"
                # (4 unchanged elements hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

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

⚠️ Errors

@jpetto
Copy link
Contributor Author

jpetto commented Apr 2, 2025

eh, this fix is a guess - closing for further investigation.

@jpetto jpetto closed this Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant