Skip to content

Deployed test stack cannot start: AWS_REGION never reaches the Caddy container #34

Closed

Description

@danmoz

High severity.

infra/Caddyfile sets no region, and the ECS task definition (infra/main.tf, container_definitions.environment) only sets LAMBDA_FUNCTION. Fargate does not inject AWS_REGION, and aws-sdk-go-v2's IMDS region discovery is opt-in (WithEC2IMDSRegion, unused). Provision therefore fails with AWS region is required (middleware.go:87-89) and Caddy exits.

Activity

  1. self-assigned this
    on Sep 5, 2026
  2. danmoz commented on Sep 5, 2026

    @danmoz
    OwnerAuthor

    /oc triage

  3. opencode-agent commented on Sep 5, 2026

    @opencode-agent
    Contributor

    Created PR #64

    New%20session%20-%202026-09-05T06%3A39%3A44.843Z
    opencode session  |  github run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions