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?

demandé il y a 9 mois447 vues
1 réponse
1
Réponse acceptée

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
EXPERT
répondu il y a 9 mois
  • Thanks a lot for the prompt response. Makes sense. Will try this.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions