Skip to content

infra(design): Phase 1 Sprint 0 — Private Subnet outbound 経路選定 ADR(NAT GW vs VPC Endpoint vs 他)(S0Infra-9) #245

Description

@win2cot

Phase 1 Sprint 0 Infra-9: Private Subnet outbound 経路選定 ADR

概要

dev 環境の Private Subnet ワークロード(ECS Fargate)から AWS マネージドサービス + 外部ネットワークへの outbound 経路を ADR として確定する。infra/docs/adr/0003-private-subnet-outbound.md 新規作成。

詳細仕様: docs/architecture/infrastructure-plan.md v5 §6.1 / §3.5。

背景

Private Subnet から outbound アクセスする方法は複数あり、本案件の MVP 〜 Phase 2 スコープに対して最適解が未確定:

  • (a) NAT Gateway: 任意の外部 IP へ汎用的に到達、~$32/月 + 通信費($0.045/GB)
  • (b) VPC Endpoint(Interface): AWS マネージドサービス向け、$7.20/月/AZ、通信費なし
  • (c) S3 Gateway Endpoint: S3 専用、無料
  • (d) ハイブリッド: VPC Endpoint で AWS 系をカバー + NAT GW で将来の外部用途
  • (e) その他

議論ポイント(ADR で決定)

  1. MVP 必要な outbound 用途リスト(ECR pull / SSM / CWL / SES / KMS / S3 等)
  2. MVP scope 外だが Phase 2 で必要になりうる用途(外部 IdP federation / Webhook / 外部 API)
  3. コスト比較(dev、prod 別)
  4. 将来の拡張余地と移行コスト
  5. 採用案

ADR 内容(本 ADR の作成プロセスで議論を経て確定)

  • Status: Proposed → 議論完了で Accepted
  • Decision: 本 ADR の議論を経て確定(現段階では未決定)
  • Alternatives: (a)〜(e) の trade-off を Consequences に整理

受入条件

  • infra/docs/adr/0003-private-subnet-outbound.md accepted status
  • 議論ポイント 1〜5 すべてに比較・根拠記載
  • 採用案 Decision が明確
  • S0Infra-4 実装の前提として参照可能

関連

備考

  • task-type: task-type:design
  • 優先度: priority/p0(Sprint 0 critical path、S0Infra-4 ブロッカー)
  • area: area/infra
  • claude-automation 推奨: 議論先行

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraAWS インフラ(ECS Fargate / RDS / Keycloak / IAM)変更priority/p0Critical / Blocker。本番影響あり、または他作業がブロックされるtask-type:design規約・ADR・設計書の追加/変更タスク

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions