Files
cheatsheet-tldr/tldr/aws-lightsail
2025-12-20 00:20:53 +00:00

38 lines
916 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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-instances`
- List all bundles (instance plans):
`aws lightsail list-bundles`
- List all available instance images, or blueprints:
`aws lightsail list-blueprints`
- Create 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}}`