Loading...
 

Amazon Lightsail

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

Refences

Command-Line Interface

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

aws lightsail --profile myprofile create-key-pair --key-pair-name mykeypair

Create an Instance

  • create-instances - Creates one or more Amazon Lightsail virtual private servers, or instances.

AWS SDK for Python

AWS SDK for Python (Boto3) makes it easy to integrate your Python application, library, or script with AWS services including Amazon S3, Amazon EC2, Amazon DynamoDB, and more.3

AWS Scripts - Python Scripts for Managing AWS

Lightsail - Boto 3 Docs

Create Key Pair

Create an Instance

Connect via SSH

ssh -i ~/.ssh/ec2.pem ubuntu@ec2-23-22-122-111.compute-1.amazonaws.com

Setting the proper permissions

chmod 700 ~/.ssh
chmod 600 ~/.ssh/*.pem

Backup / Snapshots

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.

Lightsail and Plesk

Installing Plesk on Amazon Lightsail

Last edited by MichaelAlber .
Page last modified on Wednesday October 10, 2018 16:15:09 UTC.