Deploying WordPress on AWS Lightsail

After logging into AWS and launching the Lightsail service, it is necessary to create an instance. The instance for WordPress is based on the Linux Debian operating system packaged by Bitnami. Lightsail applications run standalone from AWS at large though can be integrated with it. When an instance is created, with the Route 53 service […]

AWS Transcribe CLI Workflow

Recently I needed to create transcriptions for a number of videos. I decided to use Amazon Transcribe to make it faster for me than typing. I used ffmpeg and S3 to lighten the load.   — 1. separate audio from the video file ffmpeg -i input.mp4 -vn -acodec pcm_s16le -ar 44100 -ac 2 output.wav — […]

ffmpeg cheatsheet

    –Combine video and audio ffmpeg -i ‘video.mp4’ -i ‘audio.m4a’ -c copy -map 0:0 -map 1:0 output.mp4   –Extract audio from video ffmpeg -i input.mp4 -vn -acodec pcm_s16le -ar 44100 -ac 2 output.wav    

LAMP Server on AWS EC2 Amazon Linux 2023 AMI

#!/bin/bash dnf upgrade -y dnf install -y httpd wget php-fpm php-mysqli php-json php php-devel dnf install mariadb105-server systemctl start httpd systemctl enable httpd systemctl is-enabled httpd usermod -a -G apache ec2-user chown -R ec2-user:apache /var/www chmod 2775 /var/www && find /var/www -type d -exec sudo chmod 2775 {} \; find /var/www -type f -exec sudo […]

Create Lambda Layer on AWS CloudShell

This is a mess. I will edit it later   This is the command history to build a Lambda Layer in Python. I had to add a C compiler, Compile Python 3.9 with a specific requests module, and then upload to S3 and Add the Layer to Lambda function before I could use it but […]

Install gcc on AWS CloudShell

Recently, I had the need to compile Python 3.9 on AWS CloudShell which was necessary to create a Lambda Layer for the requests module. This required add a C compiler to CloudShell. The steps are: Step 1: Update packages.   sudo yum update Step 2: Install GCC   sudo yum groupinstall “Development Tools” Step 3: […]