AWS Lambda SQS Batch Size

This article provides a detailed overview of AWS Lambda error handling with SQS integration. Batch Size and Error Handling with the SQS integration While you set up your SQS event integration, you get the chance to configure a “batchSize” property, which would specify the maximum number of SQS messages to be sent to the Lambda function every time a single trigger is set. It is considered as a very interesting and important property, but caution is necessary for assuring it’s correctly being tuned for fitting your every single need. Batches of messages being sent into one single invocation is capable of reducing costs and […]

Role Creation for SAML 2.0 Federation Using the Console

Needed Procedure prior to the Creation of a Role for SAML: For the sake of preparing for the creation of a role for SAML 2.0 federation, you will need to follow the below steps: 1. Prior to heading for the creation of a role for SAML-based federation, you will need to get a SAML provider created in IAM. 2. Get the policies ready for the role which is going to be assumed by SAML 2.0–authenticated users. A SAML federation role will be having the following 2 policies: – Role trust policy to define the role’s assumers. – IAM permissions policy […]

Tags for Roles and IAM Users

How to Name Tags? Take note of the below while naming IAM roles, IAM users, STS federated user sessions and STS assume-role sessions: Tag keys and values of tags are capable of having spaces, letters, numbers and the following symbols: _ . : / = + – @ . Tag key–value pairs: not case sensitive but preserved so as to not be able to include different Apartment and apartment tag keys. Tag values or tag keys cannot start with the text aws:. (it’s only for internal use). A tag can have empty values like pageNumber= “ ” . Tag keys are not capable of being […]

Roles or Instance Profiles Deletion

Roles or Instance Profiles Deletion How to View Role Access? Date of role’s last activity: – May not be as that of the last date reported in Access Advisor tab. – Has the last trial of accessing any service. Only activity of allowed services by role’s permissions policies will be reported using the Access Advisor tab. Viewing when role got last used through console: login to Management Console and head straight to the IAM console using this link From navigation pane, click on Roles. Go to the role’s row that you’d like to view, and your results may get narrowed down using the search field. […]

EC2 Scheduled Events

EC2 Scheduled Events What are the different Types of Scheduled Events? Amazon EC2 works with the below listed types of events for your instances, for which the event is occurring at a specifically scheduled time: – Instance stop: The instance gets stopped at a scheduled time. When it is started again, it will be migrated to another new host. Just with instances supported by Amazon EBS. – Instance retirement: The instance gets stopped at the scheduled time, in case it is supported by Amazon EBS, or otherwise terminated in case it is supported by the instance store. – Instance reboot: […]

EC2 Instances: Status Checks

EC2 Instances: Status Checks Status checks will get performed each and every minute, while returning a status of either a pass or a fail. In case every single one of the checks pass, the final status of the instance is going to be OK. In case 1 or more checks tend to fail, the final status will be impaired. Status checks will be built into Amazon EC2, which means that they are not capable of being disabled or deleted. The moment a status check fails, the associated CloudWatch metric for status checks will get incremented. You get the chance to […]

EC2 Instances: Status Check Alarms

EC2 Instances: Status Check Alarms How to Create and Edit Status Check Alarms? It is possible to utilize the status check metrics for creating CloudWatch alarms in order to notify you when an instance gets a failed status check. Create a Status Check Alarm through the Console Follow the below process for the sake of configuring an alarm that will send you a notification through your email, or stop, terminate, or even recover an instance whenever it fails in a status check. How to create a status check alarm using the console? Go to the Amazon EC2 console through this […]

SQS Lambda Polling

SQS Lambda Polling How Does the Lambda Integration Work? Lambda service, which is not a Lambda function, but rather a Lambda SQS long-poll service that runs on your behalf, will be the one that is going to poll your SQS queue continually for all incoming messages. As soon as a message arrives, it will start by receiving this message and, later on invoking the Lambda function by passing this message as a parameter. This is what a typical message event would look like to a Lambda function which is going to be handling the messages that are passed in: Along […]

