Posts in category: AWS
EC2 Instance Management by CLI

# Get EC2 Instance Id from within the EC2 requires two commands for the Metadata Service: TOKEN=`curl -X PUT “http://169.254.169.254/latest/api/token” -H “X-aws-ec2-metadata-token-ttl-seconds: 21600″` and curl -H “X-aws-ec2-metadata-token: $TOKEN” -v http://169.254.169.254/latest/meta-data/instance-id # View the Console of a Running EC2 instance aws ec2 get-console-output –instance-id i-0598c7950e195e # Get a Screenshot of a Running EC2 instance as JPG […]

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

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