From 390256a089712b7e3f3d7b37677958405bfdcf83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Stru=C3=9F?= Date: Tue, 27 Sep 2022 12:00:41 +0200 Subject: [PATCH] fix: iam_role statement can't find global_values.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Struß --- terragrunt/live/production/terragrunt.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terragrunt/live/production/terragrunt.hcl b/terragrunt/live/production/terragrunt.hcl index 662b9dfd..809270b9 100644 --- a/terragrunt/live/production/terragrunt.hcl +++ b/terragrunt/live/production/terragrunt.hcl @@ -63,4 +63,4 @@ generate "provider-aws" { # Use this to impersonate a role, useful for EKS when you want a role to be # the "root" use and not a personal AWS account -# iam_role = "arn:aws:iam::${yamldecode(file("global_values.yaml"))["aws_account_id"]}:role/administrator" +# iam_role = "arn:aws:iam::${yamldecode(file(find_in_parent_folders("global_values.yaml")))["aws_account_id"]}:role/administrator"