# 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 […]
View the Flyer Open my Presentation Notes on Google Slides View the Panelists
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 […]
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 […]
#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 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 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 […]
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/