Skip to main content

Posts

AWS Certification Exam Tips for AWS Lambda

  AWS Lambda A serverless compute service. Lambda executes your code only when needed and scales automatically. Lambda functions are stateless – no affinity to the underlying infrastructure. You choose the amount of memory you want to allocate to your functions and AWS Lambda allocates proportional CPU power, network bandwidth, and disk I/O. AWS Lambda is SOC, HIPAA, PCI, ISO compliant. Supports the following languages: Node.js Java C# Go Python Components of a Lambda Application Function – a script or program that runs in Lambda. Lambda passes invocation events to your function. The function processes an event and returns a response. Runtimes – Lambda runtimes allow functions in different languages to run in the same base execution environment. The runtime sits in-between the Lambda service and your function code, relaying invocation events, context information, and responses between the two. Layers – Lambda layers are a distribution mechanism for l...

Upgrade MySQL 5.1 to MySQL 5.7 on CentOS

Upgrading MySQL is pretty straight forward, however there are some catches. Per MySQL’s official documentation, you must upgrade from 5.1 to 5.5, then upgrade from 5.5 to 5.6, and finally again from 5.6 to 5.7. You cannot upgrade from 5.1 directly to 5.7. This guide will outline how to upgrade MySQL 5.1 to MySQL 5.7 in sequence and will assume you are using the IUS repositories for MySQL. If the IUS repositories are not already setup, you can install them by: CentOS 6 # yum install epel-release # rpm -ivh https://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-15.ius.centos6.noarch.rpm # CentOS 7 # yum install epel-release # rpm -ivh https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/ius-release-1.0-15.ius.centos7.noarch.rpm Upgrade from MySQL 5.1 to MySQL 5.5 Create a restore point. This will be backing up the databases, the my.cnf, as well as a user and database listing. This can be done by: # mysql -S mysqldump # mkdir -p /root/mysqlupg...

Working with multiple versions of PHP 7.3, 7.2, 7.1, 7.0 & 5.6 on Ubuntu

  Sometimes PHP developers need to work on multiple versions of PHP for different projects and one might think of using a docker installation, which is a better idea of what we are going to do below, but Docker can be complicated for many reasons and one might not be ready to get started with Docker. In the below article, I will be explaining how one can work with multiple PHP version on Ubuntu. I am using ubuntu 18.10 and the below article for me without any issues. Install PHP (5.6, 7.0, 7.1, 7.2 and 7.3) on Ubuntu Using PPA 1.   Adding  Ondřej PPA  to install different versions of PHP –  PHP 5.6 ,  PHP 7.0,   PHP 7.1, PHP 7.2  and  PHP 7.3  on the system. sudo apt-get install software-properties-common ## sudo apt install python-software-properties sudo add-apt-repository ppa:ondrej/php 2.    Update the system Make sure you have the  sudo  privileges to do so. sudo apt-get update ...

Discount (up to 75%) On Amazon EC2 Reserved Instances (RI) compared to On-Demand Instances pricing.

Amazon EC2 Reserved Instances (RI) provide a significant discount (up to 75%) compared to On-Demand pricing and provide a capacity reservation when used in a specific Availability Zone.   Why Should I Use RIs? Save Money and Maintain Flexibility RIs provide you with a significant discount (up to 75%) compared to On-Demand instance pricing. You have the flexibility to change families, OS types, and tenancies while benefitting from RI pricing when you use Convertible RIs. Reserve Capacity RIs can provide a capacity reservation, offering additional confidence in your ability to launch the number of instances you have reserved when you need them. How do RIs Work? EC2 RIs provide a discounted hourly rate and an optional capacity reservation for EC2 instances. AWS Billing automatically applies your RI’s discounted rate when attributes of EC2 instance usage match attributes of an active RI. If an Availability Zone is specified, EC2 reserves capaci...