Image Builder start-image-pipeline-execution Wait till Completion

0

I am using aws cli command for ImageBuilder start-image-pipeline-execution from my Shell script inside my GitHub Action. However, I am unable to make this wait till completion. Because of this, GitHub action reports success, even if the Image Pipeline fails. Is there a way to make this command wait till completion?

Command is from the link.

  • As mentioned above, I am trying that using shell script in my GitHub action. But somehow, I can't get the real time cloud watch log for the image builder pipeline execution in my shell script inside of the GitHub action. Can you please help me with that?

質問済み 9ヶ月前450ビュー
1回答
1
承認された回答

Hi,

No, but you can implement it in the different way. The output of your command give you the arn of the image it building. You need to put it into variable and then implement some while loop where you will call aws imagebuilder get-image --image-build-version-arn $YOUR_IMAGE_BUILD_ARN, parse output and check the image.state.status value. You might need jq to parse output but I do not see any problems with implementing it.

profile picture
エキスパート
回答済み 9ヶ月前
  • Thanks a lot for the prompt response. Makes sense. Will try this.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