17 APRIL 2018
Discover, deploy and publish serveless apps
Sotiris (Soto) Hatzis
Senior Software Developer
AWS Serverless
Application
Repository (SAR)
Announced
• re:Invent
2017
Available
• 21 FEB
2018
Presented
• AKL 17
APR
2018
What is the AWS Serverless
Application Repository?
History
18 April 2018 SERVERLESS AUCKLAND
What is the AWS Serverless
Application Repository?
web and
mobile
back-ends
event and data
processing
logging,
monitoring Internet of things
AWS Serverless Application Repository (SAR) enables you to quickly deploy
code samples, components, and complete applications together with their
resources, for common use cases such as:
18 April 2018 SERVERLESS AUCKLAND
Characteristics
• Each application is packaged with an AWS Serverless Application Model
(SAM) template that defines the AWS resources used
• There is no additional charge to use the Serverless Application Repository
- you only pay for the AWS resources used in the applications you deploy
• The applications can be either private or public
 Public Applications: 100
 Free Amazon S3 storage for code packages: 5GB
*Per AWS account / per region
18 April 2018 SERVERLESS AUCKLAND
How it works
18 April 2018 SERVERLESS AUCKLAND
Publishing an application
To make the serverless applications that you publish available to developers in other AWS Regions, publish
your applications to either
• US East (N. Virginia) (us-east-1)
• US East (Ohio) (us-east-2)
18 April 2018 SERVERLESS AUCKLAND
Publishing an application
A valid AWS account
A valid AWS Serverless Application
Model (AWS SAM)
A package for your application
A URL pointing to your
application's source code
A readme.txt file
A license.txt file
A valid Amazon S3 bucket policy
Requirements
18 April 2018 SERVERLESS AUCKLAND
Publishing an application
SAM?
What is AWS Serverless Application Model (AWS SAM)?
AWS SAM defines a standard application model for serverless applications by
providing a simplified way of defining:
• API Gateway APIs
• Lambda functions
• DynamoDB tables needed by your serverless application.
Characteristics
 AWS SAM is based on AWS CloudFormation and it is a CloudFormation
template
 Applications in the AWS Serverless Application Repository are packaged using
the AWS Serverless Application Model (SAM) format, and can be connected
with a variety of AWS products and resources.
 You can define your serverless application as a SAM template - a JSON or
YAML configuration file that describes the resources
18 April 2018 SERVERLESS AUCKLAND
Publishing an application
All property names in AWS SAM are case sensitive
AWS SAM Sample
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Resources:
MyFunction:
Type: 'AWS::Serverless::Function'
Properties:
Handler: index.handler
Runtime: nodejs6.10
CodeUri: 's3://my-bucket/function.zip'
18 April 2018 SERVERLESS AUCKLAND
Demo
Rotate Pictures component
Pictures are
stored in
Standard S3
Lambda
rotates the
picture
Bucket with
rotated
pictures
18 April 2018 SERVERLESS AUCKLAND
Latest news about SAM
• The AWS Serverless Application Model (SAM) implementation is now available under the Apache 2.0 license
(04 April 2018)
• Benefits of being open source now
 No need to wait AWS to implement new features
 Propose changes to the implementation by creating a pull request
 Define new event sources, new resource types, and new parameters within SAM
 You can modify SAM to integrate it with other frameworks
• SAM also supports CloudWatch Logs Subscription Filters. Now, you can easily enable triggers for your
Lambda function based on a Subscription Filter
Related resources
• Visit the project on GitHub to review the code & start contributing
• Join the SAM community on Slack.
18 April 2018 SERVERLESS AUCKLAND
Q&A
18 April 2018 SERVERLESS AUCKLAND
Links
Resources
• https://aws.amazon.com/serverless/serverlessrpo/
• https://docs.aws.amazon.com/serverlessrepo/latest/devguide/what-is-
serverlessrepo.html
• https://aws.amazon.com/serverless/serverlessrepo/faqs/
Demo
• https://github.com/evanchiu/serverless-galleria
• https://github.com/SotirisH/AWS-SAR-Demo
Blogs
• https://blog.symphonia.io/examining-the-aws-serverless-application-repository-
9ef316e2fd4
• https://aws.amazon.com/blogs/aws/now-available-aws-serverless-application-
repository/
18 April 2018 SERVERLESS AUCKLAND
shatzis@yahoo.com

