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.

Friday 30 June 2017

535 Authentication Credentials Invalid

Email ErrorError: Invalid login: 535 Authentication Credentials Invalid


Solution : Your email sending app does not provide correct SMTP credentials to Amazon SES. Provide the correct credentials.
Please check you app sending correct credentials.


Once your authentication success, you will get  - 235  for Authentication successful
                                                                     - 250  for Successful delivery
                                                                     - 454  for daily sending quota exceeded.
                                                                     -454  for maximum sending rate exceeded.
                                                                     -454 for problem in receiving the request or                                                                                validating SMTP credentials.



What are microservices ?

Microservices are an Architectural style in which large and complex applications are composed into one or more smaller services.

I will explain you with online store.
It has a product catalague, shopping cart to buy stuff,My orders to track the status of the order,
Product Serch function and Special Promo.


Traditional Architecture:
Traditional Architecture builts these features into single application, single database.Adding new features into these becomes tightly coupled dependencies.
The application is manage with the single package.

Microservices Architecture :

Microservices Architecture, each feature is built in isolation, independent of the all the other features.
HTTP REST or Message Bus is used to communicate with each other asynchrously.

Why would i need Microservices ?

Traditional Architecture creates large monolithic packages that can be challenging to deploy.
Configuration is can be hard to manage.
Deployments will be difficult.


Microservices are small. Packaged and deploy independent of each other, that makes configuration easier to manage.
Multiple times can be deploy easily.







Monday 26 June 2017

Block Storage vs Object Storage

What is the difference between block storage and object storage in aws?

Block Storage :

Block storage block level operations are possible. Hence one block is changed that contains the changed data.

Example : AWS EBS storage

Object Storage :

Entire file must be removed and new file need to put there

Example : AWS S3 storage

Saturday 24 June 2017

AWS Elastic Beanstalk

Elastic Beanstalk is managing layer for AWS services like EC2, RDS, Elastic Load Balancing. It removes the requirement for manually launching the AWS resources that are required to run the apps. Instead of doing manual, you can upload your app, Elastic Beanstalk handles provisioning, load balancing and app health monitoring etc.

You can configure the resources by programatically using AWS Api.

Elastic Beanstalk provides the ability to deploy and manage the containerized apps.

Amazon ECS


It is highly scalable and  highly performance container service that makes easy to run,stop and manage Docker containers on a cluster of EC2 instances.
The Docker containers that you currently use, will run eactly the same on Amazon ECS.
Aws ECS eliminates the need to install, operates and scale your cluster infra.
ECS enables you to grow from single container to thousands of containers across hundreds of instances without any struggle.
ECS supports Docker and enables to run docker containers across cluster aws ec2 instances. With ECS, you need to launch a cluster of container services and specify the tasks you want to run.

Monitor the containers with centralized service.

ECS responsibilities:
·         Docker daemon management
·         Deployment through task definitions
·         Srvices and ELB integration

The only thing you need to manage is container instances by yourself.

Amazon EC2 Container Registry :
It is fully managed Docker container registry.
IAM users and roles
Encrypted In transit.
Available in multiple regions.


Wednesday 21 June 2017

What is Amazon EBS


  • It is like a virtual hard drive you can use with ec2 instances.
  • It is a service!
  • Amazon EBS is a block storage system that is used for storing persistence data.
  • Aws provides highly available block storage to use storage with ec2 instances.
  • Ec2 instances have local storage that stores as long as instance running. If you shutdown the system, you loose local storage data. If you want to save the data, you need to use elastic block storage.
  • It is an independent of EC2.



  • It persists independently and you can attach it to your ec2 instances when needed, once attached , you can use it as any physical hard drive.

  • When you use EBS with EC2 to store data, if ec2 instance fails, you don't have to worry about loosing the data because, it is housed on block storage volume.

  • EBS volumes can  be between 1GB to 1 TB in size.
  • EBS created in a particular availabilility zone, or AZ.
Wen you create an Amazon EBS volume in an AZ, it is automatically replicated within that zone to prevent data loss due to failure of any single hardware component.

EBS can be attached one instance at a time, but many volumes can be attached to single instance at a time.

EBS Volume Types :
  • Magnetic
  • General Purpose (SSD)
  • Provisioned IOPS(SSD)






Tuesday 20 June 2017

Elastic IP's are free or Charged - AWS

Elastic IP address are static IPv4 address designed for dynamic cloud computing. Aws provides elastic ip's for free.
Elastic IP's are Free when attached to running instances. Once the elastic ip is assigned, if the instance is other than running state, it will be treated as unassociated elastic ip and will get charged.

Stopped instances elastic ip's also getting charged by aws.
So be carefull about the Elastic Ip's.




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;

}

Labels

Online Training

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

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts