snippetbashTip
aws lightsail — Manage Amazon Lightsail resources. More information: <https://docs.aws.amazon.com/cli/latest/referen
Viewed 0 times
resourcescommandaws lightsailclimanageamazonlightsailmore
Problem
How to use the
aws lightsail command: Manage Amazon Lightsail resources. More information: <https://docs.aws.amazon.com/cli/latest/reference/lightsail/>.Solution
aws lightsail — Manage Amazon Lightsail resources. More information: <https://docs.aws.amazon.com/cli/latest/reference/lightsail/>.List all virtual private servers, or instances:
aws lightsail get-instancesList all bundles (instance plans):
aws lightsail list-bundlesList all available instance images, or blueprints:
aws lightsail list-blueprintsCreate an instance:
aws lightsail create-instances --instance-names {{name}} --availability-zone {{region}} --bundle-id {{nano_2_0}} --blueprint-id {{blueprint_id}}Print the state of a specific instance:
aws lightsail get-instance-state --instance-name {{name}}Stop a specific instance:
aws lightsail stop-instance --instance-name {{name}}Delete a specific instance:
aws lightsail delete-instance --instance-name {{name}}Code Snippets
List all virtual private servers, or instances
aws lightsail get-instancesList all bundles (instance plans)
aws lightsail list-bundlesList all available instance images, or blueprints
aws lightsail list-blueprintsCreate an instance
aws lightsail create-instances --instance-names {{name}} --availability-zone {{region}} --bundle-id {{nano_2_0}} --blueprint-id {{blueprint_id}}Print the state of a specific instance
aws lightsail get-instance-state --instance-name {{name}}Context
tldr-pages: common/aws lightsail
Revisions (0)
No revisions yet.