Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (5.6k points)
Is there any possible way to get AWS EBS pricing programmatically?

1 Answer

0 votes
by (12.4k points)

You can do it in the following way:

 "HY3BZPP2B6K8MSJF" : {

      "sku" : "HY3BZPP2B6K8MSJF",

      "productFamily" : "Storage",

      "attributes" : {

        "servicecode" : "AmazonEC2",

        "location" : "US East (N. Virginia)",

        "locationType" : "AWS Region",

        "storageMedia" : "SSD-backed",

        "volumeType" : "General Purpose",

        "maxVolumeSize" : "16 TiB",

        "maxIopsvolume" : "10000",

        "maxIopsBurstPerformance" : "3000 for volumes <= 1 TiB",

        "maxThroughputvolume" : "160 MB/sec",

        "usagetype" : "EBS:VolumeUsage.gp2",

        "operation" : "",

        "servicename" : "Amazon Elastic Compute Cloud"

      }

    },

From there check 'sku' code and you will see something like this:

 "HY3BZPP2B6K8MSJF" : {

        "HY3BZPP2B6K8MSJF.JRTCKXETXF" : {

          "offerTermCode" : "JRTCKXETXF",

          "sku" : "HY3BZPP2B6K8MSJF",

          "effectiveDate" : "2018-06-01T00:00:00Z",

          "priceDimensions" : {

            "HY3BZPP2B6K8MSJF.JRTCKXETXF.6YS6EN2CT7" : {

              "rateCode" : "HY3BZPP2B6K8MSJF.JRTCKXETXF.6YS6EN2CT7",

              "description" : "$0.10 per GB-month of General Purpose SSD (gp2) provisioned storage - US East (Northern Virginia)",

              "beginRange" : "0",

              "endRange" : "Inf",

              "unit" : "GB-Mo",

              "pricePerUnit" : {

                "USD" : "0.1000000000"

              },

              "appliesTo" : [ ]

            }

          },

          "termAttributes" : { }

        }

      },

For more details, you can read here

Interested in learning AWS? Check out: aws certification training.

Related questions

0 votes
1 answer
asked Jan 6, 2021 in AWS by Amyra (12.9k points)

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Sep 14, 2020 in AWS by Justin (7k points)
0 votes
1 answer
asked Apr 14, 2020 in AWS by Amenda (1.4k points)

Browse Categories

...