Amazon Lightsail is the easiest way to get started with AWS for developers who just need virtual private servers. Lightsail includes everything you need to launch your project quickly - a virtual machine, a managed database, SSD-based storage, data transfer, DNS management, and a static IP - for a low, predictable price. You manage those Lightsail servers through the Lightsail console or by using the API or command-line interface (CLI).
For more information about Lightsail concepts and tasks, see the Lightsail Dev Guide.
To use the Lightsail API or the CLI, you will need to use AWS Identity and Access Management (IAM) to generate access keys. For details about how to set this up, see the Lightsail Dev Guide.
lightsail()
allocate_static_ip | Allocates a static IP address |
attach_disk | Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name |
attach_instances_to_load_balancer | Attaches one or more Lightsail instances to a load balancer |
attach_load_balancer_tls_certificate | Attaches a Transport Layer Security (TLS) certificate to your load balancer |
attach_static_ip | Attaches a static IP address to a specific Amazon Lightsail instance |
close_instance_public_ports | Closes the public ports on a specific Amazon Lightsail instance |
copy_snapshot | Copies an instance or disk snapshot from one AWS Region to another in Amazon Lightsail |
create_cloud_formation_stack | Creates an AWS CloudFormation stack, which creates a new Amazon EC2 instance from an exported Amazon Lightsail snapshot |
create_disk | Creates a block storage disk that can be attached to a Lightsail instance in the same Availability Zone (e |
create_disk_from_snapshot | Creates a block storage disk from a disk snapshot that can be attached to a Lightsail instance in the same Availability Zone (e |
create_disk_snapshot | Creates a snapshot of a block storage disk |
create_domain | Creates a domain resource for the specified domain (e |
create_domain_entry | Creates one of the following entry records associated with the domain: Address (A), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT) |
create_instance_snapshot | Creates a snapshot of a specific virtual private server, or instance |
create_instances | Creates one or more Amazon Lightsail virtual private servers, or instances |
create_instances_from_snapshot | Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration |
create_key_pair | Creates an SSH key pair |
create_load_balancer | Creates a Lightsail load balancer |
create_load_balancer_tls_certificate | Creates a Lightsail load balancer TLS certificate |
create_relational_database | Creates a new database in Amazon Lightsail |
create_relational_database_from_snapshot | Creates a new database from an existing database snapshot in Amazon Lightsail |
create_relational_database_snapshot | Creates a snapshot of your database in Amazon Lightsail |
delete_disk | Deletes the specified block storage disk |
delete_disk_snapshot | Deletes the specified disk snapshot |
delete_domain | Deletes the specified domain recordset and all of its domain records |
delete_domain_entry | Deletes a specific domain entry |
delete_instance | Deletes a specific Amazon Lightsail virtual private server, or instance |
delete_instance_snapshot | Deletes a specific snapshot of a virtual private server (or instance) |
delete_key_pair | Deletes a specific SSH key pair |
delete_known_host_keys | Deletes the known host key or certificate used by the Amazon Lightsail browser-based SSH or RDP clients to authenticate an instance |
delete_load_balancer | Deletes a Lightsail load balancer and all its associated SSL/TLS certificates |
delete_load_balancer_tls_certificate | Deletes an SSL/TLS certificate associated with a Lightsail load balancer |
delete_relational_database | Deletes a database in Amazon Lightsail |
delete_relational_database_snapshot | Deletes a database snapshot in Amazon Lightsail |
detach_disk | Detaches a stopped block storage disk from a Lightsail instance |
detach_instances_from_load_balancer | Detaches the specified instances from a Lightsail load balancer |
detach_static_ip | Detaches a static IP from the Amazon Lightsail instance to which it is attached |
download_default_key_pair | Downloads the default SSH key pair from the user's account |
export_snapshot | Exports an Amazon Lightsail instance or block storage disk snapshot to Amazon Elastic Compute Cloud (Amazon EC2) |
get_active_names | Returns the names of all active (not deleted) resources |
get_blueprints | Returns the list of available instance images, or blueprints |
get_bundles | Returns the list of bundles that are available for purchase |
get_cloud_formation_stack_records | Returns the CloudFormation stack record created as a result of the create cloud formation stack operation |
get_disk | Returns information about a specific block storage disk |
get_disk_snapshot | Returns information about a specific block storage disk snapshot |
get_disk_snapshots | Returns information about all block storage disk snapshots in your AWS account and region |
get_disks | Returns information about all block storage disks in your AWS account and region |
get_domain | Returns information about a specific domain recordset |
get_domains | Returns a list of all domains in the user's account |
get_export_snapshot_records | Returns the export snapshot record created as a result of the export snapshot operation |
get_instance | Returns information about a specific Amazon Lightsail instance, which is a virtual private server |
get_instance_access_details | Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance |
get_instance_metric_data | Returns the data points for the specified Amazon Lightsail instance metric, given an instance name |
get_instance_port_states | Returns the port states for a specific virtual private server, or instance |
get_instance_snapshot | Returns information about a specific instance snapshot |
get_instance_snapshots | Returns all instance snapshots for the user's account |
get_instance_state | Returns the state of a specific instance |
get_instances | Returns information about all Amazon Lightsail virtual private servers, or instances |
get_key_pair | Returns information about a specific key pair |
get_key_pairs | Returns information about all key pairs in the user's account |
get_load_balancer | Returns information about the specified Lightsail load balancer |
get_load_balancer_metric_data | Returns information about health metrics for your Lightsail load balancer |
get_load_balancer_tls_certificates | Returns information about the TLS certificates that are associated with the specified Lightsail load balancer |
get_load_balancers | Returns information about all load balancers in an account |
get_operation | Returns information about a specific operation |
get_operations | Returns information about all operations |
get_operations_for_resource | Gets operations for a specific resource (e |
get_regions | Returns a list of all valid regions for Amazon Lightsail |
get_relational_database | Returns information about a specific database in Amazon Lightsail |
get_relational_database_blueprints | Returns a list of available database blueprints in Amazon Lightsail |
get_relational_database_bundles | Returns the list of bundles that are available in Amazon Lightsail |
get_relational_database_events | Returns a list of events for a specific database in Amazon Lightsail |
get_relational_database_log_events | Returns a list of log events for a database in Amazon Lightsail |
get_relational_database_log_streams | Returns a list of available log streams for a specific database in Amazon Lightsail |
get_relational_database_master_user_password | Returns the current, previous, or pending versions of the master user password for a Lightsail database |
get_relational_database_metric_data | Returns the data points of the specified metric for a database in Amazon Lightsail |
get_relational_database_parameters | Returns all of the runtime parameters offered by the underlying database software, or engine, for a specific database in Amazon Lightsail |
get_relational_database_snapshot | Returns information about a specific database snapshot in Amazon Lightsail |
get_relational_database_snapshots | Returns information about all of your database snapshots in Amazon Lightsail |
get_relational_databases | Returns information about all of your databases in Amazon Lightsail |
get_static_ip | Returns information about a specific static IP |
get_static_ips | Returns information about all static IPs in the user's account |
import_key_pair | Imports a public SSH key from a specific key pair |
is_vpc_peered | Returns a Boolean value indicating whether your Lightsail VPC is peered |
open_instance_public_ports | Adds public ports to an Amazon Lightsail instance |
peer_vpc | Tries to peer the Lightsail VPC with the user's default VPC |
put_instance_public_ports | Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request |
reboot_instance | Restarts a specific instance |
reboot_relational_database | Restarts a specific database in Amazon Lightsail |
release_static_ip | Deletes a specific static IP from your account |
start_instance | Starts a specific Amazon Lightsail instance from a stopped state |
start_relational_database | Starts a specific database from a stopped state in Amazon Lightsail |
stop_instance | Stops a specific Amazon Lightsail instance that is currently running |
stop_relational_database | Stops a specific database that is currently running in Amazon Lightsail |
tag_resource | Adds one or more tags to the specified Amazon Lightsail resource |
unpeer_vpc | Attempts to unpeer the Lightsail VPC from the user's default VPC |
untag_resource | Deletes the specified set of tag keys and their values from the specified Amazon Lightsail resource |
update_domain_entry | Updates a domain recordset after it is created |
update_load_balancer_attribute | Updates the specified attribute for a load balancer |
update_relational_database | Allows the update of one or more attributes of a database in Amazon Lightsail |
# NOT RUN {
svc <- lightsail()
svc$allocate_static_ip(
Foo = 123
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab