Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.52 KB

README.md

File metadata and controls

46 lines (37 loc) · 1.52 KB

Aws Cost Explorer input plugin for Embulk

AWS Cost Explorer Cost and Usage Report

Overview

  • Plugin type: input
  • Resume supported: yes
  • Cleanup supported: yes
  • Guess supported: no

Configuration

  • access_key_id: AWS Access Key Id (integer, required)
  • secret_access_key: AWS Secrete Access Key (string, default: myvalue)
  • metrics: metrics of the report (AmortizedCost BlendedCost NetAmortizedCost NetUnblendedCost NormalizedUsageAmount UnblendedCost UsageQuantity, default: UnblendedCost)
  • groups: grouping of costs by up to two different groups, either dimensions, tag keys, cost categories, or any two group by types (optional)
    • type: valid values DIMENSION TAG COST_CATEGORY (string, required)
    • key: valid values for the DIMENSION type are AZ INSTANCE_TYPE LEGAL_ENTITY_NAME INVOICING_ENTITY LINKED_ACCOUNT OPERATION PLATFORM PURCHASE_TYPE SERVICE TENANCY RECORD_TYPE and USAGE_TYPE (string, required)
  • start_date: start date of the report (string, required, format: 2020-01-01)
  • end_date: end date of the report (string, required, format: 2020-01-01)

Example

in:
  type: aws_cost_explorer
  access_key_id: xxx
  secret_access_key: yyy
  metrics: UnblendedCost
  groups:
    - type: DIMENSION
      key: USAGE_TYPE
    - type: TAG
      key: Environment
  start_date: "2020-04-01"
  end_date: "2020-04-20"

Build

$ ./gradlew gem  # -t to watch change of files and rebuild continuously