This forum provides solutions for aws developers for their issues.It provides solutions for aws elastic ip, ec2 instance, public ip,route53 pricing, load balancers in aws,Orchestration, ebs,, lambda, installing mongodb on ubuntu etc.

Sunday, 12 November 2017

Installing Nodejs on CentOS/Redhat Linux

Follow these steps to install nodejs on Centos.  yum install -y gcc-c++ make   sudo yum install -y gcc-c++ make   curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash -   yum install -y gcc-c++ make   sudo yum install -y gcc-c++ make   yum install nodejs   sudo yum install nodejs   node -v    v6.12.0[centos@ip-174-35-28-152 ~]$ ...

Thursday, 28 September 2017

Amazon Virtual Private Network (VPC) in short

Amazon Virtual Network Cloud (VPC) enables enables you to build a secure virtual network in the amazon cloud. For creating VPC, no hardware or physical data centres required. You can define your own network space and control how your network and EC2 resources inside your network are exposed to...

Saturday, 26 August 2017

Error executing 'up': Cloudformation failure waiting for 'CREATE_COMPLETE'. State is 'ROLLBACK_COMPLETE'

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #454545} span.s1 {text-decoration: underline ; color: #e4af09} ecs-cli up --keypair mycredentials --capability-iam --size 5 --azs us-east-1a,us-east-1b --instance-type m4.large got this issue. Failure event  reason="Parameter validation failed: parameter value mycredentials for parameter name KeyName...

Wednesday, 23 August 2017

S3 bucket - repository/tag: invalid reference format.

I am unable to backup docker volume to S3. Trying to run the docker command.  docker run -d --name 945e1345eed616bbd2a5dd920df2d -e BACKUP_INTERVAL=1m \ S3_BUCKET=33222a9e09 -e AWS_ACCESS_KEY_ID=DFHFHGJHS2KIADCGGD7IBVZQ -e AWS_SECRET_ACCESS_KEY=mbfdbd6kvUgpPlH/7H5/jfJRJnaX1RTJBDF docker: Error parsing reference: " S3_BUCKET=33222a9e09" is not a valid repository/tag: invalid reference format. docker:...

Monday, 21 August 2017

Cloud Watch Alarms- policy issue

Your Auto Scaling policy ScaleOutPolicy could not be found at this time. Please try reselecting this alarm. If the policy does not exist you may modify this alarm to set up a valid actio...

Sunday, 20 August 2017

AWS S3 Tutorial

Amazon Simple Storage Service is also known as Amazon S3. It is highly scalable object storage in the cloud securely. It is used to store any amount of data. MultiPart form uploading to AWS S3 is Object Storage with a simple web service interface to store and retrive any amount of data from anywhere on the web. What is multi part upload ? 1. Initiate the Multi part Upload 2. Seperate the object...

Saturday, 19 August 2017

Aws Security Groups

The very first thing to ensure that the unwanted or unauthorized traffic doesn't get in into the instances using Security Group. What is a Security Group? It is a AWS firewall solution which filters the incoming and outgoing traffic from an instance. Filtering is done based upon the ip protocols,ports...

Thursday, 17 August 2017

aws instance types

General Purpose (T2, M3, M4 class): These provides overall balance of Ram, CPU and provide burstable performance. IOP starts from 100 and upto 3000. Compute Optimized (C3 and C4 class): It is meant for hude traffic. Storage Optimized(I3  and D2 class): It is for large datawarehouse. Memory Optimized(X1, R3 and R4 class): It is for Memcached and enterprise apps. Accelerated Computing(P2,...

Wednesday, 16 August 2017

Unabme to run docker without sudo

I am unable to run docker without sudo. Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.25/containers/json: dial unix /var/run/docker.sock: connect: permission denied I added docker to user group sudo usermod -aG docker $USER Still i am unable to run without sudo...

Sunday, 13 August 2017

docker Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?). Using system default: https://index.docker.io/v1/ p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures} Cannot connect to the Docker daemon at unix:///var/run/docker.sock....

Monday, 7 August 2017

Jupyterhub is not running on ubuntu 16.04

$ jupyterhub /home/ubuntu/jupyterhub_config.py:6: UserWarning: IPython.utils.localinterfaces has moved to jupyter_client.localinterfaces   from IPython.utils.localinterfaces import public_ips [I 2017-08-07 18:36:18.545 JupyterHub app:724] Loading cookie_secret from /home/ubuntu/jupyterhub_cookie_secret [W 2017-08-07 18:36:18.576 JupyterHub app:365]      Generating CONFIGPROXY_AUTH_TOKEN....

Install NodeJS on Ubuntu 16.04

1.  sudo apt-get update 2.  sudo apt-get install nodejs p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures} 3.  sudo apt-get install npm  sudo apt-get install nodejs Reading package lists... Done Building dependency tree        Reading state information... Done The following...

