Skip to content

Fix typos and cleanup in AWS self-host infrastructure#2213

Merged
jakubno merged 2 commits intoe2b-dev:mainfrom
ya-luotao:claude/review-aws-selfhost-infra-13EFH
Mar 24, 2026
Merged

Fix typos and cleanup in AWS self-host infrastructure#2213
jakubno merged 2 commits intoe2b-dev:mainfrom
ya-luotao:claude/review-aws-selfhost-infra-13EFH

Conversation

@ya-luotao
Copy link
Copy Markdown
Contributor

@ya-luotao ya-luotao commented Mar 24, 2026

Summary

Typo & cleanup fixes

  • Rename misspelled vcp_availability_zones to vpc_availability_zones across the network module (3 files)
  • Fix typo "nots" → "not" in VPC endpoint comment (modules/network/main.tf)
  • Remove duplicate TERRAFORM_ENVIRONMENT declaration in .env.aws.template

Wire Grafana logs forwarding (parity with GCP)

  • Add LOGS_USER, LOGS_URL, and LOGS_COLLECTOR_API_TOKEN fields to the existing Grafana secret in AWS Secrets Manager
  • Wire grafana_logs_user, grafana_logs_endpoint, and grafana_api_key variables through the AWS provider into the shared job-logs-collector module
  • Brings AWS logs-collector to parity with GCP, enabling optional Grafana Loki log forwarding

Test plan

  • terraform plan runs without errors (variable rename is consistent across all references)
  • New Grafana secret fields appear in plan output
  • When Grafana logs credentials are populated, Vector config includes the grafana_loki_output sink
  • When credentials are empty (default), behavior is unchanged — the sink is skipped via the %{ if } conditional in vector.toml

- Rename misspelled `vcp_availability_zones` to `vpc_availability_zones` across network module
- Fix typo "nots" -> "not" in VPC endpoint comment
- Remove duplicate TERRAFORM_ENVIRONMENT in .env.aws.template

https://claude.ai/code/session_013AbL8FdtWDH2HRWwfDubSr
…or job

Add grafana_logs_user, grafana_logs_endpoint, and grafana_api_key to the
AWS provider's logs-collector module, matching the existing GCP pattern.
This enables forwarding logs to Grafana Cloud from AWS deployments.

Changes:
- Add LOGS_USER, LOGS_URL, LOGS_COLLECTOR_API_TOKEN to the grafana
  secret in AWS init module and expose them in the output
- Add grafana_logs_user, grafana_logs_endpoint, grafana_logs_api_key
  variables to the AWS nomad module
- Pass the variables through to the shared job-logs-collector module
- Wire secrets from init module through main.tf to the nomad module

https://claude.ai/code/session_013AbL8FdtWDH2HRWwfDubSr
@jakubno jakubno merged commit 874d55b into e2b-dev:main Mar 24, 2026
30 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.

3 participants