SQS Lambda Concurrency

SQS Lambda Concurrency How do both the SQS and Lambda get implemented together for concurrency? While attempting to work with SQS, you must wait for messages to get received, then get them processed and deleted out of the queue. In case you forget to delete the message, it is going to return after the specified VisibilityTimeout, since SQS believes that the processing had failed and shall make it available for getting consumed again, so you’re not going to lose any messages. This process will not be applied while utilizing SQS as an event source for Lambda because you won’t be touching the […]

AWS Lambda Queue

AWS Lambda Queue A Lambda function may be used for processing messages in a Simple Queue Service queue. The following queue types are supported by Lambda event source mappings: standard queues + first-in, first-out queues. SQS will allow you to start offloading tasks from one component of your app through sending them to a queue and then getting them processed asynchronously. Lambda will poll the queue and later on invoke the function in a synchronous manner along with an event containing queue messages. Lambda will go ahead and read messages in batches then get your function invoked once for every batch. As your function gets a […]

AWS Lambda Polling

What’s wrong with polling? A lot of customers may require to implement the delivery of some long-running activities, like a query to a data warehouse or lake, or for a retail order fulfillment. They might get a polling solution developed just like the one shown below: POST will first send a request. GET will return an empty response. A different GET will also return an empty response. Yet a different other GET will return an empty response. In the end, GET will return the data you had long been looking. Hardships of traditional polling methods Unneeded chattiness and additional cost […]

AWS Lambda EventSourceMapping

What is AWS Lambda EventSourceMapping AWS::Lambda::EventSourceMapping resource: It helps you to create a mapping between an event source + a Lambda function. Lambda will start reading the items from event source and then triggering this function. Its Syntax For declaring this entity into a CloudFormation template, you must rely on the below syntax: – JSON – YAML Type: AWS::Lambda::EventSourceMapping Properties: BatchSize: Integer BisectBatchOnFunctionError: Boolean DestinationConfig:     DestinationConfig Enabled: Boolean EventSourceArn: String FunctionName: String MaximumBatchingWindowInSeconds: Integer MaximumRecordAgeInSeconds: Integer MaximumRetryAttempts: Integer ParallelizationFactor: Integer StartingPosition: String Its Properties: BatchSize This refers to the max number of items to be retrieved from a single batch. […]

AWS Lambda Destinations Simplified

AWS Lambda Destinations This feature sheds the light on function invocations and takes the results of execution to AWS services, making event-driven applications easier and reducing the complexity of every code. Asynchronous Invocations and their Destinations As a function gets invoked asynchronously these are the steps that occur: – Lambda will start by sending the event to stay in an internal queue – Another process will be reading events from this queue and will execute your function which was sent by Lambda – As the event gets added to the queue, Lambda would have prior to this simply returned a 2xx […]

What are AWS Lambda Triggers

What are AWS Lambda Triggers CloudFront Events for Triggering a Lambda Function For every single cache behavior found in a CloudFront distribution, it’s possible to add up to 4 triggers for a Lambda function to start executing upon the occurrence of specific CloudFront events. CloudFront triggers may be based upon 1 of 4 CloudFront events, just like what is displayed in the below diagram. CloudFront events for triggering Lambda@Edge functions are listed below: – Viewer Request The function will be executed as soon as CloudFront receives a request from any viewer, prior to checking if the requested object is found […]

AWS Lambda Throttle

AWS Lambda Throttle – Limits of Concurrency Every single region found in your account includes what is called a Lambda concurrency limit. This limit decides on the number of function invocations are capable of being run simultaneously in just a single region. It is applied to every single function located in the exact similar region and set to a 1000 [by default]. In case a concurrency limit gets exceeded, Lambda will begin throttling those offending functions through the act of rejecting requests. According to which type of invocation is made, the below situations will occur: Synchronous Sources of Invocation: On Demand, API […]

Aws Lambda Synchronous Vs. Asynchronous

