From 42badaa5bed2fb1e52fc6c9817e7a5678258a177 Mon Sep 17 00:00:00 2001 From: Lukas Cech Date: Tue, 14 Jan 2025 16:31:30 +0100 Subject: [PATCH] Fix aws cli alias and provide region specific finders for veracode --- home-manager/veracode/aws-cli.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/home-manager/veracode/aws-cli.nix b/home-manager/veracode/aws-cli.nix index b92e888..fe605c2 100644 --- a/home-manager/veracode/aws-cli.nix +++ b/home-manager/veracode/aws-cli.nix @@ -268,7 +268,21 @@ in veracode-find = ''${pkgs.writeShellScript "veracode-find" '' for profile in $(aws configure list-profiles | grep -E '^(us|eu)-'); do echo "=== $profile ===" - aws --profile $profile $@; + aws --profile $profile "$@"; + done + ''}''; + + veracode-find-eu = ''${pkgs.writeShellScript "veracode-find" '' + for profile in $(aws configure list-profiles | grep -E '^(eu)-'); do + echo "=== $profile ===" + aws --profile $profile "$@"; + done + ''}''; + + veracode-find-us = ''${pkgs.writeShellScript "veracode-find" '' + for profile in $(aws configure list-profiles | grep -E '^(us)-'); do + echo "=== $profile ===" + aws --profile $profile "$@"; done ''}''; };