Commit bbe8c8b
authored
🤖 refactor: upgrade terraform EKS versions and backend docs (#36)
## Summary
Upgrade the Terraform EKS sandbox configuration to current versions,
keep CI aligned with the new Terraform requirement, and record shared
backend details for agent workflows without hardcoding backend values in
Terraform source.
## Background
The Terraform and EKS defaults in this branch were outdated. We also
needed a durable shared reference for the remote state S3 bucket/key so
agents can run plans quickly, while keeping backend values out of
committed Terraform configuration.
## Implementation
- Upgraded Terraform CLI minimum in `terraform/versions.tf` from `>=
1.11` to `>= 1.14`.
- Upgraded AWS provider constraint from `~> 5.0` to `~> 6.0`.
- Refreshed `terraform/.terraform.lock.hcl` to `hashicorp/aws` `6.31.0`
via `terraform init -upgrade`.
- Upgraded default EKS cluster version in `terraform/variables.tf` from
`1.31` to `1.35`.
- Updated `terraform/README.md` to match new Kubernetes and Terraform
version requirements.
- Added a new **Terraform Backend Reference (Agents)** section to
`AGENTS.md` with:
- bucket `coder-k8s-tfstate-112158171837`
- key `terraform-ncp3/sandbox-eks/terraform.tfstate`
- nix-shell-based init example and AWS CLI usage guidance.
- Updated Terraform CI setup in `.github/workflows/ci.yaml` to
`terraform_version: 1.14.4` so CI uses a version compatible with the new
required Terraform constraint.
## Validation
- `make verify-vendor`
- `make test`
- `make build`
- `make lint`
- `go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.10`
- `nix develop -c terraform -chdir=terraform fmt -check`
- `nix develop -c terraform -chdir=terraform validate`
- `nix develop -c terraform -chdir=terraform init -backend=false
-lockfile=readonly -input=false`
- `nix develop -c terraform -chdir=terraform init -reconfigure
-backend-config="bucket=coder-k8s-tfstate-112158171837"
-backend-config="key=terraform-ncp3/sandbox-eks/terraform.tfstate"
-no-color`
- `nix develop -c terraform -chdir=terraform plan -input=false
-no-color`
- Plan summary: `0 to add, 2 to change, 0 to destroy` (EKS version bump
+ NAT gateway in-place provider schema update)
## Risks
- AWS provider major version upgrade (`5.x` -> `6.x`) can surface
behavior differences at apply time; validated current plan output and
kept changes scoped.
- EKS version bump to `1.35` is an in-place control-plane upgrade and
should be coordinated with expected maintenance windows if applied to
existing environments.
- Terraform CI version bump is scoped to the Terraform job and intended
to keep CI in lockstep with repo constraints.
---
_Generated with [`mux`](https://github.com/coder/mux) • Model:
`openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$0.45`_
<!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh
costs=0.45 -->1 parent efdf548 commit bbe8c8b
6 files changed
Lines changed: 32 additions & 23 deletions
File tree
- .github/workflows
- terraform
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments