0
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?

【AWS】Systems Manager Automationのstepの名前は一意である必要があった...!

Posted at

概要

AWS Systems Manager Automation(ランブック)のmainStepsで、なぜか一部stepが抜け落ちて保存されてしまう事象が発生。

原因と解決方法

原因は、mainSteps配列内で同じnamestartRdsなどの名前)が重複しているためでした。

AWS Systems Manager Automation(SSMランブック)のmainStepsでは、各ステップのnameは一意である必要があるとのこと。

name
Runbook のすべてのステップ名にわたって一意でなければならない識別子。
タイプ: 文字列
使用できるパターン: [a-zA-Z0-9_]+$
必須: はい

引用元:https://docs.aws.amazon.com/ja_jp/systems-manager/latest/userguide/automation-actions.html

なので、たとえばstartRdsというステップ名が二つ存在していると、中身は違ってステップ名が同じのため、最初の方だけ残って、後の方は消えてしまいました。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?