turbot/digitalocean
steampipe plugin install digitalocean

Table: digitalocean_size - Query DigitalOcean Droplet Sizes using SQL

DigitalOcean Droplet Sizes represent different configurations of CPU, memory, and storage that can be used for Droplets. These configurations determine the hardware of the host machine and have different costs associated with them. Droplet Sizes are predefined and cannot be customized.

Table Usage Guide

The digitalocean_size table provides insights into available configurations for DigitalOcean Droplets. As a system administrator or DevOps engineer, explore droplet size-specific details through this table, including memory, vCPUs, disk size, and transfer limits. Utilize it to understand the specifications and costs of different droplet configurations, aiding in informed decision making for resource allocation and cost management.

Examples

List all sizes

Explore the different available options in your DigitalOcean environment, including memory, disk, and CPU specifications, to better understand your current resource utilization and plan for future needs. This can help you manage your resources more effectively and ensure your applications have the resources they need to run smoothly.

select
*
from
digitalocean_size;
select
*
from
digitalocean_size;

Most expensive sizes

Analyze the settings to understand the most costly configurations in terms of monthly expenses. This query can be used to identify potential areas for cost optimization by pinpointing the top ten most expensive sizes.

select
slug,
vcpus,
memory,
disk,
price_hourly,
price_monthly
from
digitalocean_size
order by
price_monthly desc
limit
10;
select
slug,
vcpus,
memory,
disk,
price_hourly,
price_monthly
from
digitalocean_size
order by
price_monthly desc
limit
10;

Sizes available in Bangalore

Explore which size options are available in a specific region, like Bangalore, to understand the monthly pricing and make informed decisions for resource allocation. This is helpful in planning your budget and operational needs in the given region.

select
slug,
price_monthly
from
digitalocean_size
where
regions ? 'blr1'
and available;
select
slug,
price_monthly
from
digitalocean_size
where
json_extract(regions, '$.blr1') is not null
and available = 1;

Schema for digitalocean_size

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
akasjsonbArray of globally unique identifier strings (also known as) for the resource.
availablebooleanAn array containing the region slugs where this size is available for Droplet creates.
diskbigintThe amount of disk space set aside for Droplets of this size. The value is represented in gigabytes.
memorybigintThe amount of RAM allocated to Droplets created of this size. The value is represented in megabytes.
price_hourlydouble precisionThis describes the price of the Droplet size as measured hourly. The value is measured in US dollars.
price_monthlydouble precisionThis attribute describes the monthly cost of this Droplet size if the Droplet is kept for an entire month. The value is measured in US dollars.
regionsjsonbAn array containing the region slugs where this size is available for Droplet creates.
slugtextThis is a boolean value that represents whether new Droplets can be created with this size.
tagsjsonbA map of tags for the resource.
titletextTitle of the resource.
transferdouble precisionThe amount of transfer bandwidth that is available for Droplets created in this size. This only counts traffic on the public interface. The value is given in terabytes.
vcpusbigintThe integer of number CPUs allocated to Droplets of this size.