Aws serverless application repository

  • 1.
    17 APRIL 2018 Discover,deploy and publish serveless apps Sotiris (Soto) Hatzis Senior Software Developer AWS Serverless Application Repository (SAR)
  • 2.
    Announced • re:Invent 2017 Available • 21FEB 2018 Presented • AKL 17 APR 2018 What is the AWS Serverless Application Repository? History 18 April 2018 SERVERLESS AUCKLAND
  • 3.
    What is theAWS Serverless Application Repository? web and mobile back-ends event and data processing logging, monitoring Internet of things AWS Serverless Application Repository (SAR) enables you to quickly deploy code samples, components, and complete applications together with their resources, for common use cases such as: 18 April 2018 SERVERLESS AUCKLAND
  • 4.
    Characteristics • Each applicationis packaged with an AWS Serverless Application Model (SAM) template that defines the AWS resources used • There is no additional charge to use the Serverless Application Repository - you only pay for the AWS resources used in the applications you deploy • The applications can be either private or public  Public Applications: 100  Free Amazon S3 storage for code packages: 5GB *Per AWS account / per region 18 April 2018 SERVERLESS AUCKLAND
  • 5.
    How it works 18April 2018 SERVERLESS AUCKLAND
  • 6.
    Publishing an application Tomake the serverless applications that you publish available to developers in other AWS Regions, publish your applications to either • US East (N. Virginia) (us-east-1) • US East (Ohio) (us-east-2) 18 April 2018 SERVERLESS AUCKLAND
  • 7.
    Publishing an application Avalid AWS account A valid AWS Serverless Application Model (AWS SAM) A package for your application A URL pointing to your application's source code A readme.txt file A license.txt file A valid Amazon S3 bucket policy Requirements 18 April 2018 SERVERLESS AUCKLAND
  • 8.
    Publishing an application SAM? Whatis AWS Serverless Application Model (AWS SAM)? AWS SAM defines a standard application model for serverless applications by providing a simplified way of defining: • API Gateway APIs • Lambda functions • DynamoDB tables needed by your serverless application. Characteristics  AWS SAM is based on AWS CloudFormation and it is a CloudFormation template  Applications in the AWS Serverless Application Repository are packaged using the AWS Serverless Application Model (SAM) format, and can be connected with a variety of AWS products and resources.  You can define your serverless application as a SAM template - a JSON or YAML configuration file that describes the resources 18 April 2018 SERVERLESS AUCKLAND
  • 9.
    Publishing an application Allproperty names in AWS SAM are case sensitive AWS SAM Sample AWSTemplateFormatVersion: '2010-09-09' Transform: 'AWS::Serverless-2016-10-31' Resources: MyFunction: Type: 'AWS::Serverless::Function' Properties: Handler: index.handler Runtime: nodejs6.10 CodeUri: 's3://my-bucket/function.zip' 18 April 2018 SERVERLESS AUCKLAND
  • 10.
    Demo Rotate Pictures component Picturesare stored in Standard S3 Lambda rotates the picture Bucket with rotated pictures 18 April 2018 SERVERLESS AUCKLAND
  • 11.
    Latest news aboutSAM • The AWS Serverless Application Model (SAM) implementation is now available under the Apache 2.0 license (04 April 2018) • Benefits of being open source now  No need to wait AWS to implement new features  Propose changes to the implementation by creating a pull request  Define new event sources, new resource types, and new parameters within SAM  You can modify SAM to integrate it with other frameworks • SAM also supports CloudWatch Logs Subscription Filters. Now, you can easily enable triggers for your Lambda function based on a Subscription Filter Related resources • Visit the project on GitHub to review the code & start contributing • Join the SAM community on Slack. 18 April 2018 SERVERLESS AUCKLAND
  • 12.
    Q&A 18 April 2018SERVERLESS AUCKLAND
  • 13.
    Links Resources • https://aws.amazon.com/serverless/serverlessrpo/ • https://docs.aws.amazon.com/serverlessrepo/latest/devguide/what-is- serverlessrepo.html •https://aws.amazon.com/serverless/serverlessrepo/faqs/ Demo • https://github.com/evanchiu/serverless-galleria • https://github.com/SotirisH/AWS-SAR-Demo Blogs • https://blog.symphonia.io/examining-the-aws-serverless-application-repository- 9ef316e2fd4 • https://aws.amazon.com/blogs/aws/now-available-aws-serverless-application- repository/ 18 April 2018 SERVERLESS AUCKLAND shatzis@yahoo.com

Editor's Notes

  • #3 AWS Serverless Application Repository (SAR) enables you to quickly deploy code samples, components, and complete applications for common use cases such as
  • #4 AWS Serverless Application Repository (SAR) enables you to quickly deploy code samples, components, and complete applications for common use cases such as
  • #6 https://aws.amazon.com/serverless/serverlessrepo/ sar-rotate-result
  • #8 Requirements A valid AWS account. A valid AWS Serverless Application Model (AWS SAM) template that defines the AWS resources used. A package for your application that you created using the AWS CloudFormation package command for the AWS CLI. This command packages the local artifacts (local paths) that your AWS SAM template references. A URL pointing to your application's source code, in case you want to publish your application publicly. A readme.txt file. This file should describe how customers can use your application, and how to configure it before deploying it in their own AWS accounts. A license.txt file. A valid Amazon S3 bucket policy that grants the service read permissions for artifacts uploaded to Amazon S3 when you packaged your application.