In this blog we will learn, how to add permission or role in existing User. In this we will use db.updateUser() method to update the user’s profile on the database on which you run the method. An update to a field completely replaces the previous field’s values. This includes updates to the user’s roles array. Steps to …
Read MoreIn this blog, we will copy last 24 hours files from local windows server to AWS S3. Let's start to achieve this: 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 user and download the access …
Read MoreToday we will write a python code in lambda which will connect with our mongodb Atlas and list all databases. Step 1: Install Dependencies packages in Lambda Layers. 1Package: 21: pymongo 32: dnspython Note: To learn how to add python packages in lambda layers. Use the this [link] …
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 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 MoreIn this blog, Today we will create a script that will help us to copy latest files from FTP server and paste it to another server (FTP client server) using WinSCP Script. So, lets start the process. Step 1: For this, We first need to install WinSCP on our clinet server. To install WinSCP, Please click on the link. Step …
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