bundles
Creates, updates, deletes, gets or lists a bundles resource.
Overview
| Name | bundles |
| Type | Resource |
| Id | aws.lightsail.bundles |
Fields
The following fields are returned by SELECT queries:
- get_bundles
| Name | Datatype | Description |
|---|---|---|
name | string | A friendly name for the bundle (Micro). |
bundle_id | string | The bundle ID (micro_x_x). (pattern: <code>.\S.</code>) |
cpu_count | integer | The number of vCPUs included in the bundle (2). |
disk_size_in_gb | integer | The size of the SSD (30). |
instance_type | string | The instance type (micro). |
is_active | boolean | A Boolean value indicating whether the bundle is active. |
power | integer | A numeric value that represents the power of the bundle (500). You can use the bundle's power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500. |
price | number (float) | The price in US dollars (5.0) of the bundle. |
public_ipv_4_address_count | integer | An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1. |
ram_size_in_gb | number (float) | The amount of RAM in GB (2.0). |
supported_app_categories | array | Virtual computer blueprints that are supported by a Lightsail for Research bundle. This parameter only applies to Lightsail for Research resources. |
supported_platforms | array | The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle. |
transfer_per_month_in_gb | integer | The data transfer rate per month in GB (2000). |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_bundles | select | region | Returns the bundles that you can apply to an Amazon Lightsail instance when you create it. A bundle describes the specifications of an instance, such as the monthly cost, amount of memory, the number of vCPUs, amount of storage space, and monthly network data transfer quota. Bundles are referred to as instance plans in the Lightsail console. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_bundles
Returns the bundles that you can apply to an Amazon Lightsail instance when you create it. A bundle describes the specifications of an instance, such as the monthly cost, amount of memory, the number of vCPUs, amount of storage space, and monthly network data transfer quota. Bundles are referred to as instance plans in the Lightsail console.
SELECT
name,
bundle_id,
cpu_count,
disk_size_in_gb,
instance_type,
is_active,
power,
price,
public_ipv_4_address_count,
ram_size_in_gb,
supported_app_categories,
supported_platforms,
transfer_per_month_in_gb
FROM aws.lightsail.bundles
WHERE region = '{{ region }}' -- required
;