Skip to content

Instantly share code, notes, and snippets.

@sasasin
Created December 4, 2022 13:38
Show Gist options
  • Save sasasin/81275ee27bed15ed72c61039ffad53a2 to your computer and use it in GitHub Desktop.
Save sasasin/81275ee27bed15ed72c61039ffad53a2 to your computer and use it in GitHub Desktop.
Amazon ElastiCache を一覧CSVにするやつ

わかるー、CSVで出したいー

https://dev.classmethod.jp/articles/elasticache-describe-clusters-csv/

replication group で Multi AZ にしてるし、パラメータグループが何なのか知りたいこともあるなー、、、、こうか!?

aws elasticache describe-cache-clusters\
| jq -r '
["クラスター名", "ノード名","ノードタイプ","エンジン","バージョン","ノード数", "パラメータグループ名"],
(.CacheClusters[] | [.ReplicationGroupId, .CacheClusterId, .CacheNodeType, .Engine, .EngineVersion, .NumCacheNodes, .CacheParameterGroup.CacheParameterGroupName]) | @csv'

いい感じですね

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment