LoginSignup
0
0

More than 1 year has passed since last update.

AWS CLIでパラメータストアからパラメータを削除するコマンド

Posted at

AWS CLIの操作が得意では無いので、備忘として残しておきます。
なお、すべてのコマンドが知りたい場合は公式資料を見るのが一番確実です。

AWS CLIコマンドの基本

AWS CLIコマンドの基本形は以下です。
[options]には大体サービス名の略称が入ります。

aws [options] <command> <subcommand> [<subcommand> ...] [parameters]

パラメータストアで言うとSystems Managerが対象のサービスなので、optionsはssmになります。
公式ドキュメントでもoptionsは確認できるので、以下の画像の部分を参考にしてみてください。

options.png
https://docs.aws.amazon.com/cli/latest/reference/ssm/delete-parameter.html

DELETEコマンド

aws ssm delete-parameter --name "parameter-name"

複数のAWSアカウントを管理している場合、profileパラメータにprofile名を入れる。

aws ssm delete-parameter --name "parameter-name"  --profile "profile-name"

GETコマンド

aws ssm get-parameter --name "parameter-name"
0
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
0
0