aws:createTags
–
Create tags for Amazon resources
Creates new tags for Amazon Elastic Compute Cloud (Amazon EC2) instances or Amazon Systems Manager managed instances.
Input
This action supports most Amazon EC2 CreateTags
and Systems Manager
AddTagsToResource
parameters. For more information, see CreateTags and AddTagsToResource.
The following example shows how to tag an Amazon Machine Image (AMI) and an instance as production resources for a particular department.
- ResourceIds
-
The IDs of the resource(s) to be tagged. If resource type isn't “EC2”, this field can contain only a single item.
Type: String List
Required: Yes
- Tags
-
The tags to associate with the resource(s).
Type: List of Maps
Required: Yes
- ResourceType
-
The type of resource(s) to be tagged. If not supplied, the default value of “EC2” is used.
Type: String
Required: No
Valid Values:
EC2
|ManagedInstance
|MaintenanceWindow
|Parameter
Output
None