add db credentials to categorisation tf

This commit is contained in:
Daniel Roth 2026-02-17 09:29:37 +00:00
parent fa8d11c98c
commit 827745c10f

View file

@ -1,3 +1,7 @@
data "aws_secretsmanager_secret_version" "db_credentials" {
secret_id = "${var.stage}/assessment_model/db_credentials"
}
data "terraform_remote_state" "shared" {
backend = "s3"
config = {
@ -7,6 +11,10 @@ data "terraform_remote_state" "shared" {
}
}
locals {
db_credentials = jsondecode(data.aws_secretsmanager_secret_version.db_credentials.secret_string)
}
module "lambda" {
source = "../modules/lambda_with_sqs"