Tagging with AWS DeepComposer
A tag is label that you or AWS optionally defines and associates with AWS resources, including certain types of AWS DeepComposer resources and actions.
In the AWS DeepComposer service, you can tag models trained in the AWS DeepComposer console and compositions you have created using AWS DeepComposer music studio.
For more information about using tags, use Tagging best practices
Managing Tags
A tag key can contain as many as 128 characters. A tag value can contain as many as 256 characters. The characters can be Unicode letters, numbers, white space, or one of the following symbols: _ . : / = + -. The following additional restrictions apply to tags:
-
Tag keys and values are case sensitive.
-
For each associated resource, each tag key must be unique and have only one value.
-
Tags are available only for your AWS account, not any other accounts that share the resource. In addition, the tags are available only for resources that are located in the specified AWS Region for your AWS account.
-
Do not use
aws:
,AWS:
or any upper or lowercase combination of such as a prefix for keys, because it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasaws
as its prefix but the key does not, then AWS DeepComposer considers it to be a user tag and it counts against the limit of 50 tags. Tags with only the key prefix ofaws
do not count against your tags-per-resource limit.
You can use list below to find more information about creating and managing tags for either models or compositions created in AWS DeepComposer.
Using tags in IAM policies
After you start implementing tags, you can apply tag-based, resource-level permissions to AWS Identity and Access Management (IAM) policies. This includes operations that support adding tags to resources when resources are created. By using tags in this way, you can implement granular control of which groups and users in your AWS account have permission to access resources in AWS DeepComposer.
{ "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor1", "Effect": "Allow", "Action": [ "deepcomposer:GetComposition", "deepcomposer:UntagResource" ] "Resource": "*", "Condition": { "StringEquals: { "aws:ResourceTag/tagKey": "tagValue" } } } ] }
If you define tag-based, resource-level permissions, the permissions take effect immediately. This means that your resources are more secure as soon as they're created, and you can quickly start enforcing the use of tags for new resources. You can also use resource-level permissions to control which tag keys and values can be associated with new and existing resources. For more information, see Controlling access using tags in the AWS IAM User Guide.
Creating and editing tags for models trained in AWS DeepComposer
You can use the procedures below to create and manage tags for models in the AWS DeepComposer console.
Adding a tag while training a model in the AWS DeepComposer console
-
Open the AWS DeepComposer
console. -
In the navigation pane, choose Models.
-
On the Models page, choose Create a model.
-
On the Train a model page, under Generative algorithm, choose an available option.
-
Choose an available Training dataset.
-
(Optional) Under Hyperparameters, update the default values to adjust how your custom model is trained.
-
Under Model details, give your model a name and an optional description.
-
Under Tags, choose Add a new tag.
-
For Key and Value, enter appropriate values.
For example,
BachModels
andModel01
, respectively. -
(Optional) To add another tag, choose Add new tag.
-
(Optional) To remove a tag, choose Remove.
-
Choose Start training to begin training your model.
After tagging and submitting your new model for training, you can manage its tags during training or after training has completed. Use the procedure below to manage existing tags.
Managing tags for AWS DeepComposer models
-
Open the AWS DeepComposer
console. -
In the navigation pane, choose Models.
-
On the Models page, choose your model.
-
Choose View details.
-
Under Tags, choose Manage tags.
-
(Optional) To remove an existing tag, choose Remove.
-
(Optional) To add a new tag, choose Add new tag.
-
For Key and Value, enter appropriate values.
For example,
PopModels
andModel01
, respectively. -
When finished managing your tags for that specific model, choose Save changes.
Creating and editing tags for compositions created in the AWS DeepComposer music studio
You can create and edit tags for compositions you have created in the AWS DeepComposer music studio. Unlike models, you can only create and edit tags after you have generated the composition in the AWS DeepComposer music studio.
Managing tags for AWS DeepComposer compositions
-
Open the AWS DeepComposer
console. -
In the navigation pane, choose Compositions.
-
On the Compositions page, choose you composition.
-
In the Actions drop down menu, choose Manage tags.
-
To add a new tag, choose Add new tag.
-
For Key and Value, enter appropriate values.
For example,
JazzModel
andModel01
, respectively. -
(Optional) To remove an existing tag, choose Remove.
-
When finished managing your tags for that specific composition, choose Save.
Additional information
For more information about tagging, see the following resources.
-
AWS Tagging Principles in the AWS General Reference
-
AWS Tagging Strategies
(downloadable PDF) -
AWS Access Control in the AWS IAM User Guide
-
AWS Tagging Policies in the AWS Organizations User Guide