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.

Books

Linux Command Line and Shell Scripting Bible Linux Command Line and Shell Scripting Bible - Linux Command Line and Shell Scripting Bible is your essential Linux guide. With detailed instruction and abundant examples, this book teaches you how to bypass the graphical interface and communicate directly with your computer, saving time and expanding capability.


Linux Bible Linux Bible - Linux continues to be an excellent, low-cost alternative to expensive operating systems. Whether you're new to Linux or need a reliable update and reference, this is an excellent resource. Veteran bestselling author Christopher Negus provides a complete tutorial packed with major updates, revisions, and hands-on exercises so that you can confidently start using Linux today.


Learning Python Learning Python - Portable, powerful, and a breeze to use, Python is the popular open source object-oriented programming language used for both standalone programs and scripting applications.


Modern PHP: New Features and Good Practices Modern PHP: New Features and Good Practices - PHP is experiencing a renaissance, though it may be difficult to tell with all of the outdated PHP tutorials online. With this practical guide, you'll learn how PHP has become a full-featured, mature language with object-orientation, namespaces, and a growing collection of reusable component libraries.