Add veracode aws cli searcher
This commit is contained in:
parent
3363f0b90d
commit
56a2ca7c5a
@ -13,7 +13,7 @@ in
|
||||
{
|
||||
imports = [
|
||||
(import ./veracode/aws-cli.nix {
|
||||
inherit homedir lib;
|
||||
inherit homedir lib pkgs;
|
||||
})
|
||||
];
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
homedir,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
@ -262,4 +263,13 @@ in
|
||||
)}
|
||||
'';
|
||||
};
|
||||
|
||||
programs.zsh.shellAliases = {
|
||||
veracode-find = ''${pkgs.writeShellScript "veracode-find" ''
|
||||
for profile in $(aws configure list-profiles | grep -E '^(us|eu)-'); do
|
||||
echo "=== $profile ==="
|
||||
aws --profile $profile $@;
|
||||
done
|
||||
''}'';
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user