Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-lightsail: add page #8934

Merged
merged 4 commits into from
Oct 11, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
33 changes: 33 additions & 0 deletions pages/common/aws-lightsail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# aws lightsail

> CLI for Lightsail.
> You can manage your Lightsail resources using the cli.
ShivamJoker marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/index.html>.

- List all Amazon Lightsail virtual private servers, or instances:
ShivamJoker marked this conversation as resolved.
Show resolved Hide resolved

`aws lightsail get-instances`

- List all Lightsail bundles (instance plans):
ShivamJoker marked this conversation as resolved.
Show resolved Hide resolved

`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 {{ap-southeast-1a}} --bundle-id {{nano_2_0}} --blueprint-id {{nodejs}}`
ShivamJoker marked this conversation as resolved.
Show resolved Hide resolved

- Get instance state:
ShivamJoker marked this conversation as resolved.
Show resolved Hide resolved

`aws lightsail get-instance-state --instance-name {{name}}`

- Stop instance:
ShivamJoker marked this conversation as resolved.
Show resolved Hide resolved

`aws lightsail stop-instance --instance-name {{name}}`

- Delete instance:
ShivamJoker marked this conversation as resolved.
Show resolved Hide resolved

`aws lightsail delete-instance --instance-name {{name}}`