From 9ec3e1124b56529d73e375db9e7fe826721ee0bb Mon Sep 17 00:00:00 2001 From: Jason Swank <632526+jswank@users.noreply.github.com> Date: Tue, 13 Jan 2026 13:00:39 -0500 Subject: [PATCH] zsh: add aws-get-bedrock-profile --- .../share/zsh/functions/aws-get-bedrock-profile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 zsh/.local/share/zsh/functions/aws-get-bedrock-profile diff --git a/zsh/.local/share/zsh/functions/aws-get-bedrock-profile b/zsh/.local/share/zsh/functions/aws-get-bedrock-profile new file mode 100644 index 0000000..75da12f --- /dev/null +++ b/zsh/.local/share/zsh/functions/aws-get-bedrock-profile @@ -0,0 +1,17 @@ +aws-get-bedrock-profile () { + profile_arn=$(aws bedrock list-inference-profiles \ + | jq -r '.inferenceProfileSummaries + | map(select(.inferenceProfileId | startswith("us."))) + | sort_by(.inferenceProfileName) + | .[] + | [.inferenceProfileArn, .inferenceProfileName, .description] + | @tsv' \ + | fzf \ + --header="$(printf '%-30s\t%s\n' 'NAME' 'DESCRIPTION')" \ + --no-preview \ + --delimiter='\t' \ + --with-nth=2,3 \ + | awk '{print $1}') + [[ -z "$profile_arn" ]] && return 1 + echo "$profile_arn" +}