Billing artifacts duplicated in truncated S3 bucket folders - CloudHealth
search cancel

Billing artifacts duplicated in truncated S3 bucket folders - CloudHealth

book

Article ID: 444491

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

Billing artifacts for a specific tenant are duplicated into two separate Amazon Web Services (AWS) S3 bucket folders. One folder uses the correct 8-digit tenant ID, while the second folder uses a truncated 7-digit version of the ID. This occurs when automated S3 billing exports are configured via consolidated billing blocks.

Environment

  • CloudHealth
  • Amazon Web Services (AWS)
  • Partner Generated Billing (PGB)
  • Automated S3 Billing Export

Cause

Customer-side provisioning or automation scripts truncate the tenant ID during the folder path construction process. This typically occurs when string-handling logic in the customer's environment limits the ID to 7 characters instead of the required 8 digits.

Symptoms

  • Duplicate CSV billing artifacts appear in the S3 bucket.
  • The correct folder path follows the format: cloudhealth-output/########
  • An incorrect folder path appears as: cloudhealth-output/####### (truncated ID)

Resolution

To resolve the folder duplication, audit the internal environment scripts:

  1. Identify scripts responsible for constructing S3 folder paths or managing billing exports.
  2. Review string-handling logic to ensure the full tenant ID length (8 digits) is supported without truncation.
  3. Update scripts to use the correct tenant ID ####.
  4. Remove the truncated folder from the S3 bucket once scripts are corrected to prevent further duplication.

To stay updated on status changes, subscribe to this article: How to subscribe to a Knowledge Article.

 

Additional Information

For further assistance, see Contact Support. Scroll to the bottom of the page and click on your respective region.