From fb04d4a4566236f24338791399f2e23faa4b8236 Mon Sep 17 00:00:00 2001 From: arnie Date: Wed, 5 Mar 2025 09:47:44 +0100 Subject: [PATCH] Add aws cli profiles --- home-manager/veracode/aws-cli.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/home-manager/veracode/aws-cli.nix b/home-manager/veracode/aws-cli.nix index 57e6a2d..39c45b9 100644 --- a/home-manager/veracode/aws-cli.nix +++ b/home-manager/veracode/aws-cli.nix @@ -242,12 +242,26 @@ in ${builtins.concatStringsSep "\n" ( lib.mapAttrsToList (id: account: '' + [profile ${account.name}] + sso_account_id = ${id} + sso_role_name = ${account.role} + sso_session = veracode-us + region = us-east-1 + output = json + [profile us-${account.name}] sso_account_id = ${id} sso_role_name = ${account.role} sso_session = veracode-us region = us-east-1 output = json + + [profile id-${id}] + sso_account_id = ${id} + sso_role_name = ${account.role} + sso_session = veracode-us + region = us-east-1 + output = json '') accounts.us )} @@ -259,6 +273,13 @@ in sso_session = veracode-eu region = eu-central-1 output = json + + [profile id-${id}] + sso_account_id = ${id} + sso_role_name = ${account.role} + sso_session = veracode-eu + region = eu-central-1 + output = json '') accounts.eu )} '';