Automate the Snapshots using AWS Lambda & CloudWatch services.
Step.1 Create IAM Role with following accessibility
1. To get information of volumes and snapshots from EC2
2. To create new snapshots using the CreateSnapshot API call
In the AWS management console, go to Read more…
How to move whole wordpress site from HTTP to HTTPS in simple steps using Really Simple SSL plugin with AWS Cloudfront.
Step-1. Login to wordpress
Step.2 Click Plugins
Step-3. Download Really Simple SSL plugin Read more…
Problem: Heroku Postgres Database Fatal error too many database connections for role ‘username’
1. First install Heroku toolbelt with command
a. sudo snap install heroku –classic
2. Login from command line
a. heroku login
3. Check current database connections
a. heroku pg:info Read more…
Implementing Salesforce SOAP and Bulk API Integration in PHP
Salesforce SOAP API:
Salesforce SOAP API is a coding method to use our Org’s information with the help of inbuilt functions and SOQL query. With the help of these function, we can access or Read more…
How to resolve “Class ‘App\Controller\Aws\S3\S3Client’ not found” error in CakePHP 3.*
Problem: Class ‘App\Controller\Aws\S3\S3Client’ not found error occurs when we are trying to create S3Client class object with given code (code copied from github):
$s3 = new Read more…
Steps to write code to send text message by Alexa through Twilio
Alexa is Amazon’s cloud-based voice service. With Alexa, masses can build natural voice experiences that offer customers a simple and easy way to interact with the latest technologies.
Alexa is not providing Read more…
Send Bulk Emails Using Amazon SES
Amazon SES- Amazon SES (Simple Email Service) is a cloud based email sending service used by developers and for marketing purposes. It is a reliable, cost-effective service for all sizes of businesses.
Here we Read more…
Creating custom log files for AWS Lambda function using Java other than using CloudWatch
For developers who are using AWS Lambda function either for executing several concurrent processes or for processing large files; monitoring logs in CloudWatch is definitely a cumbersome task for them. The reasons Read more…
“Invalid value for header \u0067x-ms-request-id\u0067. The header must contain a single valid GUID”
I was facing the issue “Invalid value for header \u0067x-ms-request-id\u0067. The header must contain Read more…
Access S3 buckets from EC2 instances
We’ll follow few steps to access S3 bucket from EC2 instance with the help of ROLE that grants access to the bucket. For this we’ll use IAM to create the role.
Quick steps below:
a) Create the Role Read more…
Sending email with or without Attachment using Amazon SES service
First download the aws library using the this link:
http://docs.aws.amazon.com/aws-sdk-php/v3/download/aws.zip link and save it in project.
Now the usage of Read more…
AWS and Azure’s Disaster Recovery Comparison
Disaster recovery policies and tools have always been a crucial aspect of business continuity, but technological advancements, particularly the maturity of cloud computing services, have altered the market for disaster recovery solutions.
Traditionally, implementing a full-featured disaster recovery Read more…
How to Use AWS Lambda function in Java to communicate with AWS S3?
Reading, writing and uploading a text file to S3 using AWS Lambda function in Java
Following are the steps to write a sample Lambda function in Java to work with the files that Read more…
To implement RabbitMQ in our project we need to write the code for producer and consumer.
What is Producer?
Producer produces the messages and sends it to exchange. Exchange receives the messages and routes it to the corresponding queue.
What is Consumer?
Consumer consumes the messages from queue and processes Read more…
If you want to improve utilization of your Amazon EC2 machine instances by stopping and starting instances at specific time intervals then you have to use a CloudWatch Event to trigger a Lambda function to start and stop your EC2 instances at scheduled intervals. Cloud watch is used to schedule Read more…
Steps to auto generate AWS S3 Policy that you can use to provide access rights according to requirement:
→ Open S3 from AWS console:
1. Click on AWS bucket
2. Now, click properties
3. Click on Add bucket policy:
4. Now, Click on AWS Policy Generator:
Else use the Read more…
To download attachments from Zoho CRM from a module, like Contacts, fetch detail of all the attachments related to that module, then download each attachment by its attachment id using download file API in Zoho and finally convert blob to the image file.
For Examle: Download attachment from Read more…
How to set up a CloudFront for S3 bucket containing images for the website, using the same domain name that is already placed behind CloudFront.
1. Open CloudFront from a menu:
2. Click Create Origin:
3. Now, click in box and select the s3 bucket URL from this list. Click Read more…
Purpose is to automate most of recurring processes like creating user, installing application (apache, apache-tomcat, mysql-server …etc), and modifying security file to hardening Linux machines in AWS environment.
1. Click AWS OpsWorks option from AWS console panel:
2. Now click on Add Stack to create a new Stack Read more…
AWS WAF web application firewall service is built to protect cloud apps from web attacks like DDoS attacks, SQL injections, Cross site scripting.
Below are the steps involved in configure AWS WAF security:
Step.1 Open CloudFormation and click on create new Stack.
Step.2 Select the option (Specify an Read more…