Aws Lambda Synchronous Vs. Asynchronous This article provides a general overview about Synchronous & Asynchronous functionality of AWS Lambda, also highlights few of the use-cases in general. Sync or Async? Upon executing code with Lambda, you may invoke your functions synchronously or asynchronously. They are both useful and required for various situations, but are accompanied with interesting use-cases also in serverless space. Synchronous functions: Utilized for discovering what the result of an operation, prior to carrying on along to your next one. Simple to start with, just like invoking one function which performs a calculation and later on utilizes its result […]

AWS Lambda Response Size Limit

AWS Lambda Response Size Limit and Deployment Packages AWS Lambda Response Size Limit While trying to work with Lambda functions you will constantly worry about the allowed size of deployment packages. First, we need to take a look at the Lambda deployment limits and then start addressing the 50 MB package size in the official documentation of AWS. It is a delusive process since you can create larger deployments of files that are uncompressed. Inefficiently implemented lambda functions will cost you more than you anticipate.   Ask these questions first: How much do you currently spend on each Lambda function? […]

AWS Lambda Reserved Concurrency

AWS Lambda Reserved Concurrency The feature of Concurrency Limits on Individual AWS Lambda Functions has been announced in 2017.   Each Lambda function includes a new configuration option known as Reserved Concurrency, which is simply a single numerical value which you have the chance to get assigned to your Lambda function’s configuration, through either the web console, or the SDK/CLI: There are 2 effects resulting from this configuration value being set: limiting the number of instances for your Lambda function which may possibly be instantiated whenever needed to the value which you specify. Making sure to have a minimum of necessary concurrency […]

How AWS Lambda Invoke works?

AWS Lambda Invoke AWS Lambda Invoke Lambda functions can be invoked directly using: Lambda console Lambda API AWS SDK AWS CLI AWS toolkits + Or by configuring other AWS services for the sake of invoking your function + Or by configuring Lambda to start reading from a stream or queue then invoking your function Upon invoking a function, you will be given the chance to choose between invoking synchronously or asynchronously. Synchronous: awaiting the function to finish processing the event and then returning a response. Asynchronous: Lambda will queue the event to get it processed and then it will return […]

AWS Lambda Scaling

AWS Lambda Scaling When you get your function invoked for the first time ever, Lambda will create an instance of this function and then run its handler method for the sake of processing the event. As soon as a response is returned by the function, it will remain active and await to take on some extra events. In the case of invoking the function another time as the first event gets processed, Lambda will then initialize one other instance, allowing the function to process both events concurrently. While additional events join, Lambda starts routing them to available instances and creating […]

AWS Lambda Edge Limits

AWS Lambda Edge Limits Quotas Quotas included in this section are applied to Lambda@Edge. They are in addition to the CloudFront and Lambda quotas that come by default and are also applied. Important Lambda will scale capacity in a dynamic manner as a response to increased traffic, found in the quotas of your account. Also, you need to remain aware of the fact that there exists more restrictions while using Lambda@Edge functions. Quotas that differ by event type Other Quotas URI and Query String Size Quotas Upon the access or update of a URI or query string in a Lambda@Edge […]

What is AWS Lambda Console

What is AWS Lambda Console This console aids the user in monitoring and managing their Lambda apps. The Applications menu: – Displays a list of CloudFormation stacks with their Lambda functions – Contains stacks that are launched by the user in CloudFormation through using one of the following: CloudFormation console AWS Serverless Application Repository AWS CLI AWS SAM CLI For Viewing a Lambda App Head to the Lambda console Applications page. Select an app. This will allow you to check the below information about your chosen app. AWS CloudFormation templateor SAM template: This template is a definition of your app. Resources: These are your AWS […]

Aws Lambda Concurrency

How AWS Lambda Concurrency Works? The short definition of AWS Lambda concurrency is the number of requests served by your function at any time. Upon the invocation of your function, an instance of it will be allocated by Lambda for processing the event. As soon as the function code reaches the end of its running process, a new request may now be handled by it. In case of invoking the function once more as a request is yet getting processed, an allocation of another instance occurs, and this will end up increasing the function’s concurrency. Subject to a Regional limit […]

