Skip to content

Commit

Permalink
update interpolation test case to include long non-interpolated subst…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
kkozik-amplify committed Jan 16, 2025
1 parent 993ef6b commit 9e49e8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"locals": [
{
"embedded_interpolation": "${module.special_constants.aws_accounts[\"aaa-${local.foo}-${local.bar}\"]}/us-west-2/key_foo"
"embedded_interpolation": "(long substring without interpolation); ${module.special_constants.aws_accounts[\"aaa-${local.foo}-${local.bar}\"]}/us-west-2/key_foo"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
embedded_interpolation = "${module.special_constants.aws_accounts["aaa-${local.foo}-${local.bar}"]}/us-west-2/key_foo"
embedded_interpolation = "(long substring without interpolation); ${module.special_constants.aws_accounts["aaa-${local.foo}-${local.bar}"]}/us-west-2/key_foo"
}
2 changes: 1 addition & 1 deletion test/unit/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_locals_embedded_interpolation_tf(self):
builder = hcl2.Builder()

embedded_interpolation = (
"${module.special_constants.aws_accounts"
"(long substring without interpolation); ${module.special_constants.aws_accounts"
'["aaa-${local.foo}-${local.bar}"]}/us-west-2/key_foo'
)

Expand Down

0 comments on commit 9e49e8a

Please sign in to comment.