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 年前198 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则