How to add custom AWS tags to resources managed by Tanzu Cloud Service Broker for AWS
search cancel

How to add custom AWS tags to resources managed by Tanzu Cloud Service Broker for AWS

book

Article ID: 442210

calendar_today

Updated On:

Products

VMware Tanzu Application Service

Issue/Introduction

Platform operators using the Tanzu Cloud Service Broker for AWS want to include custom AWS tags (for cost center tracking, ownership, etc.) on all AWS resources created by the broker, such as S3 buckets or RDS instances.

Environment

  • Product: Cloud Service Broker (CSB) for AWS
  • Platform: Tanzu Elastic Application Runtime (EAR) / Operations Manager

Cause

By default, the broker creates a standard set of tags. Custom platform-wide tags are not defined in the individual service plans or Brokerpak YAML files; instead, they are managed through a global tile configuration.

Resolution

To apply custom AWS tags, follow these steps:

Step 1: Configure Global Tags in the CSB Tile

  1. Log in to Operations Manager.
  2. Select the Cloud Service Broker for AWS tile.
  3. Navigate to the Global Tags configuration section.
  4. Enter your custom key-value pairs. These will be merged with the default labels for every service provisioned.
  5. Save the configuration and Apply Changes to the tile.

Step 2: Update Existing Service Instances

New tags are automatically applied to services created after the change. For existing services, you must force a metadata update via the Cloud Foundry CLI:

  1. Target the space containing your service: cf target -o <ORG> -s <SPACE>
  2. Run an update on the service instance:
    cf update-service <SERVICE_INSTANCE_NAME>
    Note: This triggers the broker to merge Global Tags into the existing AWS resource.