From 115740c012a59733500804d60e1e399999c502de Mon Sep 17 00:00:00 2001 From: "Philip M. Gollucci" Date: Sun, 17 Nov 2024 23:05:15 -0500 Subject: [PATCH] refactor: step 4 --- bin/p6lzctl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/p6lzctl b/bin/p6lzctl index 91ef6c0..bd2b749 100755 --- a/bin/p6lzctl +++ b/bin/p6lzctl @@ -384,21 +384,21 @@ p6_lz_run_phase_2_bootstrap_trust() { local action="$1" p6_h3 "Phase 2: Bootstrap Trust" - local mgmt_account_id=$(jq -r ".managementAccountId" cdk.context.json) + local management_account_id=$(jq -r ".managementAccountId" cdk.context.json) local account_ids=$(jq -r 'to_entries[] | select(.key != "managementAccountId") | .value' cdk.context.json) local account_id for account_id in $account_ids; do if [ "$action" = "deploy" ]; then p6_aws_svc_organizations_sts_su $account_id pnpm cdk bootstrap aws://$account_id/us-east-1 \ - --trust $mgmt_account_id \ - --trust-for-lookup $mgmt_account_id \ + --trust $management_account_id \ + --trust-for-lookup $management_account_id \ --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess p6_aws_svc_organizations_sts_su_un else echo pnpm cdk bootstrap aws://$account_id/us-east-1 \ - --trust $mgmt_account_id \ - --trust-for-lookup $mgmt_account_id \ + --trust $management_account_id \ + --trust-for-lookup $management_account_id \ --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess fi done