Skip to content

Instantly share code, notes, and snippets.

View riyadhalnur's full-sized avatar
🥚

Riyadh Al Nur riyadhalnur

🥚
View GitHub Profile
@zigzhang
zigzhang / handler.js
Created November 1, 2018 19:37
Serverless & RDBS (Part 1) - Set up AWS RDS Aurora and Lambda with serverless
// Require and initialize outside of your main handler
const mysql = require('serverless-mysql')({
config: {
database: process.env.AURORA_DB_NAME,
user: process.env.AURORA_USERNAME,
password: process.env.AURORA_PASSWORD,
host: process.env.AURORA_HOST,
port: process.env.AURORA_PORT
}
});
@npearce
npearce / install-docker.md
Last active April 26, 2025 04:27
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start