Find Largest Directories in Linux To display the biggest directories in the current working directory: 1du -a | sort -n -r | head -n 5 Let us break down the command and see what says each parameter. du command: Estimate file space usage. a : Displays all files and folders. sort command : Sort lines of text files. -n : …
Read MoreTo grant a user access to a specific folder in your Amazon S3 bucket, use below IAM policy: 1{ 2 "Version": "2012-10-17", 3 "Statement": [ 4 { 5 "Sid": "VisualEditor0", 6 "Effect": "Allow", 7 "Action": "s3:GetBucketLocation", 8 "Resource": "arn:aws:s3:::*" 9 }, 10 { 11 "Sid": "VisualEditor1", 12 "Effect": "Allow", 13 …
Read MoreIn this blog, we will create a script in AWS Lambda function which check the API status and send the mail to the recipient via AWS SES. Step 1: Open you AWS account. Step 2: Open IAM service console. Step 3: Create IAM policy for an IAM Role. Copy the below policy and paste it in your IAM policy. 1{ 2 "Version": …
Read MoreIn this blog, we will create a script in AWS Lambda function which will generate the presigned url of s3 object and then will send the email using AWS SES. Step 1: Open you AWS account. Step 2: Open IAM service console. Step 3: Create IAM policy for an IAM Role. Copy the below policy and paste it in your IAM policy. 1{ …
Read MoreIn this blog,we will see how can we earn money with your AWS Skill. There are several ways you can earn money using Amazon Web Services (AWS): 1: Offer your services as an AWS consultant or solution architect: You can use your expertise in AWS to help businesses design, migrate, and manage their applications and …
Read MoreToday we will see how we can trigger lambda from SNS topic. Note: By this method you can broadcast same message to mutiple lambda and other AWS service. 1: create SNS topic: 2: create subscription in your topic, select lambda protocol and select your lambda function: 3: Now, when any application trigger SNS, then …
Read MoreToday, my customer came up with a requirment, where they want to do filtering and processing in customer emails. So, Let see how to acheive this we need to do the following this: 1: verify your domain in SES. Note: You have to select North Virginia region for this activity. 2: add MX record in your domain. 3: then we …
Read MoreToday we will install PHP 5.6 on Amazon Linux 2 OS. Step 1: First we need to install the dependencies: 1 > sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2 3 > wget https://repo.ius.io/ius-release-el7.rpm 4 5 > sudo rpm -Uvh ius-release*.rpm Step 2: So all dependencies are …
Read MoreToday we will learn, How to Deploy "Lambda@Edge" from Lambda console. Lets start the implementation: Step 1: Go to your Lambda function. Step 2: From Designer, Click on "Add Trigger". Step 3: Select "cloudfront" from the trigger. Step 4: Click on "Deploy to Lambda@Edge". Step 5: Now, You have to enter your CloudFront …
Read MoreToday 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 More