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
| Tag | Value | What it does |
|---|---|---|
cloudavocado_team_name | A team name | Assigns the resource to a team |
cloudavocado_schedule_id | A schedule ID | Assigns a schedule |
cloudavocado_group_name | A logical group name | Adds the resource to a logical group |
cloudavocado_stop_protection | true | Keeps CloudAvocado from stopping the resource |
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.
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.
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
cloudavocado_group_nametakes priority overcloudavocado_team_nameandcloudavocado_schedule_id.cloudavocado_team_nametakes priority over your own team tag, such asTeam.
Need help? Our support team is here to assist you with any questions or issues you may encounter: info@cloudavocado.com.