Skip to content

fix(infra): fix Lambda count errors and DynamoDB key_schema - #7

Merged
gpazevedo merged 1 commit into
mainfrom
feature/infra-fixes
Mar 16, 2026
Merged

gpazevedo merged 1 commit into
mainfrom
feature/infra-fixes

Conversation

@gpazevedo

Copy link
Copy Markdown
Owner

Summary

  • Lambda: removed count = var.*_image_uri != "" ? 1 : 0 conditionals — Terraform cannot evaluate count when the value depends on ECR repo URLs unknown until apply. Lambdas are always created (image URI uses placeholder tag on first apply, replaced by CI/CD on deploy).
  • Lambda outputs: removed corresponding [0] index references from outputs.
  • DynamoDB: reverted key_schema block back to hash_key/range_key attributes — key_schema block syntax is not valid in AWS provider 6.36.

Test Plan

  • terraform plan completes without errors
  • terraform apply creates all three Lambda functions

🤖 Generated with Claude Code

@gpazevedo
gpazevedo merged commit 96970e5 into main Mar 16, 2026
1 of 2 checks passed
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