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.

Saturday 1 July 2017

Route53 - ChangeResourceRecordSet - Update issue


 params = {
                                "HostedZoneId": '/hostedzone/hotedzone id', // our Id from the first call
                                "ChangeBatch": {
                                  "Changes": [
                                    {
                                      "Action": "UPDATE",
                                      "ResourceRecordSet": {
                                        "Name": test.example.com ,
                                       "Type": "CNAME",
                                        "TTL": 86400,
                                        "ResourceRecords": [
                                          {
                                            "Value":  52.145.32.32
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                }
                              };
                           }

Invalid Input

Error: Invalid XML ; cvc-enumeration-valid: Value 'UPDATE' is not facet-valid with respect to enumeration '[CREATE, DELETE, UPSERT]'. It must be a value from the enumeration. at Request.extractError


Solution : Use Action as "UPSERT" instead of "UPDATE"


 params = {
                                "HostedZoneId": '/hostedzone/hotedzone id', // our Id from the first call
                                "ChangeBatch": {
                                  "Changes": [
                                    {
                                      "Action": "UPSERT",
                                      "ResourceRecordSet": {
                                        "Name": test.example.com ,
                                       "Type": "CNAME",
                                        "TTL": 86400,
                                        "ResourceRecords": [
                                          {
                                            "Value":  52.145.32.32
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                }
                              };
                           }

Access Denied - Route53 - AWS - Create IAM policy

Error: User: arn:aws:iam::502616337927:user/example is not authorized to perform: route53:ChangeResourceRecordSets on resource: arn:aws:route53:::hostedzone/W3MS19SVPW6HSSFGDHFGSHDF at Request.ext

To create a dns record, you need an IAM policy attached to the IAM user.

Create  IAM Policy



{
   "Version": "2012-10-17",
   "Statement": [
      {
         "Sid" : "AllowPublicHostedZonePermissions",
         "Effect": "Allow",
         "Action": [
            "route53:CreateHostedZone",
            "route53:UpdateHostedZoneComment",
            "route53:GetHostedZone",
            "route53:ListHostedZones",
             "route53:GetHostedZoneCount",
            "route53:ListHostedZonesByName"
            "route53:DeleteHostedZone",
            "route53:ListResourceRecordSets",
            "route53:ChangeResourceRecordSets"
         ],
         "Resource": "*"
      },
      {
       "Sid" : "AllowHealthCheckPermissions",
         "Effect": "Allow",
         "Action": [
            "route53:CreateHealthCheck",
            "route53:UpdateHealthCheck",
            "route53:GetHealthCheck",
            "route53:DeleteHealthCheck",
            "route53:ListHealthChecks",
            "route53:GetCheckerIpRanges",
            "route53:GetHealthCheckStatus",
            "route53:GetHealthCheckCount",
            "route53:GetHealthCheckLastFailureReason"
         ],
         "Resource": "*"
      }
   ]
}



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.


Labels

Online Training

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

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts