This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::ResourceGroups::TagSyncTask
Onboards and syncs resources tagged with a specific tag key-value pair to an application.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:StartTagSyncTask -
resource-groups:CreateGroup -
iam:PassRolefor the role you provide to create a tag-sync task
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::ResourceGroups::TagSyncTask", "Properties" : { "Group" :String, "RoleArn" :String, "TagKey" :String, "TagValue" :String} }
YAML
Type: AWS::ResourceGroups::TagSyncTask Properties: Group:StringRoleArn:StringTagKey:StringTagValue:String
Properties
-
The Amazon resource name (ARN) or name of the application group for which you want to create a tag-sync task.
Required: Yes
Type: String
Pattern:
([a-zA-Z0-9_\\.-]{1,150}/[a-z0-9]{26})|(arn:aws(-[a-z]+)*:resource-groups(-(test|beta|gamma))?:[a-z]{2}(-[a-z]+)+-\d{1}:[0-9]{12}:group/[a-zA-Z0-9_\\.-]{1,150}/[a-z0-9]{26})Minimum:
12Maximum:
1600Update requires: Replacement
-
The Amazon resource name (ARN) of the role assumed by the service to tag and untag resources on your behalf.
Required: Yes
Type: String
Pattern:
arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+Minimum:
20Maximum:
2048Update requires: Replacement
-
The tag key.
Required: Yes
Type: String
Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$Minimum:
1Maximum:
128Update requires: Replacement
-
The tag value.
Required: Yes
Type: String
Pattern:
^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$Minimum:
0Maximum:
256Update requires: Replacement
Return values
Ref
The TaskArn.
Fn::GetAtt
GroupArn-
The Amazon resource name (ARN) of the application group.
GroupName-
The name of the application group.
Status-
The status of the tag-sync task.
Valid values include:
-
ACTIVE- The tag-sync task is actively managing resources in the application by adding or removing theawsApplicationtag from resources when they are tagged or untagged with the specified tag key-value pair. -
ERROR- The tag-sync task is not actively managing resources in the application. Review theErrorMessagefor more information about resolving the error.
-
TaskArn-
The Amazon resource name (ARN) of the tag-sync task.