😽 yumenomatayume.log

AWS CLI で「Could not find executable named "groff"」というエラーが出た時の対処法

AWS CLI を使用していたところ、以下のエラーが発生しました。

❯ aws eks help

Could not find executable named "groff"

groff コマンドがないと help が表示できないようです。

利用しているバージョンは次の通りです。

❯ aws --version
aws-cli/2.4.10 Python/3.8.8 Darwin/22.4.0 exe/x86_64 prompt/off

AWS CLI のバージョンをアップグレードしてみます。

私の環境では、AWS CLI を adsf でインストールしていたため、パッケージ依存関係などを考慮せずに利用しています。

次のコマンドで最新版にアップグレードします。

asdf install awscli latest
asdf global awscli latest

2.11.19 がインストールされました。

❯ aws --version
aws-cli/2.11.19 Python/3.11.3 Darwin/22.4.0 exe/x86_64 prompt/off

help も無事に表示できます。

❯ aws eks help

EKS()                                                                    EKS()

NAME
       eks -

DESCRIPTION
       Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service
       that makes it easy for you to run Kubernetes on Amazon Web Services
       without needing to stand up or maintain your own Kubernetes control
       plane. Kubernetes is an open-source system for automating the
       deployment, scaling, and management of containerized applications.
参考

👍