Types of EC2 Placement Groups

Types of EC2 Placement Groups Upon launching new EC2 instances, the service tends to add the instance so that every one of your instances get spread out over underlying hardware in order to get the lowest possible correlated number of failures. Placement Groups are used for the sake of influencing the placement interdependent groups of instances so that they supply the requirements of your workload. According to which type of workload you possess; you may get to create a placement group through utilizing a chosen placement strategy out of the following ones: Cluster: works by packing instances close to each […]

AWS EC2 Placement Groups

EC2 Placement Groups: Rules and Limitations General Rules: Prior to using placement groups, you must know the below rules: Name of placement groups: unique within the account for each Region. Placement groups cannot be merged. Instance: launched in 1 placement group at a time, and it’s not possible to span various placement groups. On-Demand Capacity Reservation + zonal Reserved Instances offer a capacity reservation for instances in one Availability Zone. This may be utilized by instances in a placement group. (cannot explicitly reserve capacity for a placement group). Instances having a tenancy of host may not possibly get launched in […]

How to Launch AWS Instance with Launch Wizard

Launch Instance Wizard: How to Launch AWS Instance An instance may be launched through the launch instance wizard. This wizard sets out every launch parameter needed for the launching of a chosen instance. Wherever a default value is set by the wizard, it can be accepted or changed to a specific value of your own. An AMI + a key pair must be chosen for launching the instance. Prior to launching an instance, you must be set up. Note Upon launching an instance outside of Free Tier, you will get charged for the period in which instance continues to run, […]

EC2 Launch Instance Wizard

EC2 Launch Instance Wizard: Adding and Configuring Instance Options on AWS Adding Storage AMI: has multiple volumes of storage (root device volume). From the Add Storage page, set more volumes for attaching to the instance through selecting Add New Volume. You may start configuring every volume as needed, and select Next: Add Tags. – Type: Choose instance store or EBS volumes to get them associated with an instance. The instance chosen is what affects the types of volume found in the list. – Device: Choose one found in the list of device names for the required volume. – Snapshot: Fill […]

EC2 Instance CPU Options

EC2 CPU Options CPU options may be specified while instance launch is occurring. The below listed examples are for r4.4xlarge instance, which includes default values as follows: CPU cores: 8 (DEFAULT) Threads per core: 2 (DEFAULT) vCPUs: 16 (8 * 2) (DEFAULT) Number of CPU cores: 1, 2, 3, 4, 5, 6, 7, 8 (VALID) Number of threads per core: 1, 2 (VALID) Multithreading DISABLED For disabling multithreading, you need to specify 1 thread per core. Disabling multithreading – instance launch (console) Go through “Launching an Instance Using the Launch Instance Wizard” process. From the Configure Instance Detailspage, under CPU options, select Specify CPU options. Under Core […]

How to Optimize EC2 CPU Options

How to Optimize EC2 CPU Options? – Overview EC2 instances are utilized for the support of multithreading, which is the enabling of various threads to start running simultaneously on just one CPU core. Every thread gets shown as a vCPU on the instance. Every instance includes a default number of CPU cores that changes in parallel with the instance’s type. As an example: m5.xlarge instance contains 2 CPU cores + 2 threads/core by default (4 vCPUs). Important: Every vCPU = a thread of a CPU core (excluding T2 instances) Normally, an EC2 instance type is found, which contains a mixture of […]

EC2 Accelerated Computing Instances

AWS EC2 Accelerated Computing Instances Accelerated computing instances are mostly utilized by companies who make use of the following: – Hardware accelerators – Co-processors – Functions – Floating point number calculations – Graphics processing – Data pattern matching, These operations are even performed more efficiently and effectively than what other software running on CPUs are capable of.   P3: They are the newest generation of general-purpose GPU instances. Its Features Include: 8 NVIDIA Tesla V100 GPUs [pairing 5,120 CUDA Cores + 640 Tensor Cores] Intel Xeon E5-2686 v4 [High frequency] processors (p3.2xlarge+ p3.8xlarge + p3.16xlarge) 5 GHz Intel Xeon P-8175M […]

