跳至內容

Why can cloudformation not specify GameLift Fleet tags?

0

Most GameLift resources I create in cloudformation allow me to specify tags (MatchmakingRuleSet, MatchmakingConfiguration, GameSessionQueue, Roles, Location, etc), but Fleets seem to be an exception to this. Fleets appear to have tags in the console UI, but they do not seem to be supported in cloudformation (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html).

Is there a reason they can not specify tags? (Or am I missing something and should be able to?)

已提問 1 年前檢視次數 96 次
1 個回答
0

Hello.

Looking at the GitHub issue below, it seems that as of September 2024, it still does not support setting tags on GameLift Fleet with CloudFormation.
https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/834
https://github.com/hashicorp/terraform-provider-awscc/issues/1541

An API exists to assign tags to GameLift resources.
Therefore, I think the only way at present is to use this API to set tags with custom resources.
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/gamelift/client/tag_resource.html

Please check the following documentation for CloudFormation custom resources.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources-lambda.html

專家
已回答 1 年前
專家
已審閱 1 年前

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

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