Get Configuration Metadata
Script to manually update configuration metadata from AWS for use by the CX Analytics team.
Extract Metadata
Takes configId as a parameter then queries AWS S3 and DynamoDB for the required values to populate the metadata object needed by the CX Analytics team.
Example Input:
{
"awsProfile": "bronze",
"awsStage": "beta",
"configId": "config123"
}
Example Output:
{
"configuration_id": "config123",
"user_id_type": "cds",
"language": "bg-BG",
"country": "Bulgaria",
"promoVariation": "Collect & Get",
"currencies": [
"currency234",
],
"name": "The G C&G",
"promo_id": "promo789",
"promo_name": "Name123",
"promotion_fullName": "Name123_long",
"start_date": 1731054840000,
"end_date": 1914401940000
}
Download Metadata File
Downloads the full configurations metadata file from S3 (metadata/configurations.json) for the specified stage and saves it to the user’s desktop with a timestamped filename.
Example Input:
{
"awsProfile": "bronze",
"awsStage": "beta"
}