This repository has been archived by the owner on Aug 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for Lightsail Instances (#1138)
* Add support for Lightsail Instances, along with tests and documentation * Fix a bug in TagIntoMap that dropped key-only tags
- Loading branch information
1 parent
425b8cf
commit bcfb724
Showing
17 changed files
with
1,170 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
# Table: aws_lightsail_instance_add_ons | ||
Describes an add-on that is enabled for an Amazon Lightsail resource. | ||
## Columns | ||
| Name | Type | Description | | ||
| ------------- | ------------- | ----- | | ||
|instance_cq_id|uuid|Unique CloudQuery ID of aws_lightsail_instances table (FK)| | ||
|name|text|The name of the add-on.| | ||
|next_snapshot_time_of_day|text|The next daily time an automatic snapshot will be created| | ||
|snapshot_time_of_day|text|The daily time when an automatic snapshot is created| | ||
|status|text|The status of the add-on.| |
11 changes: 11 additions & 0 deletions
11
docs/tables/aws_lightsail_instance_hardware_disk_add_ons.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
# Table: aws_lightsail_instance_hardware_disk_add_ons | ||
Describes an add-on that is enabled for an Amazon Lightsail resource. | ||
## Columns | ||
| Name | Type | Description | | ||
| ------------- | ------------- | ----- | | ||
|instance_hardware_disk_cq_id|uuid|Unique CloudQuery ID of aws_lightsail_instance_hardware_disks table (FK)| | ||
|name|text|The name of the add-on.| | ||
|next_snapshot_time_of_day|text|The next daily time an automatic snapshot will be created| | ||
|snapshot_time_of_day|text|The daily time when an automatic snapshot is created| | ||
|status|text|The status of the add-on.| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
# Table: aws_lightsail_instance_hardware_disks | ||
Describes a block storage disk. | ||
## Columns | ||
| Name | Type | Description | | ||
| ------------- | ------------- | ----- | | ||
|instance_cq_id|uuid|Unique CloudQuery ID of aws_lightsail_instances table (FK)| | ||
|arn|text|The Amazon Resource Name (ARN) of the disk.| | ||
|attached_to|text|The resources to which the disk is attached.| | ||
|created_at|timestamp without time zone|The date when the disk was created.| | ||
|iops|integer|The input/output operations per second (IOPS) of the disk.| | ||
|is_attached|boolean|A Boolean value indicating whether the disk is attached.| | ||
|is_system_disk|boolean|A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).| | ||
|location_availability_zone|text|The Availability Zone| | ||
|location_region_name|text|The AWS Region name.| | ||
|name|text|The unique name of the disk.| | ||
|path|text|The disk path.| | ||
|resource_type|text|The Lightsail resource type (e.g., Disk).| | ||
|size_in_gb|integer|The size of the disk in GB.| | ||
|state|text|Describes the status of the disk.| | ||
|support_code|text|The support code| | ||
|tags|jsonb|The tag keys and optional values for the resource| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
# Table: aws_lightsail_instance_networking_ports | ||
Describes information about ports for an Amazon Lightsail instance. | ||
## Columns | ||
| Name | Type | Description | | ||
| ------------- | ------------- | ----- | | ||
|instance_cq_id|uuid|Unique CloudQuery ID of aws_lightsail_instances table (FK)| | ||
|access_direction|text|The access direction (inbound or outbound)| | ||
|access_from|text|The location from which access is allowed| | ||
|access_type|text|The type of access (Public or Private).| | ||
|cidr_list_aliases|text[]|An alias that defines access for a preconfigured range of IP addresses| | ||
|cidrs|text[]|The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol| | ||
|common_name|text|The common name of the port information.| | ||
|from_port|integer|The first port in a range of open ports on an instance| | ||
|ipv6_cidrs|text[]|The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol| | ||
|protocol|text|The IP protocol name| | ||
|to_port|integer|The last port in a range of open ports on an instance| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
# Table: aws_lightsail_instances | ||
Describes an instance (a virtual private server). | ||
## Columns | ||
| Name | Type | Description | | ||
| ------------- | ------------- | ----- | | ||
|account_id|text|The AWS Account ID of the resource.| | ||
|region|text|The AWS Region of the resource.| | ||
|arn|text|The Amazon Resource Name (ARN) of the instance (e.g., arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).| | ||
|blueprint_id|text|The blueprint ID (e.g., os_amlinux_2016_03).| | ||
|blueprint_name|text|The friendly name of the blueprint (e.g., Amazon Linux).| | ||
|bundle_id|text|The bundle for the instance (e.g., micro_1_0).| | ||
|created_at|timestamp without time zone|The timestamp when the instance was created (e.g., 1479734909.17) in Unix time format.| | ||
|hardware_cpu_count|integer|The number of vCPUs the instance has.| | ||
|hardware_ram_size_in_gb|float|The amount of RAM in GB on the instance (e.g., 1.0).| | ||
|ip_address_type|text|The IP address type of the instance| | ||
|ipv6_addresses|text[]|The IPv6 addresses of the instance.| | ||
|is_static_ip|boolean|A Boolean value indicating whether this instance has a static IP assigned to it.| | ||
|location_availability_zone|text|The Availability Zone| | ||
|location_region_name|text|The AWS Region name.| | ||
|name|text|The name the user gave the instance (e.g., Amazon_Linux-1GB-Ohio-1).| | ||
|networking_monthly_transfer_gb_per_month_allocated|integer|The amount allocated per month (in GB).| | ||
|private_ip_address|text|The private IP address of the instance.| | ||
|public_ip_address|text|The public IP address of the instance.| | ||
|resource_type|text|The type of resource (usually Instance).| | ||
|ssh_key_name|text|The name of the SSH key being used to connect to the instance (e.g., LightsailDefaultKeyPair).| | ||
|state_code|integer|The status code for the instance.| | ||
|state_name|text|The state of the instance (e.g., running or pending).| | ||
|support_code|text|The support code| | ||
|tags|jsonb|The tag keys and optional values for the resource| | ||
|username|text|The user name for connecting to the instance (e.g., ec2-user).| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.