AWS Compute Services

Home » AWS Cheat Sheets » AWS Compute Services

Logging Using awslogs Log Driver in Amazon ECS

2023-05-02T05:18:52+00:00

Monitoring and logging can be as important as developing and deploying applications. Imagine managing an enterprise-level distributed application that runs on hundreds of containers. You must place your containers cleverly on instances to achieve a certain level of resilience and performance. On top of that, you would want to have visibility into CPU and memory usage so you’ll have an idea which task/tasks are resource-hungry at a given time. You may also want to check the disk space of your instance and see if you still have enough storage for your application. Fortunately, monitoring distributed applications hosted in AWS has [...]

Logging Using awslogs Log Driver in Amazon ECS2023-05-02T05:18:52+00:00

AWS Savings Plan

2023-05-02T05:22:55+00:00

AWS Savings Plan Cheat Sheet Savings Plan is a flexible pricing model that helps you save up cost on Amazon EC2, AWS Fargate, and AWS Lambda usage. You can purchase Savings Plans from any account, payer or linked.  By default, the benefit provided by Savings Plans is applicable to usage across all accounts within an AWS Organization/consolidated billing family. You can also choose to restrict the benefit of Savings Plans to only the account that purchased them. Similar to Reserved Instances, you have All Upfront, Partial upfront, or No upfront payment options. Plan Types Compute Savings Plans - provide the [...]

AWS Savings Plan2023-05-02T05:22:55+00:00

ECS Network Modes Comparison

2023-06-02T03:02:15+00:00

Amazon Elastic Container Service (ECS) allows you to run Docker-based containers on the cloud. Amazon ECS has two launch types for operation: EC2 and Fargate. The EC2 launch type provides EC2 instances as hosts for your Docker containers. For the Fargate launch type, AWS manages the underlying hosts so you can focus on managing your containers instead. The details and configuration on how you want to run your containers are defined on the ECS Task Definition which includes options on networking mode.  In this post, we’ll talk about the different networking modes supported by Amazon ECS and determine which mode [...]

ECS Network Modes Comparison2023-06-02T03:02:15+00:00

Configuring Notifications for Amazon EC2 Auto Scaling Lifecycle Hooks

2023-06-03T05:15:48+00:00

Auto Scaling Lifecycle Hooks In the previous post, we talked about Auto Scaling Lifecycle Hooks and how to configure it on your Auto Scaling group. You can view the article here. It’s better to read it first before proceeding with this section. In a nutshell, Auto Scaling Lifecycle Hooks allow you to put an instance in the “wait” state while the Auto Scaling group responds to a scale-out or scale-in event. While the instance is in the “wait” state, you perform actions such as installing the application before allowing traffic to the instance or sending out the application logs to [...]

Configuring Notifications for Amazon EC2 Auto Scaling Lifecycle Hooks2023-06-03T05:15:48+00:00

Step Scaling vs Simple Scaling Policies vs Target Tracking Policies in Amazon EC2

2023-06-23T05:27:39+00:00

Bookmarks Simple Scaling  Target Tracking Step Scaling  Creating a Step Scaling Policy for an Auto Scaling Group Amazon’s EC2 Auto Scaling provides an effective way to ensure that your infrastructure is able to dynamically respond to changing user demands. For example, to accommodate a sudden traffic increase on your web application, you can set your Auto Scaling group to automatically add more instances. And when traffic is low, have it automatically reduce the number of instances. This is a cost-effective solution since it only provisions EC2 instances when you need them. EC2 Auto [...]

Step Scaling vs Simple Scaling Policies vs Target Tracking Policies in Amazon EC22023-06-23T05:27:39+00:00

Amazon EC2 Auto Scaling Lifecycle Hooks

2023-06-05T02:08:11+00:00

Bookmarks Auto Scaling Lifecycle Hooks Configure Lifecycle Hooks on your Auto Scaling Groups Amazon EC2 Auto Scaling allows you to scale-out or scale-in your EC2 instances automatically based on policies you configured in response to changing demand on your application. Auto Scaling Groups lets you set a minimum and maximum number of EC2 instances to automatically resize your cluster based on a defined schedule or instance metrics such as CPU utilization, network traffic, etc. This is an excellent way to cut costs and make sure you have the correct number of instances since traffic on [...]

Amazon EC2 Auto Scaling Lifecycle Hooks2023-06-05T02:08:11+00:00

AWS Fargate

2024-01-18T06:54:50+00:00

Bookmarks How It Works Use Case Network Compliance Pricing AWS Fargate Cheat Sheet A serverless compute engine for containers that works with both Amazon Elastic Container Service (ECS) and Amazon Elastic Kubernetes Service (EKS). With Fargate, no manual provisioning, patching, cluster capacity management, or any infrastructure management required.   How It Works Use Case Launching containers without having to provision or manage EC2 instances. If you want a managed service for container cluster management. Configurations Amazon ECS task definitions for Fargate require that you specify CPU and memory at the task level [...]

AWS Fargate2024-01-18T06:54:50+00:00

Amazon Lightsail

2023-06-23T05:36:43+00:00

Bookmarks Features Pricing Limits Amazon Lightsail Cheat Sheet A cloud-based virtual private server (VPS) solution. Lightsail includes everything you need for your websites and web applications – a virtual machine (choose either Linux or Windows OS), SSD-based storage, data transfer, DNS management, and a static IP address. Features Lightsail Instances and Volumes Lightsail offers virtual servers (instances) where you can launch your website, web application, or project. Manage your instances from the Lightsail console or API. You can choose from a variety of hardware configurations to suit your workload. See pricing section below for [...]

Amazon Lightsail2023-06-23T05:36:43+00:00

AWS ParallelCluster

2023-06-23T05:47:13+00:00

Bookmarks How It Works Networking Storage Pricing Limitations AWS ParallelCluster Cheat Sheet An AWS-supported open source cluster management tool for deploying and managing High Performance Computing (HPC) clusters on AWS. ParallelCluster uses a simple text file to model and provision all the resources needed for your HPC applications in an automated and secure manner. AWS ParallelCluster provisions a master instance for build and control, a cluster of compute instances, a shared filesystem, and a batch scheduler. You can also extend and customize your use cases using custom pre-install and post-install bootstrap actions. [...]

AWS ParallelCluster2023-06-23T05:47:13+00:00

Elastic Fabric Adapter (EFA)

2023-06-23T05:53:26+00:00

Bookmarks Limitations Pricing Elastic Fabric Adapter (EFA) Cheat Sheet An Elastic Fabric Adapter (EFA) is a network device that you can attach to your Amazon EC2 instance to accelerate High Performance Computing (HPC) and machine learning applications. An EFA is an Elastic Network Adapter (ENA) with an additional OS-bypass functionality.  How It Works EFA integrates with  Libfabric 1.9.0 and it supports Open MPI 4.0.2 and Intel MPI 2019 Update 6 for HPC applications, and  Nvidia Collective Communications Library (NCCL) for machine learning applications. With an EFA, HPC applications use Intel Message Passing Interface (MPI) or [...]

Elastic Fabric Adapter (EFA)2023-06-23T05:53:26+00:00

AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!

Follow us on LinkedIn, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!