Commit 169c6ac
Remove cloudposse/template provider; migrate to templatefile() (#60)
* Remove cloudposse/template provider; migrate to templatefile()
Replace the deprecated `data "template_file"` user-data rendering with the
core `templatefile()` function and drop the `cloudposse/template` provider
from `required_providers`. Also bumps Go test module to 1.26.1 and refreshes
all test dependencies.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Gate templatefile() behind local.enabled
Preserve the disabled-path behavior of the original `data "template_file"`
resource, which was scoped via `count = local.enabled ? 1 : 0`. The `local`
is now only evaluated when the component is enabled, avoiding potential
plan-time failures when `var.user_data` is unset in disabled deployments.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Bump cloudposse/stack-config/yaml remote-state module to 2.0.0
The v1.8.0 module pinned `cloudposse/utils` to `>= 1.7.1, < 2.0.0`, which
conflicts with modern components that require `utils >= 2.0.0`. v2.0.0 of
the remote-state module pins `utils >= 2.0.0, < 3.0.0`, resolving the
`terraform init` provider-resolution failure.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Bump vendored test fixture components to modern versions
Point `account-map` at `cloudposse-terraform-components/aws-account-map`
v1.537.2 (instead of the old monorepo `terraform-aws-components` 1.520.0
which used stack-config 1.5.0 → pinning utils < 2.0.0). Point `vpc` at
aws-vpc v2.2.0 (from v1.536.0). Both modern versions use
`cloudposse/stack-config/yaml//modules/remote-state` 2.0.0, which pins
`cloudposse/utils >= 2.0.0, < 3.0.0` — compatible with the bumped src.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cb0f630 commit 169c6ac
8 files changed
Lines changed: 475 additions & 328 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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 | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
| |||
41 | 36 | | |
42 | 37 | | |
43 | 38 | | |
44 | | - | |
| 39 | + | |
45 | 40 | | |
46 | 41 | | |
47 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 9 | | |
14 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments