Today we will learn, How to Deploy "Lambda@Edge" from cloudfront console. Lets start the implementation: Step 1: Open CloudFront console, and Select your CloudFront Distributions. Step 2: In your CloudFront Distributions, Select "Behaviors" tab. Step 3: Select your "default" Behaviors and Click on "edit". Step 4: From …
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 we will learn how to provide root permission to your SSH user. So, We can provide SSH user root permission either move them in root user group or We can add simple line in sudoers file to provide root permission. Lets use the first method. Provide ROOT permission to this user by move it to root user. 1usermod -aG …
Read MoreToday I will show you, how can you create you private and public key using ssh-keygen command. Connect to you Linux system. Open Linux terminal. Run below command to generate keys. 1ssh-keygen -t rsa -b 2048 Enter the name of the key and press Enter Now private and public key has been generated. Now you can use those …
Read MoreToday we will create a Powershell Script, which will delete your old files. You can also configure a scheduler which can delete the files automatically. Let's start the scripting: Step 1: Create a variable to get the old date by getting current date and subtracting the retention days: 1$cutoffDate = …
Read MoreToday, we faced a problem where our client application was not working because of the database connection issue. I have checked and found that their credentials were incorrect. As per the client, this was that same credentials which their application was using. So, To resolve the problem, we decided to reset the root …
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 MoreSavings Plans is a new and flexible discount model, which will provide the same discounts as Reserved Instances, in exchange for a commitment to use a specific amount (measured in dollars per hour) of compute over a one or three year period. Savings Plans are available in all AWS regions except China. You can start …
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 More