AWS - Add Tags to Resource
  • 12 Feb 2024
  • 2 Minutes to read
  • Dark
    Light
  • PDF

AWS - Add Tags to Resource

  • Dark
    Light
  • PDF

Article Summary

Note:

This Enforcement Action was previously named Add Tag to Amazon EC2 Instance.

AWS - Add Tags to Resource adds the tags to Amazon Resource​s from:

  • Assets that match the results of the selected saved query, and match the Enforcement Action Conditions, if defined or assets selected on the relevant asset page.
Note:

This Enforcement Action supports devices, users, and roles.

See Creating Enforcement Sets to learn more about adding Enforcement Actions to Enforcement Sets.

General Settings

  • Enforcement Set name (required) - The name of the Enforcement Set. A default value is added by Axonius. You can change the name according to your needs.
  • Add description - Click to add a description of the Enforcement Set. It is recommended to describe what the Enforcement Set does.
  • Run action on assets matching following query (required) - Select an asset category and a query. The Enforcement Action will be run on the assets that match the query parameters.
  • Action name (required) - The name of the Main action. A default value is added by Axonius. You can change the name according to your needs.
  • Configure Dynamic Values - Toggle on to enter a Dynamic Value statement. See Creating Enforcement Action Dynamic Value Statements to learn more about Dynamic Value statement syntax.

Required Fields

These fields must be configured to run the Enforcement Set.

  • Tag keys - A semicolon (;) separated list of tag keys to be added. A tag key must not begin with "aws:".
  • Target AWS assets - Select the resource types to which the tags will be added. Select all that apply.
  • Instance Name - The Axonius node to use when connecting to the specified host. For more details, see Connecting Additional Axonius Nodes.

Additional Fields

These fields are optional.

  • Use attached IAM role
    • If enabled, Axonius will use the attached IAM role / instance profile.
    • If disabled, Axonius will use the supplied account details in the AWS Access Key ID and AWS Access Key Secret.
  • AWS Access Key ID and AWS Access Key Secret - The credentials for an account that has the Required Permissions to remove tags.
    • If supplied, Axonius will use the supplied account details.
    • If not supplied, Axonius will use the attached IAM role / instance profile.
  • Proxy - An optional HTTPS proxy.
  • Tag values - Enter the tag values separated by a semicolon (;).

Required Permissions

The values supplied in AWS Access Key ID and AWS Access Key Secret or the attached IAM role account must have the proper permissions to add tags to resources.

The required permissions are:

  • tag:GetResources
  • tag:TagResources
  • tag:UntagResources
  • tag:getTagKeys
  • tag:getTagValues
  • iam:ListUserTags
  • iam:TagUser
  • iam:UntagUser

These permissions must be added to a policy attached to relevant IAM user account.
For details on creating an IAM user and attaching policies, see Connecting the Amazon Web Services (AWS) Adapter.


For more details about other Enforcement Actions available, see Action Library.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.