Skip to content

Commit cc571e6

Browse files
committed
Update FOCUS from 1.0 to 1.2 in data-exports-aggregation.yaml
- Changed query from FOCUS_1_0_AWS to FOCUS_1_2_AWS - Added 18 new FOCUS 1.2 columns including BillingAccountType, CapacityReservation fields, InvoiceId, PricingCurrency fields, SkuPriceDetails, etc. - Removed x_CostCategories and x_UsageType columns - Updated Glue table schema to match FOCUS 1.2 specification
1 parent 4686714 commit cc571e6

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

data-exports/deploy/data-exports-aggregation.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ Mappings:
212212
FROM COST_AND_USAGE_REPORT
213213
FOCUS:
214214
DefaultQuery: >-
215-
SELECT AvailabilityZone, BilledCost, BillingAccountId, BillingAccountName, BillingCurrency, BillingPeriodEnd, BillingPeriodStart, ChargeCategory, ChargeClass, ChargeDescription, ChargeFrequency, ChargePeriodEnd, ChargePeriodStart, CommitmentDiscountCategory, CommitmentDiscountId, CommitmentDiscountName, CommitmentDiscountType, CommitmentDiscountStatus, ConsumedQuantity, ConsumedUnit, ContractedCost, ContractedUnitPrice, EffectiveCost, InvoiceIssuerName, ListCost, ListUnitPrice, PricingCategory, PricingQuantity, PricingUnit, ProviderName, PublisherName, RegionId, RegionName, ResourceId, ResourceName, ResourceType, ServiceCategory, ServiceName, SkuId, SkuPriceId, SubAccountId, SubAccountName, Tags, x_CostCategories, x_Discounts, x_Operation, x_ServiceCode, x_UsageType
216-
FROM FOCUS_1_0_AWS
215+
SELECT AvailabilityZone, BilledCost, BillingAccountId, BillingAccountName, BillingAccountType, BillingCurrency, BillingPeriodEnd, BillingPeriodStart, CapacityReservationId, CapacityReservationStatus, ChargeCategory, ChargeClass, ChargeDescription, ChargeFrequency, ChargePeriodEnd, ChargePeriodStart, CommitmentDiscountCategory, CommitmentDiscountId, CommitmentDiscountName, CommitmentDiscountQuantity, CommitmentDiscountType, CommitmentDiscountUnit, CommitmentDiscountStatus, ConsumedQuantity, ConsumedUnit, ContractedCost, ContractedUnitPrice, EffectiveCost, InvoiceId, InvoiceIssuerName, ListCost, ListUnitPrice, PricingCategory, PricingCurrency, PricingCurrencyContractedUnitPrice, PricingCurrencyEffectiveCost, PricingCurrencyListUnitPrice, PricingQuantity, PricingUnit, ProviderName, PublisherName, RegionId, RegionName, ResourceId, ResourceName, ResourceType, ServiceCategory, ServiceName, ServiceSubcategory, SkuId, SkuMeter, SkuPriceId, SkuPriceDetails, SubAccountId, SubAccountName, SubAccountType, Tags, x_Discounts, x_Operation, x_ServiceCode
216+
FROM FOCUS_1_2_AWS
217217
COH:
218218
DefaultQuery: >-
219219
SELECT account_id, action_type, currency_code, current_resource_details, current_resource_summary, current_resource_type, estimated_monthly_cost_after_discount, estimated_monthly_cost_before_discount, estimated_monthly_savings_after_discount, estimated_monthly_savings_before_discount, estimated_savings_percentage_after_discount, estimated_savings_percentage_before_discount, implementation_effort, last_refresh_timestamp, recommendation_id, recommendation_lookback_period_in_days, recommendation_source, recommended_resource_details, recommended_resource_summary, recommended_resource_type, region, resource_arn, restart_needed, rollback_possible, tags
@@ -1422,9 +1422,12 @@ Resources:
14221422
- {"Name": "billedcost", "Type": "double" }
14231423
- {"Name": "billingaccountid", "Type": "string" }
14241424
- {"Name": "billingaccountname", "Type": "string" }
1425+
- {"Name": "billingaccounttype", "Type": "string" }
14251426
- {"Name": "billingcurrency", "Type": "string" }
14261427
- {"Name": "billingperiodend", "Type": "timestamp" }
14271428
- {"Name": "billingperiodstart", "Type": "timestamp" }
1429+
- {"Name": "capacityreservationid", "Type": "string" }
1430+
- {"Name": "capacityreservationstatus", "Type": "string" }
14281431
- {"Name": "chargecategory", "Type": "string" }
14291432
- {"Name": "chargeclass", "Type": "string" }
14301433
- {"Name": "chargedescription", "Type": "string" }
@@ -1434,17 +1437,24 @@ Resources:
14341437
- {"Name": "commitmentdiscountcategory", "Type": "string" }
14351438
- {"Name": "commitmentdiscountid", "Type": "string" }
14361439
- {"Name": "commitmentdiscountname", "Type": "string" }
1440+
- {"Name": "commitmentdiscountquantity", "Type": "double" }
14371441
- {"Name": "commitmentdiscounttype", "Type": "string" }
1442+
- {"Name": "commitmentdiscountunit", "Type": "string" }
14381443
- {"Name": "commitmentdiscountstatus", "Type": "string" }
14391444
- {"Name": "consumedquantity", "Type": "double" }
14401445
- {"Name": "consumedunit", "Type": "string" }
14411446
- {"Name": "contractedcost", "Type": "double" }
14421447
- {"Name": "contractedunitprice", "Type": "double" }
14431448
- {"Name": "effectivecost", "Type": "double" }
1449+
- {"Name": "invoiceid", "Type": "string" }
14441450
- {"Name": "invoiceissuername", "Type": "string" }
14451451
- {"Name": "listcost", "Type": "double" }
14461452
- {"Name": "listunitprice", "Type": "double" }
14471453
- {"Name": "pricingcategory", "Type": "string" }
1454+
- {"Name": "pricingcurrency", "Type": "string" }
1455+
- {"Name": "pricingcurrencycontractedunitprice", "Type": "double" }
1456+
- {"Name": "pricingcurrencyeffectivecost", "Type": "double" }
1457+
- {"Name": "pricingcurrencylistunitprice", "Type": "double" }
14481458
- {"Name": "pricingquantity", "Type": "double" }
14491459
- {"Name": "pricingunit", "Type": "string" }
14501460
- {"Name": "providername", "Type": "string" }
@@ -1456,11 +1466,18 @@ Resources:
14561466
- {"Name": "resourcetype", "Type": "string" }
14571467
- {"Name": "servicecategory", "Type": "string" }
14581468
- {"Name": "servicename", "Type": "string" }
1469+
- {"Name": "servicesubcategory", "Type": "string" }
14591470
- {"Name": "skuid", "Type": "string" }
1471+
- {"Name": "skumeter", "Type": "string" }
14601472
- {"Name": "skupriceid", "Type": "string" }
1473+
- {"Name": "skupricedetails", "Type": "map<string,string>" }
14611474
- {"Name": "subaccountid", "Type": "string" }
14621475
- {"Name": "subaccountname", "Type": "string" }
1476+
- {"Name": "subaccounttype", "Type": "string" }
14631477
- {"Name": "tags", "Type": "map<string,string>" }
1478+
- {"Name": "x_discounts", "Type": "map<string,double>" }
1479+
- {"Name": "x_operation", "Type": "string" }
1480+
- {"Name": "x_servicecode", "Type": "string" }
14641481
PartitionKeys:
14651482
- {"Name": "source_account_id", "Type": "string" }
14661483
- {"Name": "report_name", "Type": "string" }

0 commit comments

Comments
 (0)