aws gamelift cli how to wait for active fleet before changing alias.

0

Hi, I want to automate my pipeline so every build generates a new fleet and in turn our alias points to that fleet. However if I do that I get some down time between one fleet and the other. Is there a way to say cli to activate the fleet and wait for it to be active?

已提問 2 年前檢視次數 195 次
1 個回答
2

Hey!

While I don't think there's an inbuilt mechanism via the AWS CLI to do this, you should be able to write a command line script that polls periodically on the fleet status using the describe-fleet-attributes command. Note that this API has low call limits per second, so you should additionally ensure you have appropriate backoff and retry mechanisms in place to avoid getting throttled.

Thanks!

AWS
已回答 2 年前
profile pictureAWS
專家
Toni_S
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南