AWS EC2 Storage optimized Instances

EC2 Storage optimized Instances The Storage Optimized instances are optimized for companies who seek to launch workloads in need of high, sequential read and write access to extremely huge data sets on that are found on local storage. These instances are designed for the sake of delivering thousands of low-latencies random IOPS to apps.   I3: Offers: – Non-Volatile Memory Express (NVMe) – SSD-backed instance storage for low latency – Very high random I/O performance – High sequential read throughput – High IOPS at a low cost – Bare Metal instances (i3.metal) – Nitro System for: non-virtualized workloads + workloads benefitting […]

Amazon EC2 Memory Optimized Instances

How EC2 Memory Optimized Instances Work? Memory optimized instances are designed to deliver fast performance. They are greatly suitable for companies that aim to execute workloads that process large data sets in memory. There are 8 different instances for this type:   1. R5: These instances: – Deliver 5% extra memory per vCPU than what R4 gives – Its largest size gives 768 GiB of memory – Provide a 10% price per GiB improvement – Provide ~20% extra CPU performance over what R4 delivers   Its Features include: 1 GHz Intel Xeon® Platinum 8175 processors Intel Advanced Vector Extension (AVX-512) […]

EC2 Compute Optimized Instances

EC2 Compute Optimized Instances EC2 Compute Optimized instances are perfect for compute bound applications which can make use of high-performance processors. Instances that fall under this family are mostly good suited for companies aiming to benefit from the following options: – Batch processing workloads – Media transcoding – High performance web servers – High performance computing (HPC) – Scientific modeling – Dedicated gaming servers – Ad server engines – Machine learning inference – Other compute intensive apps This type of instance has the following categories of instances: 1. C5 They are optimized for the purpose of compute-intensive workloads. They supply […]

EC2 General Purpose Instances

AWS EC2 General Purpose Instance Types General Purpose  This type of instance supplies the user with a balance of the resources mentioned below : Compute Memory Networking It may also be utilized for multiple workloads. Particularly, those instances are perfect for and favored by a wide variety of companies that require apps that rely on resources in equivalent proportions, like code repositories & web servers. Under the General Purpose type of instance, there are 9 different categories of instances: 1. A1 A1 instances are known for: – Delivering paramount cost savings – Being perfectly suited for scale-out – Being suited […]

What are AWS Tags? How do they work?

What are AWS Tags? How do they work? This article provides a general overview of AWS based Tags, also highlights few of the use-cases in general.Let’s get started with some of the basic questions.  What is a TAG? > In simple English, It’s a label which is assigned to any specific resource. Every tag consists of a key and an optional value, both of which is  defined by user.> As per AWS, tag is a simple label consisting of a customer-defined key and an optional value that can make it easier to manage, search for, and filter resources. A basic metadata object […]

How To Check Your Billing Information on AWS

