droplet-pricing-table

Use API information to generate a sortable table of Droplet plans with resource details and pricing based on Droplet type, split into tabs by CPU option. This copies the format on the WWW pricing page.

{{< droplet-pricing-table planType >}}
{{< droplet-pricing-table product=productName plan=planType >}}

The planType can be basic, generalPurpose, cpuOptimized, memoryOptimized, and storageOptimized. The shortcode has error checking to enforce this.

The product can be Droplets or any of the database engines (like PostgreSQL). If you’re using this shortcode within the product section, you can omit product and the shortcode will use the front matter product instead.

Examples

{{< droplet-pricing-table product=droplets plan=basic >}}

Renders to:

API/CLI Slug CPUs Memory (GiB) SSD (GiB) Price (hourly) Price (monthly)
s-1vcpu-512mb-10gb 1 0.510 $0.00595 $4
s-1vcpu-1gb 1 125 $0.00893 $6
s-1vcpu-2gb 1 250 $0.01786 $12
s-2vcpu-2gb 2 260 $0.02679 $18
s-2vcpu-4gb 2 480 $0.03571 $24
s-4vcpu-8gb 4 8160 $0.07143 $48
s-8vcpu-16gb 8 16320 $0.14286 $96
API/CLI Slug CPUs Memory (GiB) SSD (GiB) Price (hourly) Price (monthly)
s-1vcpu-1gb-intel 1 125 $0.01042 $7
s-1vcpu-1gb-35gb-intel 1 135 $0.0119 $8
s-1vcpu-2gb-intel 1 250 $0.02083 $14
s-1vcpu-2gb-70gb-intel 1 270 $0.02381 $16
s-2vcpu-2gb-intel 2 260 $0.03125 $21
s-2vcpu-2gb-90gb-intel 2 290 $0.03571 $24
s-2vcpu-4gb-intel 2 480 $0.04167 $28
s-2vcpu-4gb-120gb-intel 2 4120 $0.04762 $32
s-2vcpu-8gb-160gb-intel 2 8160 $0.07143 $48
s-4vcpu-8gb-intel 4 8160 $0.08333 $56
s-4vcpu-8gb-240gb-intel 4 8240 $0.09524 $64
s-4vcpu-16gb-320gb-intel 4 16320 $0.14286 $96
s-8vcpu-16gb-intel 8 16320 $0.16667 $112
s-8vcpu-16gb-480gb-intel 8 16480 $0.19048 $128
s-8vcpu-32gb-640gb-intel 8 32640 $0.28571 $192
API/CLI Slug CPUs Memory (GiB) SSD (GiB) Price (hourly) Price (monthly)
s-1vcpu-1gb-amd 1 125 $0.01042 $7
s-1vcpu-2gb-amd 1 250 $0.02083 $14
s-2vcpu-2gb-amd 2 260 $0.03125 $21
s-2vcpu-4gb-amd 2 480 $0.04167 $28
s-2vcpu-8gb-amd 2 8100 $0.0625 $42
s-4vcpu-8gb-amd 4 8160 $0.08333 $56
s-4vcpu-16gb-amd 4 16200 $0.125 $84
s-8vcpu-16gb-amd 8 16320 $0.16667 $112
s-8vcpu-32gb-amd 8 32400 $0.25 $168