Skip to content

Added AWS_REGION env + Caddyfile region. - #64

Merged
danmoz merged 1 commit into
masterfrom
opencode/issue34-20260905063945
Sep 5, 2026
Merged

danmoz merged 1 commit into
masterfrom
opencode/issue34-20260905063945

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Tests pass. Fixed the issue in two places:

  1. infra/main.tf — added AWS_REGION to the ECS task definition's environment, sourcing it from data.aws_region.current.name.
  2. infra/Caddyfile — added region {$AWS_REGION} to the lambda block so the region reaches the Caddy container explicitly.

This ensures cfg.Region is populated at middleware.go:94, so Provision no longer returns AWS region is required.

Closes #34

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

Co-authored-by: danmoz <danmoz@users.noreply.github.com>
@danmoz
danmoz merged commit 6021143 into master Sep 5, 2026
10 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.

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

1 participant