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, SSD-based storage, data transfer, DNS management, and a static IP – for a low, predictable price. You can manage your instances by using the Lightsail console, or by using the Lightsail API or command line interface (CLI).1
Table of contents
AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.[2
AWS Lightsail CLI Docs - Amazon Lightsail is the easiest way to get started with AWS for developers who just need virtual private servers.
- create-key-pair - Creates an SSH key pair.
aws lightsail --profile myprofile create-key-pair --key-pair-name mykeypair
- create-instances - Creates one or more Amazon Lightsail virtual private servers, or instances.
AWS Scripts - Python Scripts for Managing AWS
ssh -i ~/.ssh/ec2.pem email@example.com
chmod 700 ~/.ssh chmod 600 ~/.ssh/*.pem
https://github.com/michaelalber/lightsail-auto-snapshots - An AWS Lambda function to automatically snapshot all Amazon Lightsail virtual private servers in an account and retain them for a given number of days. The included AWS Serverless Application Model (SAM) template will upload and create the function, grant it the permissions necessary to list your Lightsail instances and snapshots and create and delete snapshots, and schedule it to run once per day.