Thursday, April 8, 2021

DynamoDB Streams

A DynamoDB stream is an ordered flow of information about changes to items in a DynamoDB table.
 
When you enable a stream on a table, DynamoDB captures information about every modification to data items in the table.
 
Whenever an application creates, updates, or deletes items in the table, DynamoDB Streams writes a stream record with the primary key attributes of the items that were modified. A stream record contains information about a data modification to a single item in a DynamoDB table. 

AWS Step function

  • Serverless function orchestrator
  • Series of checkpoints & Event driven workflow that maintatin the application state
  • Step Functions manages sequencing, error handling, retry logic, and state, removing a significant operational burden from your team.

 

As your applications execute, Step Functions maintains application state,

 

tracking exactly which workflow step your application is in, and stores an event log of data that is passed between application components.

That means that if networks fail or components hang, your application can pick up right where it left off.

 

Workflow as state machine

 

Create using Amazon state language

 

you can run a serverless workflow on a time-based schedule.

 

Amazon CloudWatch Events provides a near real-time stream of system events that describe the changes and notifications for your AWS resources.

From this stream, you can create rules to route specific events to AWS Step Functions and invoke a state machine to perform further processing.

AWS Step Functions allows you to coordinate multiple services into serverless workflows so you can build and update automated processes quickly.

Wednesday, March 3, 2021

403 Forbidden static web hosting on AWS S3

I encounterd an error while making the bucket for static webhosting on AWS S3. Made the below update in the policy and it worked fine. Done on the aws console.
Thanks to stack overflow ;)
{
  "Version":"2012-10-17",
  "Statement":[{
    "Sid":"PublicReadGetObject",
    "Effect":"Allow",
    "Principal": "*",
    "Action":["s3:GetObject"],
    "Resource":["arn:aws:s3:::example.com/*"]
  }]
}

Substitute the bucket name example.com with your bucket name
 

 Recommended Reading

S3 CreateBucket Error: unspecified location constraint is incompatible for the region specific endpoint

If you ever encounterd below error while creating bucket?
 

An error occurred (IllegalLocationConstraintException) when calling the CreateBucket operation: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.

 

I got this error when trying to run this command in the AWS CLI and the region specifiied is us-east-2

 

aws s3api create-bucket --bucket yourbucketname --region us-east-2
 
Solution:
 
You need to specify the location constaint for every region except us-east-1. so I have tried the below command and it worked. Here I specified the location constraint.
 
aws s3api create-bucket --bucket yourbucketname --region us-east-2 --create-bucket-configuration LocationConstraint=us-east-2
 
This worked!

Tuesday, November 10, 2020

House painting guide - Dream Home Kerala

 Process Of Painting



Once completed the plastering and dried well we can start the house painting process. In the current process followed by the painting workers in kerala, they follows the steps as out lined below.


  • Apply One Coat White Cement
  • Apply two coat putty
  • Apply one coat primer
  • Apply two coat emulsion


Saturday, March 14, 2020

How to improve your effective communication? 5 Tips to follow.

image credit: flickr@Kevin Dooley

It become a primary and mandatory skill for all the job seekers to communicate effectively in the interviews. Earlier times hard-skills such as software programming, graphic designing, plumbing, construction there are lot to name, was enough to land your dream job.

Now in the age of Artificial intelligence and machine learning it is not enough to secure your perfect job, This is primarily because the job situation changed a lot. Now any one can be a software programmer or graphic designer because there are lot of online tools available to achieve those jobs easily. But the communication still demands. how you getting the requirements from the people or stake holders and transforming them to solution is still need effective communication skills.

Many people coming from the non English speaking place to gulf but they are not able to land that dream job only because they are lacking the effective communication. Even though they have good education background degrees and years of experience in their field they still not having the good communication because they focusing more on the hard-skill and not giving enough importance to improve that.

Now we understood how important to have a better communication skills. Now see how can we improve ourselves.

#4 Be an active listener

Candidates should practice active listening. When you focusing only on the speaking, it is some times appear like you are not answering for the proper question asked by the interviewer. Also it will be challenging when the interviewer is a native speaker and you are not able to understand his or her pronunciation.

Monday, September 2, 2019