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.

Thursday 15 June 2017

Install Docker on Ubuntu 16.04 AWS, DigitalOcean Ubuntu, or any Ubuntu Version

Docker is a container platform which allows to run application processes in a container.

Check the current os version

for ubuntu
uname -a
Linux server1 4.4.0-31-generic #50-ubuntu SMP ......
Check ubuntu version
cat /etc/lsb-release
Step1:
add GPG key for offical docker repo to the ubuntu system
$curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Step2:

$sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Step3:
$sudo apt-get update
Step4:
Install Docker CE, docker daemon start automatically
$sudo apt-get install docker-ce
Installtion done. Ready to go ......

Step5:
Verify docker installed correctly or not
 $sudo docker run hello-world
Check Docker version:

$ docker version








Uninstall docker


$ sudo apt-get purge docker-ce


Wednesday 14 June 2017

Configure your server with domain name using AWS Route53

You can register domains using aws route53.


1. Open Route53 from aws console
2. Select Hosted zone
3. Create Record set with the follwoing
Name: domain name
Type : A-IPv4 address
Alias : No
TTL(Seconds) : 300
value : server ip
Routing Policy : Simple

Why Route53 ?
AWS route 53 has lot many features. We can use the aws resources to point domain names with the server and creating subdomain pointing to the server will be easier.


What is Orchestration

Cloud orchestration is arranging and coordination of automated tasks resulting in a workflow or consolidated process.
simple example,

For creating a standard process to spin up an environment to host new app, IT teams need to orchestrate the automated tasks.


IT team can use AWS cloud formation orchestrator to create a template that orchestrate the all the process into single workflow.

Tuesday 13 June 2017

What is AWS diagram and how to create?

Amazon Web Service(AWS) is a cloud computing platform , which provides a wide range including compute, storage, networking, application services, deployment, database, analytics etc.


AWS Architecture diagram provides a full set of aws icons and easy drag n drop drawing platform.
System administrators and network professionals can map the AWS infra in minutes.

AWS Diagram Software Features

1. It's a cross-platform based program which runs on Windows, Mac and Linux systems.

2. It's completely compatible with Visio and Microsoft Office.

3. It provides high-quality and standardized AWS icons.

4. It provides built-in templates to help you start quickly.

4. Easy to use, support "auto alignment and spacing", "drag and drop", "snap and glue" etc.

6. Easy to export your drawing to PNG, PDF, JPG, SVG, Visio, Word, PPT, Html, etc.

7. It supports WYSIWYG printing.

8. It supports multi-page and  large size drawing.

9. Easy to manage text blocks and add texts.

10. Supports attachments, hyperlinks and notes.

There are several tools available in the market for making aws diagrams through simple drag and drop.

cloudcraft is one of the good web based tool.

Monday 12 June 2017

Configuring comodo ssl for ec2 instance

What is CA bundle - SSL Certificate ?

CA bundle is a file which contains root certificate and intermediate certificate.
It is for domain constitues certificates chain with CA bundle.

Comodo may provide you complete CA bundle file or provide you root and intermediate certificates separately.

Comodo provides the following 3 files.

domain.cer - Domain Certificate
COMODORSADomainValidationSecureServerCA.cer  - Intermediate certificate 2
COMODORSAAddTrustCA.cer - Intermediate certificate 1
AddTrustExternalCARoot.cer - Root Cert


You must use the correct order.

cat www_example_com.crt COMODORSADomainValidationSecureServerCA.crt  COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > ssl-bundle.crt

server {
    listen 443;

    ssl on;
    ssl_certificate /etc/nginx/ssl/example_com/ssl-bundle.crt;
    ssl_certificate_key /etc/nginx/ssl/example_com/example_com.key;

}

Wednesday 31 May 2017

AWS EC2 - Install Docker on Ubuntu

These are the steps for installing docker on Ubuntu machine.  


    1  sudo apt-get update
    2  sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    3  sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
    4  sudo apt-get update
    5  apt-cache policy docker-engine
    6  sudo apt-get install -y docker-engine
    7  sudo systemctl status docker
    8  docker
   9  docker info
   10  sudo docker info
   11  docker run hello-world
   12  sudo docker run hello-world
   13  docker search ubuntu
   14  sudo docker search ubuntu
   15  history

Tuesday 30 May 2017

There is insufficient memory for the Java Runtime Environment to continue AWS Ec2

docker run --rm -p .........
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 715849728 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/zeppelin/hs_err_pid1.log
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000d5550000, 715849728, 0) failed; error='Cannot allocate memory' (errno=12)
[root@centos-1gb-sgp1-01 ~]# java -Xmx2G -Xms2G

-bash: java: command not found



solution : 
There isn't enough RAM for the Java program to run. please check your ram size


Labels

Online Training

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

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts