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?

posta 9 mesi fa448 visualizzazioni
1 Risposta
1
Risposta accettata

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
ESPERTO
con risposta 9 mesi fa
  • Thanks a lot for the prompt response. Makes sense. Will try this.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande