GPGインストール
参考:https://mytech-blog.com/ubuntu-aws-vault/
$ sudo apt-get update && sudo apt-get install -y pass gnupg
$ gpg --gen-key
gpg (GnuPG) 2.2.27; Copyright (C) 2021 Free Software Foundation, Inc.
...
公開鍵と秘密鍵を作成し、署名しました。
pub rsa3072 2024-10-09 [SC] [有効期限: 2026-10-09]
E94E7E7733DEA707685656E1D895E3B647B56666
uid sawada.taiji <sawada.taiji@jp.panasonic.com>
sub rsa3072 2024-10-09 [E] [有効期限: 2026-10-09]
$ MY_PUBLIC_KEY="E94E7E7733DEA707685656E1D895E3B647B56666"
$ pass init "$MY_PUBLIC_KEY"
$ emacs ~/.bashrc # 下記を追加
export AWS_VAULT_BACKEND=pass
export AWS_VAULT_PASS_PREFIX=aws-vault
export GPG_TTY=$(tty)