Skip to main content

CloudAvocado Tags

CloudAvocado tags, also called reserved tags, let you manage resources from your cloud provider. Add them like any other tag (a label, in Google Cloud), for example from Terraform or CloudFormation.

Use Cases​

  • Set up resources as you create them. Tagged resources arrive in CloudAvocado with the right team, schedule, or logical group.
  • Keep ownership and schedules in code. They're reviewed and versioned with the rest of your infrastructure.
  • Protect critical resources. Stop protection keeps a production database from ever being stopped.

For example, this Terraform setting tags every AWS resource in a stack, so the whole stack joins one logical group:

provider "aws" {
default_tags {
tags = {
cloudavocado_group_name = "web-app-staging"
}
}
}

Tag Reference​

TagValueWhat it does
cloudavocado_team_nameA team nameAssigns the resource to a team
cloudavocado_schedule_idA schedule IDAssigns a schedule
cloudavocado_group_nameA logical group nameAdds the resource to a logical group
cloudavocado_stop_protectiontrueKeeps CloudAvocado from stopping the resource
info

Tag changes take effect at the next sync of your cloud account, not right away.

Team Tag​

Assigns the resource to the team with that name:

cloudavocado_team_name = backend

If no team has that name, one is created. By default, a tag named Team is read as well, and you can change that key in the cloud settings.

Schedule Tag​

Assigns the schedule with that ID, shown on the schedule in CloudAvocado:

cloudavocado_schedule_id = 6650f1c2a9e4b0a1d2c3f4e5

The tag works both ways: when you change a resource's schedule in CloudAvocado, its tag is updated too. To take a resource off its schedule, set an empty value.

warning

If an infrastructure-as-code tool manages this tag, change schedules in code. Otherwise, the tool sets the tag back on its next run.

Logical Group Tag​

Adds the resource to the logical group with that name:

cloudavocado_group_name = web-app-staging

If no group has that name, one is created. To move a resource to another group, change the value. To take it out of its group, set an empty value.

warning

The tag takes priority over changes made in CloudAvocado. A tagged resource removed from its group rejoins on the next sync, and a deleted group is created again. Change the tag instead.

Stop Protection Tag​

Prevents the resource from being stopped, whether by a schedule, by a logical group, or on demand:

cloudavocado_stop_protection = true

It can still be started.

Tag Priority​

  1. cloudavocado_group_name takes priority over cloudavocado_team_name and cloudavocado_schedule_id.
  2. cloudavocado_team_name takes priority over your own team tag, such as Team.

info

Need help? Our support team is here to assist you with any questions or issues you may encounter: info@cloudavocado.com.