no space left on device docker

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures} failed to register layer: Error processing tar file(exit status 1): write /opt/conda/lib/python3.5/site-packages/sympy/core/tests/test_args.py: no space left on devic...

install docker-engine issue

sudo apt install docker-engine Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following...

The program 'docker' is currently not installed.

docker -v The program 'docker' is currently not installed. You can install it by typing: sudo apt install docker.io (my_env) ubuntu@ip-192-31-19-128:/tmp$ sudo apt install docker.io Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   bridge-utils cgroupfs-mount containerd...

conda install traitlets tornado jinja2 sqlalchemy  p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures} conda: command not foun...

Permission error- Unable to ssh into Amazon EC2 instance

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo} span.s1 {font-variant-ligatures: no-common-ligatures} ssh -i ec2-instance-cert.pem root@publicip or public dns @@@@@@@@@@@@@@@@@@@@@@@@######@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ### WARNING: UNPROTECTED PRIVATE KEY FILE! ### @ @@@@@@@@@@@@@@@@@@@@@@@@######@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for 'test.pem' are...

Sunday, 6 August 2017

Mongoose

It is an object modeling tool for nodejs that connects MongoDB.Mongoose take the models and maps them to MongoDB database. install required dependencies npm install mongoose var mongoose = require('mongoose'); /*without callback */ mongoose.connect('localhost','mydatabase'); /* with callback */ create a connection object and bind two callabcks. var db = mongoose.connection; db.on('open',function...

Elastic Load Balancing

Elastic Load Balancing automatically distributes the incoming application traffic across multiple was ec2 instances. Two types of load balancers : Application Load Balancer Classic Load Balancer Elastic Load Balancing : It is in-region load balancing service and distributed traffic  across multiple...

Saturday, 5 August 2017

Creating Database MongoDB

MongoDB is document based database. Creating Database NodeJS - MongoDB Once mongoDB is up and running, var mongoDB =  require('mongodb'); var mydbserver =  new mongodb.server('localhost', 27017, {auto_reconnect:true}); /* new mongodb.Db() creates a new database */ /* w:1 sets the write concern */ var database =  new mongodb.Db('eCommerceDb',mydbserver, {w:1}); Collections...

Tuesday, 1 August 2017

Installing MongoDB

Mac Installation : The easy way to install MongoDB is by using package manager like Homebrew  or MacPorts. $ sudo brew install mongodb or  $ sudo port install mongodb Setup the data directory $ sudo mkdir -p /data/db setup appropriate permissions $ sudo chown 'id -u' /data/db Ubuntu Installation : To authenticate apt-get package,...

Monday, 31 July 2017

Features of MongoDB

One of the  main reasons  to use NOSQL database is built in sharing capabilities. Sharing allows to distribute single database across cluster of machines. It means, distribute the load rather than purchasing the large server.  Sharing also help in server handling big data. The data stored in database is increasing exponentially.  Some databases are very large for each server....

Friday, 28 July 2017

What is Amazon ElasticCache ?

Many applications getting popular which is great, but when it comes to performance under heavy load, it is very bad. At the peak times, users are just giving up. How we can solve this issue without re-engineering the application? Amazon ElasticCache will solve the problem. It improves the performance of web applications by allowing the retrive the information fast, in-memory caches instead of relying...

Install Nodejs on Ubuntu 16.04

Node.js is a platform built on chrome's Javascript runtime for easily bulding fast and scalabale apps. It uses an event driven, non blocking I/O model that makes it light weight and efficient for data intensive apps that run across distributed devices. first update api package $sudo apt-get update Using apt package manager, then $sudo apt-get install nodejs Install npm package $sudo apt-get...

Sunday, 23 July 2017

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

sudo dockerd \       --storage-opt dm.datadev=/dev/sda1 \       --storage-opt dm.metadatadev=/dev/sdf INFO[0000] libcontainerd: previous instance of containerd still alive (1271) INFO[0000] [graphdriver] using prior storage driver: aufs Error starting daemon: error while opening volume store metadata database: timeout $ systemctl daemon-reload$ sudo service docker...

Docker Machine

It is a tool thats lets you install Docker Engine on virtual hosts. It creates servers, installs docker and then configures the docker client to take to them. Linux : ubuntu@ip-192.33.33.22:~$ docker-machine ls docker-machine: command not found Install docker machine $ curl -L https://github.com/docker/machine/releases/download/v0.12.1/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine...

Saturday, 15 July 2017

Install AWS Cli

Installing AWS Cli on Mac Installing with Homebrew is easy. It is a popular package manager for MAC OSX. To install Homebrew,  Check , ruby is installed in your mac , ruby -v Install homebrew  Once homebrew installed, install python. To install Python, Gcc to be installed. you need xcode or commandline tools to be installed you can download and install xcode...

Labels

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts