2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【AWS Systems Manager Parameter Store】パラメータを一括で取得したい

Posted at

はじめに

環境構築の情報をドキュメントにする作業において、パラメータストアから手作業で情報を取得するのが手間だったので、AWS CLIから良い感じに取得してみました。

パラメータを一括で取得したい

(パラメータを取得したい環境のProfileに切り替えている前提です)

リスト形式で出力

"/hoge/"でhogeを含むパスのパラメータを取得できます

$ aws ssm get-parameters-by-path --path "/hoge/" --recursive --region ap-northeast-1 > output_list.txt

リスト形式イメージ

image.png

テーブル形式で出力

$ aws ssm get-parameters-by-path --path "/hoge/" --recursive --output table --region ap-northeast-1 > output_table.txt

テーブル形式イメージ

image.png

公式ドキュメント

おわりに

しばらくお世話になりそうです。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?