Tags for cloud resources
Tags categorize cloud resources to provide richer and more detailed tracking and billing report data.
Create tags to enable Cloud Provisioning and Governance to automatically categorize cloud
resources after they are provisioned. Each tag associates a specific key:value
pair with a requested cloud resource, such as Application=HRMS.
After the cloud resource is provisioned, the key:value information in tags become part of the resource's metadata and are saved along with all other parameters about the resource. Because a cloud resource can have multiple tags, you can view cost items from multiple perspectives.
Tag definitions
Tag definitions are records that associate a tag name with a value type. These value types are available:
| Value type | Description |
|---|---|
| Variable | A value that user enters or selects from a choice list. This value is stored as a
service catalog variable. If a table is associated with a variable tag, the values in the field marked as the Display field are displayed to the user when they request the instance. In most cases, this is the Name field. For example, the names of the business services in the Service table display to the user. If no table is specified in the tag definition, the user is presented with a text field. |
| Script | A script that obtains a value from the instance, such as the current time on the
instance. The script must obtain the value via the base-system API and return the
value to the answer variable. For example, to obtain the current time on
the instance, the script would
be: |
Default tags
| Label | Name | Value type | Table that provides choices |
|---|---|---|---|
| Application | application | variable | Application [cmdb_ci_appl] |
| Business Service | business_service | variable | Service [cmdb_ci_service] |
| Cost Center | cost_center | variable | Cost Center [cmn_cost_center] |
| Project | project | variable | n/a |
| ServiceNow instance | sn_instance | script | n/a |
| Stack | stack | variable | Stack [sn_cmp_stack] |
| Time Provisioned | time_provisioned | script | n/a |
| User | user | order field | User [sys_user] |
| User Group | user_group | variable | Group [sys_user_group] |
AWS tags
Tags generated for Amazon Web Services (AWS) resources are sent to AWS and are also available from your AWS console.
Create a custom tag for cloud resources
Cloud Administrators can create custom tags in addition to the default tags to categorize cloud resources.
Before you begin
About this task
If a resource was provisioned prior to the existence of a particular tag, then that tag must be manually added to the record for that resource.
Procedure
Group billing data using custom tags from provisioned resources
Configure user-defined tags to view and analyze billing data using custom tags existing on provisioned resources.
Before you begin
- Perform cloud discovery in Cloud Provisioning and Governance for provisioned resources.
- Run a billing download job for the associated service account.
About this task
Provisioned resources with existing tags are discovered as part of Cloud discovery. Existing tags are considered user-defined tags in Tag Management. By default, the imported (user-defined) tags are not displayed in the Billing dashboard, restricting you from filtering and analyzing billing data using imported (user-defined) tags.