Files
Jonathan Boniface bc84ee4df6
Some checks failed
check agents / check (push) Failing after 13s
Solution architecture outcome pattern: agent and its MCP servers
The cp1-solution-architecture-agent and the sa-aws/azure/gcp-cloud MCP servers, a separate
stream from the individual and sub-agent patterns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:13:25 +00:00

813 B

Lambda

A function from a package in S3, with tracing and a dead-letter queue.

variable "role_arn" {
  type = string
}

variable "package_bucket" {
  type = string
}

variable "package_key" {
  type = string
}

resource "aws_sqs_queue" "dead_letters" {
  name                      = "ingest-dlq"
  message_retention_seconds = 1209600
  sqs_managed_sse_enabled   = true
}

resource "aws_lambda_function" "ingest" {
  function_name = "ingest"
  role          = var.role_arn
  runtime       = "python3.13"
  handler       = "app.handler"
  s3_bucket     = var.package_bucket
  s3_key        = var.package_key
  architectures = ["arm64"]
  timeout       = 30
  memory_size   = 512

  dead_letter_config {
    target_arn = aws_sqs_queue.dead_letters.arn
  }

  tracing_config {
    mode = "Active"
  }
}