Eugene Istrati

Proud Father. Lucky Husband. Open Source Contributor. DevOps | Automation | Serverless @MitocGroup. Former @AWScloud and @HearstCorp.

7 Steps to Create Serverless Environments on AWS

Oct 5, 2015 ~ 2 min read

Amazon Web Services is couple of days away from its fourth edition of AWS re:Invent. We are getting ready to fly to Las Vegas and present the breakout session A[RC201 — Microservices Architecture for Digital Platforms with AWS Lambda, Amazon CloudFront and Amazon DynamoDB.

Amazon Web Services is couple of days away from its fourth edition of AWS re:Invent. We are getting ready to fly to Las Vegas and present the breakout session ARC201 — Microservices Architecture for Digital Platforms with AWS Lambda, Amazon CloudFront and Amazon DynamoDB. Minutes away from departure, we are working out the final improvements that have been turned into short videos. Next, we'd like to share with technical teams how to create serverless environments on AWS, in 7 simple steps that would take up to 10 minutes.

First step is to create an AWS IAM role that will enable your account to make calls from AWS Lambda to Amazon DynamoDB:

Second step is to create an Amazon S3 bucket that will store the front end code and serve it securely to Amazon CloudFront:

Third step is to create Amazon CloudFront distribution that will distribute globally the front end code and other static assets:

Fourth step is to create AWS Lambda function that will provide back end code, depending on the use case:

Fifth step is to create Amazon API Gateway endpoint that will expose AWS Lambda functions externally as a RESTful API:

Sixth step is to enable CORS (Cross-Origin Resource Sharing) in Amazon API Gateway:

Seventh step, and final one, is to create Amazon DynamoDB table that will store consistently the data:

I hope these 7 simple steps will make it easier to get started with serverless environments on AWS. If you'd like to learn more, take a look at this awesome blog post published recently by AWS Lambda team: https://aws.amazon.com/blogs/compute/microservices-without-the-servers/

Eugene Istrati
Eugene Istrati
Mitoc Group