In this blog, we will create a Powershell script, which will copy latest files from AWS S3 to paste it in local. So, lets start the process. Note: For this script, we need to install AWS CLI on local Windows machine and we need configure IAM user credentials with S3 get and put object permission. Step 1: Create IAM …
Read MoreIn this blog, we will create a script in AWS Lambda which will help viewer request points to your root URL (http://www.example.com) instead of to a specific object in your distribution (http://www.example.com/index.html). Note: It will help mainly in Hugo and other Serverless website hosting on AWS environment. Lets …
Read MoreToday we will see, how to resolve the error "mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists.". This error you may see, when you try to run MySQL in safe-mode. 1: create a mysqld Directory in /var/run Directory. 1mkdir -p /var/run/mysqld 2: change the ownership of that folder: 1chown …
Read MoreToday I will show you, how can you get SSH private key from AWS console and convert that key into public key. So, that you can use that key for create a SSH user. So, First lets with downloading a key from AWS Console. To create your key pair. Please follow the below steps: Open the Amazon EC2 console at …
Read MoreToday we will create new user that can connect to my Linux instance/Server using SSH key Authentication method. When you launches a Linux server, a default system user account created with administrative access to the server. If you wants multiple users access to the instance, it's a security best practice to create a …
Read MoreToday lets configured your powershell script in widows scheduler. Lets start the process: Step 1: Open "Task Scheduler" : Step 2: Click on "Create Task" : Step 3: In general, write "scheduler task Name" and enter "Administrator" user: Step 4: In trigger, enter timing in which you want to run the script: Step 5: In …
Read MoreToday we will learn, how to create AWS Cloudformation script. So in this script, we will create a VPC and two subnets. One public subnet and one private subnet. First, we have to define the script Cloudformation template format version. 1{ 2 "AWSTemplateFormatVersion": "2010-09-09", 3 "Description" : "Create 8 private …
Read MoreToday we will learn, How to extend your AWS EC2 EBS volume disk without Downtime. If you are using Linux you can click on this link and follow the steps. So, Once you increases the size of an EBS volume from the AWS console, use the Windows Disk Management utility to extend the disk size to the new size of the volume. …
Read MoreToday we will learn, How to extend your AWS EC2 EBS volume disk without Downtime. If you are using Windows you can easily extend your EBS drive without downtime and without any problem. You can use this link for window process. But if come to Linux, Disk extend part will become some headache. So, Let start the process …
Read MoreRotating SSL/TLS Certificate Current Certificate Expiry: If application connects to an RDS DB instance using Secure Socket Layer (SSL) or Transport Layer Security (TLS), certificate must be rotated before March 5, 2020 Problem Description: As of September 19, 2019, Amazon RDS has published new Certificate Authority …
Read More