Commit 55de666
authored
Fix Lambda S3 bucket cross-region access error (#9)
* Fix Lambda S3 bucket cross-region access error
The agent-scaler Lambda was using a hardcoded "buildkite-lambdas"
bucket, causing PermanentRedirect errors in regions outside us-east-1.
Now uses region-specific buckets (e.g., buildkite-lambdas-us-west-2),
incorporating the mapping from agent-scaler's SAM template
(https://github.com/buildkite/buildkite-agent-scaler/blob/ac0883ab632a8689384ec8991c6415f8f3b48052/template.yaml#L166-L187).
* Use ternary to construct bucket name instead of relying on mapping1 parent 90e3ecc commit 55de666
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
0 commit comments