Skip to main content

AWS Lightsail: Notes

AWS Lighsail Logo

One of ways to learn AWS is start with https://aws.amazon.com/lightsail/, first month is free.

List of services on AWS Lightsail:

  • Instances
  • Containers
  • Databases
  • Networking
  • Storage
  • Snapshots
AWS Lightsail services

Databases

aws lightsail get-relational-database --relational-database-name dbname-here --profile profile-here

PS F:\Projects\github\spring-jpa-h2> F:\xampp\mysql\bin\mysql.exe -u dbmasteruser -h ls-01873f09d6081824bab0192b883ef5308f7e2d73.ckcgqkvrumsn.us-east-1.rds.amazonaws.com -p
Enter password: ********************************
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 6065
Server version: 8.0.23 Source distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MySQL [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| dbmaster           |
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
5 rows in set (0.375 sec)

MySQL [(none)]>

Setup AWS Lightsail Instance for Cloud9

sudo apt install nodejs npm -y
aws lightsail get-instance --instance-name instancename-here --profile profile-here
PS C:\Users\tuyen> aws lightsail delete-instance --instance-name WordPress_Multisite-1 --profile PROFILE-NAME-HERE --region ap-southeast-2
{
    "operations": [
        {
            "id": "448a6332-1cdd-4151-ad70-eb5c8a1acac6",
            "resourceName": "4e17d509-b746-4a41-91b6-04c63467e470",
            "resourceType": "Alarm",
            "createdAt": "2023-11-08T21:57:57.967000+07:00",
            "location": {
                "availabilityZone": "all",
                "regionName": "ap-southeast-2"
            },
            "isTerminal": true,
            "operationDetails": "WordPress_Multisite-1",
            "operationType": "DeleteAlarm",
            "status": "Succeeded",
            "statusChangedAt": "2023-11-08T21:57:57.967000+07:00"
        },
        {
            "id": "5cc7c719-b605-4bf7-80d1-caf780aae459",
            "resourceName": "WordPress_Multisite-1",
            "resourceType": "Instance",
            "createdAt": "2023-11-08T21:57:58.450000+07:00",
            "location": {
                "availabilityZone": "ap-southeast-2a",
                "regionName": "ap-southeast-2"
            },
            "isTerminal": true,
            "operationDetails": "",
            "operationType": "DeleteInstance",
            "status": "Succeeded",
            "statusChangedAt": "2023-11-08T21:57:58.450000+07:00"
        }
    ]
}

PS C:\Users\tuyen>
PS C:\Users\tuyen> aws lightsail delete-instance --instance-name Ghost-1 --profile PROFILE-NAME-HERE
{
    "operations": [
        {
            "id": "f0838a18-8c81-441f-bddf-07e2e0f8f0d5",
            "resourceName": "Ghost-1",
            "resourceType": "Instance",
            "createdAt": "2024-09-23T11:18:42.894000+07:00",
            "location": {
                "availabilityZone": "us-east-1a",
                "regionName": "us-east-1"
            },
            "isTerminal": true,
            "operationDetails": "",
            "operationType": "DeleteInstance",
            "status": "Succeeded",
            "statusChangedAt": "2024-09-23T11:18:42.894000+07:00"
        }
    ]
}

PS C:\Users\tuyen>

PS C:\Users\tuyen> aws lightsail get-relational-databases --region us-east-1 --profile PROFILE-NAME-HERE
PS C:\Users\tuyen> aws lightsail delete-relational-database --relational-database-name RELATIONAL-DB-NAME-HERE --region us-east-1 --profile PROFILE-NAME-HERE

Popular posts from this blog

Tiếng Nhật: 7 ngày trong tuần

Tìm thấy món quà xinh xắn mà một đồng nghiệp đã tặng trong dịp đi Nhật tham gia khóa học quản lý dự án. Desk Calendar in Japanese Thử một mục tiêu nhỏ để luyện tập não và cách gõ tiếng Nhật trên máy tính. Dưới đây là bảy ngày trong tuần, bắt đầu từ Chủ Nhật, đến thứ hai,... và cuối cùng là thứ bảy (Nhựt, Nguyệt, Hỏa, Thủy, Mộc, Kim, Thổ). 日曜日 にちようび 月曜日 げつようび 火曜日 かようび 水曜日 すいようび 木曜日 もくようび 金曜日 きんようび 土曜日 どようび  [Nguồn tham khảo] http://www.cjvlang.com/Dow/dowjpn.html Cám ơn bạn đã đọc!

IBM Domino: Enable SMTPClientDebug, SMTPDebug

Add parameters to NOTES.ini SMTPClientDebug=1 SMTPDebug=2 Option 1: Add parameters via GUI IBM Domino: Enable SMTPDebug in NOTES.ini Option 2: Add parameters via command SET CONFIG "SMTPClientDebug=1" update Run command to update router configuration tell router update config IBM Domino: tell router update config to update configuration and reload routing table Send an email to @gmail.com to check result IBM Domino: Log file after enabling SMTPClientDebug parameter in NOTES.ini file

Linux command: printenv

printenv - print all or part of environment NAME        printenv - print all or part of environment SYNOPSIS        printenv [OPTION]... [VARIABLE]... DESCRIPTION        Print  the  values  of the specified environment VARIABLE(s).  If no VARIABLE is speci‐        fied, print name and value pairs for them all.        -0, --null               end each output line with NUL, not newline        --help display this help and exit        --version               output version information and exit        NOTE: your shell may have its own version of printenv,  which  usually  supersedes  the        version  described  here.  Please refer to your shell's documentation for d...