Amazon Elastic Container Registry

amazon docker registry (ECR)

Amazon Elastic Container Registry is used to store docker images in Amazon AWS cloud. To create a repository using awscli command line tool, run aws ecr create-repository –repository-name sok-repository –region ap-southeast-1 In Amazon AWS console, you can see the newly created repository by going to “Elastic Container Registry” page in the region where you created … Read more

Amazon Lightsail

Amazon Lightsail Log in failed – CLIENT_UNAUTHORIZED How to Delete an Amazon Lightsail server How to enable Snapshot (Backup) in Amazon Lightsail Server How to Create an Amazon Lightsail server How to enable root ssh in Amazon Lightsail instance

Amazon EC2 disk resize No space left on device

On an Amazon EC2 instamce disk usage was full. root@ip-172-31-46-249:/# df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 791M 8.9M 782M 2% /run /dev/nvme0n1p1 9.7G 9.6G 65M 100% / tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup … Read more

Mount Amazon s3 on Linux

To mount Amazon S3 bucket as a filesystem on linux, you can use s3fs. https://github.com/s3fs-fuse/s3fs-fuse To install s3fs on Ubuntu/Debian, run On RHEL/Amazon Linux: To mount an s3 buclet, create a password file with your AWS secret key and Then run In above command replace See Amazon S3

Amazon ECS

Amazon ECS is a container service from Amazon AWS Cloud. This allow you to run Docker containers in AWS cloud. It is like Kubernetes. Here are some good resources to get started with Amazon ECS https://github.com/nathanpeck/awesome-ecs https://ecsworkshop.com See AWS

AlibabaCloud DirectMail

Alibaba Cloud DirectMail

AlibabaCloud DirectMail is transactional email service from AlibabaCloud. It is like Amazon SES, MailGun, SendGrid etc… They have 3 differnt mail server hostname depending on region. Unlike other SMTP providers, they allow email using port 80. SMTP service address (China East 1): smtpdm.aliyun.com SMTP service address (Singapore): smtpdm-ap-southeast-1.aliyun.com SMTP service address (Sydney): smtpdm-ap-southeast-2.aliyun.com SMTP port: … Read more

AWS Elastic Beanstalk

Here are some useful command working with AWS Elastic Beanstalk eb init = initialize environment eb list eb logs eb console = open aws console eb open = open application in web browser eb appversion = show application versions eb health = show health of application eb codesource = select local or codecommit eb deploy … Read more