Check Billing Information on AWS Once you decide that you need to transfer an amount of money, you should first wait for the right time to arrive. When it’s time for you to draw money toward the finish of a charging cycle or at the time you decide to acquire a one-time expense, AWS charges your credit card on record and issues your receipt as a PDF document. You can download the PDF from the Account Activity page found in the Billing and Cost management console at (, by utilizing the accompanying process. Follow the steps below to access your […]

How to achieve Proactive Governance using AWS Tagging

How to achieve Proactive Governance using AWS Tags This article provides a detailed overview of proactive based governance with AWS Tags, also highlights few of the use-cases in general. Before you start CloudySave is an all-round one stop-shop for your organization & teams to reduce your AWS Cloud Costs by more than 55%. Cloudysave team assess your AWS infra and assists your teams to define standard AWS tagging practices. Our goal is to provide clear visibility about the spending and usage patterns to your Engineers and Ops teams. Sign up Now and uncover instant savings opportunities. What is Proactive Governance? […]

AWS Reactive Governance

AWS Reactive Governance   Meaning of Tagging Governance for AWS Reactive Governance and Proactive: In AWS, an efficient tagging strategy utilizes standardized tags then applies them continuously and programmatically across all the available resources. Both reactive and proactive approaches may be utilized for the sake of governing tags in the working AWS environment. When is AWS Reactive Governance needed? AWS Reactive Governance is chosen for the sake of locating resources which were not properly tagged through utilizing tools like the AWS Config Rules, custom scripts or Resource Groups Tagging API. For the sake of finding resources manually, it is possible […]

Achieve Cloud Governance using AWS Tagging practices

How to achieve Cloud Governance using AWS Tagging practices This article provides a comprehensive overview of achieving cloud governance using AWS Tags, and also highlights a few of the use cases in general. Before you start CloudySave is an all-around one-stop-shop for your organization & teams to reduce your AWS Cloud Costs by more than 55%. Cloud save team assesses your AWS infra and assists your teams in defining standard AWS tagging practices. Our goal is to provide clear visibility about the spending and usage patterns to your Engineers and Ops teams. What Does Governance Mean in IT? Governance typically […]

AWS Tags based Automation

Cloud Automation Practices using AWS Tags This article provides a detailed overview of standard automation practices using AWS Tags, also highlights few of the use-cases in general. Before you start Cloudysave team assess your AWS infra and assists your teams to define standard AWS tagging practices. Our goal is to provide clear visibility about the spending and usage patterns to your Engineers and Ops teams. Sign up Now and uncover instant savings opportunities. AWS Tagging Practices AWS offers a powerful and unique tagging feature for its resources. When referring to AWS tags, the idea is to have an ability to […]

AWS Tags for Cost Allocation

What are AWS Tags for Cost Allocation Amazon Web Services allow businesses to move their IT infrastructure to the cloud for a reduced cost. Not only this, AWS offers increased potential for businesses to scale their infrastructure as they grow. With enhanced connectivity, these cloud-based servers can be easily accessed without any hassle. Before AWS, provisioning and deploying new infrastructure and applications was costly and not that easily accessible. However, with AWS, services like Lambda, EBS, SNS, SQS, and Elastic Load Balancers, among others, are incredibly cost-effective and provide businesses with redundancy and reliable functionality in their applications. Depending on […]

Common Tagging Strategies To Help Identify and Manage AWS Resources and Costs

Common Tagging Strategies In this article we will go over some of the most common tagging strategies to help you in identifying & managing your AWS resources & costs.   Tagging Strategies There are 4 main tagging strategies to go with:   Resource organization You can use tags for the sake of organizing your AWS resources in the AWS Management Console. It’s possible to configure tags for displaying them with resources, then start searching and filtering by tag. Using the AWS Resource Groups service, you will get the chance to start creating groups of AWS resources according to 1 or […]

AWS Tagging Best Practices

AWS Tagging Best Practices In this article, you can discover some of the AWS Tagging Best Practices you can try for ensuring an organized and safe AWS environment. Metadata can be assigned to AWS resources as tags. Every tag reflects a label having a user-defined key and a value of its own. They aid in managing, identifying, organizing, searching, as well as filtering AWS resources. It is possible to create tags for the sake of categorizing resources according to their purpose, the owner, their context or other differing criteria. Keep in mind It is of great importance for you to […]

Category Hierarchy and Tabs Layout

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Id eu nisl nunc mi. Sed nisi lacus sed viverra tellus in hac habitasse platea. Quam elementum pulvinar etiam non quam lacus suspendisse faucibus. Eleifend donec pretium vulputate sapien nec.
Subscribe To


Get The Latest Product Updates, Company News,
And Special Offers Delivered Right To Your Inbox.


Posted March 22, 2023