Setting up MySQL server on aws EC2 instance

Launch an EC2 instance of type Amazon Linux AMI from your aws console. SSH into your ec2 instance ssh -i ec2-user@my_ec2_ip_address Update the instance sudo yum update -y Install the mysqld server sudo yum install -y mysql55-server start the mysqld instance sudo service mysqld start the following command ensure launches mysqld on server restart sudo […]

Read more
Setting git on aws EC2 instance

Launch an EC2 instance of type Amazon Linux AMI from your aws console. SSH into your ec2 instance ssh -i ec2-user@my_ec2_ip_address Update the instance sudo yum update -y install developer tools sudo yum groupinstall -y “Development Tools” install git sudo yum install git checkout the source code git clone https://my.git.repo.git cd my_local_git_folder git checkout -f […]

Read more
Installing node.js on amazon EC2 instance

Launch an EC2 instance of type Amazon Linux AMI from your aws console. SSH into your ec2 instance ssh -i ec2-user@my_ec2_ip_address Update the instance sudo yum update -y #install developer tools sudo yum groupinstall -y “Development Tools” Install the node using nvm as it allows you to switch between any version of the node ???? curl -o- […]

Read more
Monitoring Memory Utilisation of aws EC2 instance in CloudWatch

Connect to your EC2 instance using ssh. ssh -i ec2-user@my_ec2_ip_address Install following perl packages sudo yum install -y perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https Download the monitoring scripts curl http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.1.zip -O Install the monitoring scripts unzip CloudWatchMonitoringScripts-1.2.1.zip rm CloudWatchMonitoringScripts-1.2.1.zip cd aws-scripts-mon run the following command to check the memory utilisation. ./mon-get-instance-stats.pl –recent-hours=12 In order to push this […]

Read more
AWS S3 permissions

A quick tip on aws S3 permissions to a specific folder in a bucket. { “Version”: “2012-10-17”, “Statement”: [{ “Effect”: “Allow”, “Action”: [ “s3:Put*”, “s3:Get*”, “s3:List*” ], “Resource”: [ “arn:aws:s3:::nameofmybucket/profile/*” ] }] } Try to avoid bucket root level permission as much as possible. Also, try to use cognito if the client wants to directly […]

Read more
AWS Services

Amazon Web Services is widely used IaaS platform. AWS offer approx 55 services and mastering each services is very difficult. Some services is made for Network engineers, some for developers, and some for both. But we can have a brief look here about each services and what they are for. Let’s have AWS Services Overview […]

Read more
How to force HTTPS behind AWS ELB

How to force HTTPS behind AWS ELB In the most common configurations, when running your web app behind Nginx or Apache, your https:// request will get redirected to http://. Sometimes, you may want to rewrite all HTTP requests to HTTPS. The Amazon Elastic Load Balancer (ELB) supports a HTTP header called X-FORWARDED-PROTO. All the HTTPS […]

Read more
mount s3 bucket in linux EC2 instance

if you have not created a s3 bucket kindly go through with EC2 documentation.The documentation is very clear and easy to understand .This is the link how to create S3bucket After creating a new bucket follow the given below steps. Step 1: Download the latest s3fs package from S3fs link http://s3fs.googlecode.com/files/s3fs-1.63.tar.gz Step 2: Untar the […]

Read more
BackUp MySQL Databases using Amazon S3

Backup MySQL to Amazon S3   Yum install s3cmd -y – If you can’t install s3cmd then please follow the instructions cd /etc/yum.repos.d touch s3cmd.repo nano s3cmd.repo AND COPY THE CODE BELOW – # # Save this file to /etc/yum.repos.d on your system # and run “yum install s3cmd” # [s3tools] name=Tools for managing Amazon […]

Read more
How to Sync Files to Amazon S3 on Linux

Amazon’s Simple Storage Service (S3) has a lot to like. It’s cheap, can be used for storing a little bit of data or as much as you want, and it can be used for distributing files publicly or just storing your private data. Let’s look at how you can take advantage of Amazon S3 on […]

Read more

Hit Counter provided by dental implants orange county