Skip to content

Commit 221428d

Browse files
authored
Fix naming convention of overridable local variable (cloudposse/terraform-aws-components#826)
1 parent 4372f3c commit 221428d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ Actually, the project releases 3 policy documents, one for each of the
2020
three AWS partitions: `aws`, `aws-cn`, and `aws-us-gov`. For simplicity,
2121
this module only uses the `aws` partition policy. If you are in another
2222
partition, you can create a `distributed-iam-policy_override.tf` file in your
23-
directory and override the `distributed_iam_policy_overridable` local
23+
directory and override the `overridable_distributed_iam_policy` local
2424
variable with the policy document for your partition.

src/distributed-iam-policy.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ locals {
1616
# To update, just replace everything between the two "EOT"s with the contents of the downloaded JSON file.
1717
# Below is the policy as of version 2.6.0, downloaded from
1818
# https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.6.0/docs/install/iam_policy.json
19-
# This policy is for the `aws` partition. Override distributed_iam_policy_overridable for other partitions.
20-
distributed_iam_policy_overridable = <<EOT
19+
# This policy is for the `aws` partition. Override overridable_distributed_iam_policy for other partitions.
20+
overridable_distributed_iam_policy = <<EOT
2121
{
2222
"Version": "2012-10-17",
2323
"Statement": [

src/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module "alb_controller" {
2222

2323
iam_role_enabled = true
2424
# See distributed-iam-policy.tf
25-
iam_source_policy_documents = [local.distributed_iam_policy_overridable]
25+
iam_source_policy_documents = [local.overridable_distributed_iam_policy]
2626

2727
values = compact([
2828
# standard k8s object settings

0 commit comments

Comments
 (0)