Back to Blog

Automating tags for AWS Backup

Learn how to automatically apply tags to AWS Backup resources to maintain consistency, improve cost tracking, and enhance operational visibility across your backup infrastructure.

TagOps AWS Backup Integration

AWS Backup is a fully managed backup service that makes it easy to centralize and automate the backup of data across AWS services.

But how would you back up specific resources? For example, you want to back up only the resources that are tagged with a specific tag, or only production resources.

This is where TagOps comes in. TagOps can help you automate the backup of specific resources based on tags.

In this article, we'll explore how to automate tagging for AWS Backup resources using TagOps.

Why Automate Tags for AWS Backup?

Properly tagged backup resources provide several benefits:

  • Operational Excellence: Quickly identify backup resources and tag them as soon as they are created
  • Availability: Thanks to tags, AWS Backup will always back up your most critical resources
  • Automated Governance: Enforce tagging policies automatically without manual intervention (which can be error-prone)
  • Cost Allocation: Track backup costs by department, project, or environment

Understanding AWS Backup Resource Types

AWS Backup manages several resource types that can benefit from automated tagging:

  • Backup Plans: Define when and how backups are created
  • Backup Vaults: Containers that organize and store recovery points
  • Recovery Points: Point-in-time backups of your resources
  • Backup Selections: Define which resources to back up

Step 1: Onboard your AWS Accounts to TagOps

Navigate to console.tagops.cloud, log in to your account and navigate to the AWS Accounts page. Click on the "Add AWS Account" button and follow the instructions to onboard your AWS Accounts to TagOps. You will need to provide the following information:

  • AWS Account Name: A custom name for your AWS Account that will be used in TagOps
  • AWS Account ID: The 12-digit AWS account number
  • IAM Role Name: The name of the IAM role that will be used to access the AWS Account
  • External ID: The external ID that will be used to access the AWS Account
Then create a CloudFormation stack in your AWS Account to create the necessary IAM role to allow TagOps to access your AWS Account.

Once the CloudFormation stack is created, click on the "Verify Account" button to verify that the account has been onboarded successfully.

Step 2: Configure a rule in TagOps to automatically tag AWS Backup resources

Navigate to console.tagops.cloud, log in to your account and navigate to the Rules page. Click on the "Add Rule" button and follow the instructions to create a new rule. You will need to provide the following information:

  • Rule Name: A custom name for your rule that will be used in TagOps
  • Rule Conditions: The conditions that must be met for the rule to apply (e.g., resource type, region, account, tag key, tag value, etc.) Here you can use the "Resource Type" condition to match the resource type of the AWS Backup resource.
  • For example see this image: Rule Conditions
  • Rule Actions: The tags that will be applied to the AWS Backup resource when the rule is applied. Here you can use the "Add Tag" action to add a new tag to the AWS Backup resource.
  • For example see this image: Rule Actions
Then click on the "Save Rule" button to save your rule.

Step 3: Create your AWS Backup Plan

In your AWS Account, create an AWS Backup plan as per AWS documentation:

https://docs.aws.amazon.com/aws-backup/latest/devguide/creating-a-backup-plan.html

Don't forget to configure backup plan resource assignment using tags (1 or any of the tags you created in TagOps in Step 2)

https://docs.aws.amazon.com/aws-backup/latest/devguide/assigning-resources.html#backup-resource-assignment

That's it! You have now configured a rule in TagOps to automatically tag AWS Backup resources.

From this moment on, the following happens (if a given AWS resource matches the conditions of the rule you have configured):

  • When a new AWS resource is created, TagOps will automatically tag it with the tags you have configured.
  • When an existing AWS resource is updated, TagOps will automatically tag it with the tags you have configured.
  • Once a day, TagOps will scan your AWS Account for AWS resources that are not tagged and tag them with the tags you have configured.
    (You can change the daily scan time in TagOps Console -> Settings -> System Settings -> Scan Settings)

Ready to Automate Your AWS Tagging?

Start your free trial with TagOps and automate tagging across all your AWS resources.

×