K8sRates: AWS: PriceSheet

Prev Next

This model describes an AWS price sheet, which lists the components of an Amazon EKS cluster along with the price of each component, resolved against a rate card. A price sheet is submitted with only the attributes that identify each component, and is returned with the prices and discounts filled in. See How To: Get Component Pricing for a Cluster for more details.

To find the SKU names to use for each component, see How To: Specify SKU Names for AWS SKU Rate Cards.

Example:

{
    "kubernetes": {
        "sku": "Amazon EKS",
        "pricePerUnit": 0.1,
        "unit": "Hrs",
        "discount": 0.1,
        "region": "us-east-1",
        "currencyCode": "USD",
        "properties": {}
    },
    "loadBalancer": {
        "sku": "Load Balancer-Application",
        "servicePricePerUnit": 0.0225,
        "serviceUnit": "Hrs",
        "dataPricePerUnit": 0.008,
        "dataUnit": "GB",
        "discount": 0.1,
        "region": "us-east-1",
        "currencyCode": "USD",
        "properties": {}
    },
    "nodes": [
        {
            "instanceType": "m5.large",
            "os": "linux",
            "billingModel": "OnDemand",
            "nodePricePerUnit": 0.096,
            "nodeUnit": "Hrs",
            "cpuPricePerUnit": 0.031059,
            "cpuUnit": "Hrs",
            "memoryPricePerUnit": 0.004235,
            "memoryUnit": "GB",
            "gpuPricePerUnit": 0.0,
            "gpuUnit": "Hrs",
            "licenseSurcharge": 0.8,
            "licenseUnit": "Hrs",
            "discount": 0.22,
            "region": "us-east-1",
            "currencyCode": "USD",
            "properties": {}
        }
    ],
    "storage": [
        {
            "sku": "gp3",
            "pricePerUnit": 0.00010959,
            "Unit": "GB",
            "discount": 0.15,
            "region": "us-east-1",
            "currencyCode": "USD",
            "properties": {}
        }
    ],
    "network": [
        {
            "sku": "Internet Outbound",
            "pricePerUnit": 0.09,
            "Unit": "GB",
            "discount": 0.05,
            "region": "us-east-1",
            "currencyCode": "USD",
            "properties": {}
        }
    ],
    "overhead": {
        "region": "",
        "pricePerUnit": 0.0,
        "unit": "Hrs",
        "discount": 0.0,
        "currencyCode": "USD",
        "properties": {}
    },
    "rateCardId": "2f6c1d8e-4b7a-4c39-9e51-7a0d3b2c8f14",
    "rateCardName": "Enterprise Agreement",
    "rateCardType": "DiscountRateCard"
}

where:

  • kubernetes: Represents the price of the managed Kubernetes service.
    • sku: Represents the SKU of the Kubernetes service (for example, Amazon EKS).
    • pricePerUnit: Represents the price per unit, before any discount is applied.
    • unit: Represents the unit of the price. Defaults to Hrs.
    • discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.
    • region: Represents the region of the Kubernetes service.
    • currencyCode: Represents the currency code of the price. Defaults to USD.
    • properties: Represents any additional properties associated with the Kubernetes service.
  • loadBalancer: Represents the price of the load balancer service.
    • sku: Represents the SKU of the load balancer (for example, Load Balancer-Application).
    • servicePricePerUnit: Represents the price of each load balancer per unit, before any discount is applied.
    • serviceUnit: Represents the unit of the service price. Defaults to Hrs.
    • dataPricePerUnit: Represents the price of the data processed by the load balancer per unit, before any discount is applied.
    • dataUnit: Represents the unit of the data price. Defaults to GB.
    • discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.
    • region: Represents the region of the load balancer.
    • currencyCode: Represents the currency code of the prices. Defaults to USD.
    • properties: Represents any additional properties associated with the load balancer.
  • nodes: Represents the list of node prices. Each node contains the following attributes:
    • instanceType: Represents the EC2 instance type of the node (for example, m5.large).
    • os: Represents the operating system of the node. Defaults to linux.
    • billingModel: Represents the billing model of the node. Supported values are OnDemand, Spot, Reserved1Year and Reserved3Year. Defaults to the billing model of the rate card.
    • nodePricePerUnit: Represents the price of the node per unit, before any discount is applied. This value is 0 if the price of the node cannot be found.
    • nodeUnit: Represents the unit of the node price. Defaults to Hrs.
    • cpuPricePerUnit: Represents the portion of the node price attributable to each CPU.
    • cpuUnit: Represents the unit of the CPU price. Defaults to Hrs.
    • memoryPricePerUnit: Represents the portion of the node price attributable to each GB of memory.
    • memoryUnit: Represents the unit of the memory price. Defaults to GB.
    • gpuPricePerUnit: Represents the portion of the node price attributable to each GPU.
    • gpuUnit: Represents the unit of the GPU price. Defaults to Hrs.
    • licenseSurcharge: Represents the surcharge applied to offset the licensing costs associated with Windows nodes.
    • licenseUnit: Represents the unit of the license surcharge. Defaults to Hrs.
    • discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.
    • region: Represents the region of the node.
    • currencyCode: Represents the currency code of the prices. Defaults to USD.
    • properties: Represents any additional properties associated with the node.
  • storage: Represents the list of storage prices. Each storage item contains the following attributes:
    • sku: Represents the EBS volume type (for example, gp3).
    • pricePerUnit: Represents the price per GB per hour, before any discount is applied.
    • Unit: Represents the unit of the price. Defaults to GB.
    • discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.
    • region: Represents the region of the storage.
    • currencyCode: Represents the currency code of the price. Defaults to USD.
    • properties: Represents any additional properties associated with the storage.
  • network: Represents the list of network transfer prices. Each network item contains the following attributes:
    • sku: Represents the network transfer type. Supported values include IntraRegion, InterRegion Inbound, InterRegion Outbound, Internet Inbound and Internet Outbound.
    • pricePerUnit: Represents the price per unit, before any discount is applied.
    • Unit: Represents the unit of the price. Defaults to GB.
    • discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.
    • region: Represents the region of the network transfer.
    • currencyCode: Represents the currency code of the price. Defaults to USD.
    • properties: Represents any additional properties associated with the network transfer. For transfers between regions, the Source and Destination keys specify the source and destination regions.
  • overhead: Represents the shared overhead associated with the cluster, which is only applicable to custom rate cards.
    • region: Represents the region of the overhead.
    • pricePerUnit: Represents the overhead price per unit.
    • unit: Represents the unit of the price. Defaults to Hrs.
    • discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.
    • currencyCode: Represents the currency code of the price. Defaults to USD.
    • properties: Represents any additional properties associated with the overhead.
  • rateCardId: Represents the ID of the rate card applied to the price sheet. If not specified, or if the rate card cannot be found, the built-in On-Demand rate card is applied.
  • rateCardName: Represents the name of the rate card applied to the price sheet.
  • rateCardType: Represents the type of the rate card applied to the price sheet.

Note: The Unit attribute of the storage and network items begins with an uppercase letter.