AWS CloudFormation

Tutorial: Install a LAMP web server on Amazon Linux 2 Tutorial: Install a LAMP web server on Amazon Linux 2 Tutorial: Host a WordPress blog on Amazon Linux 2 Tutorial: Host a WordPress blog on Amazon Linux 2     WordPress on Amazon Linux 2023 using Cloudformation https://github.com/PixelPalsPCC/wordpress       How To Reset Your […]

SSL Certificate on Amazon Linux 2023

When you create a server in AWS for production, you will want to add a domain name for it. With a domain name you can encrypt communication to the server. (If you access a website by its IP address, you cannot have encrypted communication.) Let’s Encrypt is a free, popular tool from the ISRG that […]

Swift Development

#Docker run sudo docker run -d -p 8080:8080 –rm –volume=”$(pwd):/app” –workdir=/app -it swift   #What port is swift Docker running on sudo docker ps –format “table {{.Image}}\t{{.Ports}}\t{{.Status}}”   #Create swift using Docker https://www.geeksforgeeks.org/docker-swift-application/   #Run VS Code as SuperUser sudo code –no-sandbox –user-data-dir /home/username/Documents/htdocs/ws-swift    

AWS EC2 Auto Scaling Group

AWS Amazon Web Services Auto Scaling Group using Launch Template and Classic Load Balancer Command Line Interface CLI   1. aws ec2 create-security-group –group-name ELBSG –description “ELB Security Group” 2. aws ec2 authorize-security-group-ingress –group-id sg-XXXXXXXXXXXX –protocol tcp –port 80 –cidr 0.0.0.0/0 3. aws ec2 describe-subnets 4. aws elbv2 create-load-balancer –name CLELB –subnets subnet-XXXXXXXXXXXX subnet-XXXXXXXXXXXX 5. […]

AWS Transfer Usage for SFTP

AWS Transfer is an SFTP service within AWS. Using SSH keys, an SFTP connection can be established to upload and download files to AWS (most likely to S3). There are two approaches for restricting what the user can do. The simple approach is to use the built-in feature with AWS Transfer: Restricted directory. While creating […]

Working with AWS SDK in JavaScript v3

https://github.com/aws/aws-sdk-js-v3 https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/javascript_code_examples.html https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/ https://aws.amazon.com/blogs/compute/managing-aws-lambda-runtime-upgrades/

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 […]