SlideShare a Scribd company logo
1 of 50
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Simplify your frontend apps
with serverless backend in the cloud
Sébastien Stormacq, Developer Advocate
{
"name": "Sébastien Stormacq",
"role": "Developer Advocate",
"company": "Amazon Web Services”,
"twitter": "@sebsto”,
“github” : "sebsto"
}
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
A typicalday in developer life
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
We need an app to let our customers update preference
settings – our competitors just launched the same thing, so I
need it fast. I don’t want to pay a lot for it, especially when no
one is using it. But remember that we’re growing, so make sure
it scales great and is easy to manage and operate. And
you’re on your own – sorry!
A typicalday in developer life
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
We need an app to let our customers update preference
settings – our competitors just launched the same thing, so I
need it fast. I don’t want to pay a lot for it, especially when no
one is using it. But remember that we’re growing, so make sure
it scales great and is easy to manage and operate. And
you’re on your own – sorry!
A typicalday in developer life
No problem, I will use
a cloud-based &
serverless backend.
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Serverless means
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Serverless means
No Server to Provision or Manage Scale with Usage
Availability and Fault Tolerance Built-in Pay for value
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Serverless acrossthestack
Database
AccessCompute
Developer Workflow
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Whatobstaclesdevelopersarefacing?
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
165+services
TECHNICAL & BUSINESS SUPPORT
Support Professional
Services
Optimization
Guidance
Partner
Ecosystem
Training &
Certification Solutions Management
Account
Management
Security & Billing
Reports
Personalized
Dashboard
MARKETPLACE
Business Apps
Business
Intelligence
DevOps Tools Security Networking StorageDatabases
IoT
Rules Engine
Device Shadows
Device SDKs
Device Gateway
Registry
Local Compute
MIGRATION
Schema
Conversion
Exabyte-Scale
Data Migration
Application
Migration
Database
Migration
Server Migration
HYBRID
Integrated
Networking
Data Integration
Integrated Identity &
Access
Integrated Resource &
Deployment Management
Integrated Devices
& Edge Systems
ML / IA
Custom Model
Training & Hosting
Conversational
Chatbots
Image & Scene
Recognition
Facial Recognition
& Analysis
Deep Learning
(Apache MXNet,
TensorFlow, &
others)
Text to Speech
Facial Search
ENTERPRISE
Virtual Desktops
App Streaming
Sharing &
Collaboration
Corporate Email
Communications
Contact Center
MOBILE
API Gateway
Single Integrated
Console
Identity
Sync
Mobile Analytics
Mobile App
Testing
Targeted Push
Notifications
DEV/OPS
One-click App
Deployment
DevOps Resource
Management
Application Lifecycle
Management
Containers
Triggers
Resource Templates
Build and Test
Analyze and Debug
Patching
ANALYTICS
Data Warehousing
Business Intelligence
Elasticsearch
Hadoop/Spark
Data Pipelines
Streaming Data
Collection
ETL
Streaming Data
Analysis
Interactive SQL
Queries
APP SERVICES
Queuing & Notifications
Workflow
Email
Transcoding
Search
INFRA
Regions
Availability
Zones
Points of
Presence
CORE SERVICES
Compute
VMs, Auto-scaling,
Load Balancing,
Containers, Virtual
Private Servers,
Batch Computing,
Cloud Functions,
Elastic GPUs, Edge
Computing
Storage
Object, Blocks,
File, Archivals,
Import/Export,
Exabyte-scale data
transfer
CDN
Databases
Relational,
NoSQL, Caching,
Migration,
PostgreSQL
compatible
Networking
VPC, DX, DNS
SECURITY & COMPLIANCE
Identity
Management
Key Management
& Storage
Monitoring
& Logs
Configuration
Compliance
Web Application
Firewall
Assessment
& Reporting
Resource &
Usage Auditing
Access
Control
Account
Grouping
DDOS Protection
MANAGEMENT TOOLS
Monitoring
Manage
Resources
Resource
Templates
Configuration
Tracking
Server
Management
Service
Catalogue
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Manylinesof boiler platecode
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
IntroducingAWSAmplify
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Amplify– aCLIto ProvisionServices
$ amplify add auth
$ amplify add storage
$ amplify add api
$ amplify push
Add an Amazon Cognito User Pool
Create and secure an Amazon S3 bucket
Add an AWSAppSync or API Gateway
Deploy via AWS CloudFormation
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Amplify–ASet ofOpen-SourceLibraries
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Let’senricha React webapp
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Initialiseamplify
$ amplify init
$ amplify push
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
#1 Addauthentication
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Provision theservice
$ amplify add auth
$ amplify push
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
ModifyourApp
import Amplify from 'aws-amplify’;
import { withAuthenticator } from 'aws-amplify-react’;
// 'aws-amplify-react-native';
import awsmobile from './aws-exports’;
Amplify.configure(awsmobile);
…
export default withAuthenticator(App);
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Demo
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
$amplifyadd auth&& amplifypush
AWS Cloud
Clients
AWS Cognito User Pool
Accounts
Multi Factor
Authentication
Signup & Signin
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
#2 AddanAPI
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
https://2018.stateofjs.com/data-layer/overview
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
query GetNote {
getNote(id: ”1”) {
id
value
}
}
mutation CreateNote {
createNote(value: “My first note”) {
id
value
}
}
subscription OnCreateNote {
onCreateNote {
id
value
}
}
GraphQL,a query languageforAPIs
type Note {
id: ID!
value: String!
}
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
AppSync, a runtimeto execute the query
query GetPost {
getPosts(id: ”1”) {
id
title
comments {
content
}
author {
name
}
}
}
query GetPost {
getPosts(id: ”1”) {
id
title
comments {
content
}
author {
name
}
}
}
Amazon
EC2
{
"data" : {
"posts" : [
{
"id" : 1,
"title" : "Introduction to GraphQL",
"comments" : [
{
"content" : "I want GraphQL for my next App!"
}
],
"author" : {
"name" : "Sébastien Stormacq"
}
}
]
}
}
Amazon
DynamoDB
AWS
Lambda
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Provision theAPI
$ amplify add api
$ amplify push
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
$amplifyadd api
$ amplify add api
? Please select from one of the below mentioned services GraphQL
? Provide API name: amplifynotes
? Choose an authorization type for the API Amazon Cognito User Pool
Using service: Cognito, provided by: awscloudformation
The current configured provider is Amazon Cognito.
? Do you want to use the default authentication and security configuration?
Yes, use the default configuration.
Successfully added auth resource
? Do you have an annotated GraphQL schema? No
? Do you want a guided schema creation? true
? What best describes your project: Objects with fine-grained access control
(e.g., a project management app with owner-based authorization)
? Do you want to edit the schema now? Yes
Please edit the file in your editor:
/<path>/amplify/backend/api/amplifynotes/schema.graphql
? Press enter to continue
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
A basicschema
type Note {
id: ID!
note: String!
}
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Transformers(akaannotations)
type Note
@model @auth(rules: [{allow: owner}]){
id: ID!
note: String!
}
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Demo
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
$amplifyadd api&@model
AWS Cloud
Clients
AWS AppSync Amazon DynamoDB
Table
Schemas Resolvers Data Sources
type Query {
getNote(...): Note
listNotes(...): Note
}
type Mutation {
createNote(...): Note
updateNote(...): Note
deleteNote(...): Note
}
type Subscription {
onCreateNote (...): Note
onUpdateNote (...): Note
onDeleteNotet(...): Note
}
type Note {
id: ID!
value: String
}
queries
mutations
getNote
listNotes
updateNote
deleteNote
createNote
Note Table
Datasource
IAM Role
ARN
Note Role
ARN
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
#3 addsearchcapabilities
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
UpdateGraphQLTransformer
type Note
@model @auth(rules: [{allow: owner}])
@searchable {
id: ID!
note: String!
}
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Provision theservice
$ amplify push
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Demo
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
@searchable
AWS Cloud
Clients
AWS AppSync Amazon DynamoDB
Table
Schemas Resolvers Data Sources
queries
mutations
getNote
listNotes
updateNote
deleteNote
createNote
Note Table
Datasource
IAM Role
ARN
Note Role
ARN
type Query {
getNote(...): Note
listNotes(...): Note
}
type Mutation {
createNote(...): Note
updateNote(...): Note
deleteNote(...): Note
}
type Subscription {
onCreateNote (...): Note
onUpdateNote (...): Note
onDeleteNotet(...): Note
}
type Note {
id: ID!
value: String
}
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
@searchable
AWS Cloud
Clients
AWS AppSync
Document Index
Amazon ElasticSearch
Schemas Resolvers Data Sources
type Query {
getNote(...): Note
listNotes(...): Note
searchNotes(...): [Note]
}
type Mutation {
createNote(...): Note
updateNote(...): Note
deleteNote(...): Note
}
type Subscription {
onCreateNote (...): Note
onUpdateNote (...): Note
onDeleteNotet(...): Note
}
type Note {
id: ID!
value: String
}
queries
mutations
getNote
listNotes
updateNote
deleteNote
createNote
ElasticSearch
Datasource
IAM Role
ARN
ES
Domain
ARN
Streaming
Lambda
Note Table
Datasource
IAM Role
ARN
Note Role
ARN
searchNotes
Amazon DynamoDB
Table
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
#4 deploytheapp
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Provision theservice
$ amplify add hosting
$ amplify publish
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
amplifyaddhosting
$ amplify add hosting
? Select the environment setup: DEV (S3 only with HTTP)
? hosting bucket name my_hosting_bucket
? index doc for the website index.html
? error doc for the website index.html
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Demo
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
amplifypublish (dev)
AWS Cloud
Clients
Amazon Cloudfront Amazon S3
Bucket serving
static web content
Edge Locations
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
amplifypublish (prod)
AWS Cloud
Clients
Amazon Cloudfront Amazon S3
Bucket serving
static web content
Edge Locations
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
AdvancedTopics
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Amplifyblack belt tips
฀
$ amplify checkout ENV
$ amplify add ENV
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Amplifyblack belt tips
฀
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Amplifyblack belt tips
฀
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
Whatdid wejustdo ?
We created a front end web app backed by cloud services
• User Sign-in, Sign-up (Amazon Cognito)
• CRUD GraphQL API (AWS AppSync + Amazon DynamoDB)
• Search API (Amazon ElasticSearch)
• Hosting (Amazon S3, Amazon CloudFront)
https://github.com/sebsto/amplify-react-workshop
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
TakeAway
© 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you
Sébastien Stormacq, Developer Advocate
{
"name": "Sébastien Stormacq",
"role": "Developer Advocate",
"company": "Amazon Web Services”,
"twitter": "@sebsto”,
“github” : "sebsto"
}

More Related Content

What's hot

Budget management with Cloud Economics | AWS Summit Tel Aviv 2019
Budget management with Cloud Economics | AWS Summit Tel Aviv 2019Budget management with Cloud Economics | AWS Summit Tel Aviv 2019
Budget management with Cloud Economics | AWS Summit Tel Aviv 2019Amazon Web Services
 
AWS 主題演講:聚焦企業工作負載 (enterprise workloads) 與全球案例分享
AWS 主題演講:聚焦企業工作負載 (enterprise workloads) 與全球案例分享AWS 主題演講:聚焦企業工作負載 (enterprise workloads) 與全球案例分享
AWS 主題演講:聚焦企業工作負載 (enterprise workloads) 與全球案例分享Amazon Web Services
 
Serverless Extract-transform-load (ETL) on AWS Webinar
Serverless Extract-transform-load (ETL) on AWS WebinarServerless Extract-transform-load (ETL) on AWS Webinar
Serverless Extract-transform-load (ETL) on AWS WebinarAmazon Web Services
 
打造新一代的企業 IT - Transforming Enterprise IT
打造新一代的企業 IT - Transforming Enterprise IT打造新一代的企業 IT - Transforming Enterprise IT
打造新一代的企業 IT - Transforming Enterprise ITAmazon Web Services
 
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019AWS Summits
 
Creare e gestire Data Lake e Data Warehouses
Creare e gestire Data Lake e Data WarehousesCreare e gestire Data Lake e Data Warehouses
Creare e gestire Data Lake e Data WarehousesAmazon Web Services
 
Orchestrating containers on AWS | AWS Summit Tel Aviv 2019
Orchestrating containers on AWS  | AWS Summit Tel Aviv 2019Orchestrating containers on AWS  | AWS Summit Tel Aviv 2019
Orchestrating containers on AWS | AWS Summit Tel Aviv 2019AWS Summits
 
Building a Modern Data Platform in the Cloud
Building a Modern Data Platform in the CloudBuilding a Modern Data Platform in the Cloud
Building a Modern Data Platform in the CloudAmazon Web Services
 
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019AWS Summits
 
Track 1_Session 2_SAP on AWS - Running your critical workloads.pdf
Track 1_Session 2_SAP on AWS - Running your critical workloads.pdfTrack 1_Session 2_SAP on AWS - Running your critical workloads.pdf
Track 1_Session 2_SAP on AWS - Running your critical workloads.pdfAmazon Web Services
 
AWS Serverless Webinar- Unleash Innovation & Build Modern Application
AWS Serverless Webinar- Unleash Innovation & Build Modern ApplicationAWS Serverless Webinar- Unleash Innovation & Build Modern Application
AWS Serverless Webinar- Unleash Innovation & Build Modern ApplicationAmazon Web Services
 
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019AWS Summits
 
Amazon SageMaker Build, Train and Deploy Your ML Models
Amazon SageMaker Build, Train and Deploy Your ML ModelsAmazon SageMaker Build, Train and Deploy Your ML Models
Amazon SageMaker Build, Train and Deploy Your ML ModelsAWS Riyadh User Group
 
No Hassle NoSQL - Amazon DynamoDB & Amazon DocumentDB | AWS Summit Tel Aviv ...
 No Hassle NoSQL - Amazon DynamoDB & Amazon DocumentDB | AWS Summit Tel Aviv ... No Hassle NoSQL - Amazon DynamoDB & Amazon DocumentDB | AWS Summit Tel Aviv ...
No Hassle NoSQL - Amazon DynamoDB & Amazon DocumentDB | AWS Summit Tel Aviv ...AWS Summits
 
An Overview of Machine Learning on AWS
An Overview of Machine Learning on AWSAn Overview of Machine Learning on AWS
An Overview of Machine Learning on AWSAmazon Web Services
 
20200520 - Como empezar a desarrollar aplicaciones serverless
20200520 - Como empezar a desarrollar aplicaciones serverless 20200520 - Como empezar a desarrollar aplicaciones serverless
20200520 - Como empezar a desarrollar aplicaciones serverless Marcia Villalba
 

What's hot (18)

Budget management with Cloud Economics | AWS Summit Tel Aviv 2019
Budget management with Cloud Economics | AWS Summit Tel Aviv 2019Budget management with Cloud Economics | AWS Summit Tel Aviv 2019
Budget management with Cloud Economics | AWS Summit Tel Aviv 2019
 
AWS 主題演講:聚焦企業工作負載 (enterprise workloads) 與全球案例分享
AWS 主題演講:聚焦企業工作負載 (enterprise workloads) 與全球案例分享AWS 主題演講:聚焦企業工作負載 (enterprise workloads) 與全球案例分享
AWS 主題演講:聚焦企業工作負載 (enterprise workloads) 與全球案例分享
 
Serverless Extract-transform-load (ETL) on AWS Webinar
Serverless Extract-transform-load (ETL) on AWS WebinarServerless Extract-transform-load (ETL) on AWS Webinar
Serverless Extract-transform-load (ETL) on AWS Webinar
 
打造新一代的企業 IT - Transforming Enterprise IT
打造新一代的企業 IT - Transforming Enterprise IT打造新一代的企業 IT - Transforming Enterprise IT
打造新一代的企業 IT - Transforming Enterprise IT
 
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 
Creare e gestire Data Lake e Data Warehouses
Creare e gestire Data Lake e Data WarehousesCreare e gestire Data Lake e Data Warehouses
Creare e gestire Data Lake e Data Warehouses
 
Orchestrating containers on AWS | AWS Summit Tel Aviv 2019
Orchestrating containers on AWS  | AWS Summit Tel Aviv 2019Orchestrating containers on AWS  | AWS Summit Tel Aviv 2019
Orchestrating containers on AWS | AWS Summit Tel Aviv 2019
 
Building a Modern Data Platform in the Cloud
Building a Modern Data Platform in the CloudBuilding a Modern Data Platform in the Cloud
Building a Modern Data Platform in the Cloud
 
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
 
Breaking down the Monowhat
Breaking down the MonowhatBreaking down the Monowhat
Breaking down the Monowhat
 
APN Live-AWS Core Services
APN Live-AWS Core ServicesAPN Live-AWS Core Services
APN Live-AWS Core Services
 
Track 1_Session 2_SAP on AWS - Running your critical workloads.pdf
Track 1_Session 2_SAP on AWS - Running your critical workloads.pdfTrack 1_Session 2_SAP on AWS - Running your critical workloads.pdf
Track 1_Session 2_SAP on AWS - Running your critical workloads.pdf
 
AWS Serverless Webinar- Unleash Innovation & Build Modern Application
AWS Serverless Webinar- Unleash Innovation & Build Modern ApplicationAWS Serverless Webinar- Unleash Innovation & Build Modern Application
AWS Serverless Webinar- Unleash Innovation & Build Modern Application
 
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019
 
Amazon SageMaker Build, Train and Deploy Your ML Models
Amazon SageMaker Build, Train and Deploy Your ML ModelsAmazon SageMaker Build, Train and Deploy Your ML Models
Amazon SageMaker Build, Train and Deploy Your ML Models
 
No Hassle NoSQL - Amazon DynamoDB & Amazon DocumentDB | AWS Summit Tel Aviv ...
 No Hassle NoSQL - Amazon DynamoDB & Amazon DocumentDB | AWS Summit Tel Aviv ... No Hassle NoSQL - Amazon DynamoDB & Amazon DocumentDB | AWS Summit Tel Aviv ...
No Hassle NoSQL - Amazon DynamoDB & Amazon DocumentDB | AWS Summit Tel Aviv ...
 
An Overview of Machine Learning on AWS
An Overview of Machine Learning on AWSAn Overview of Machine Learning on AWS
An Overview of Machine Learning on AWS
 
20200520 - Como empezar a desarrollar aplicaciones serverless
20200520 - Como empezar a desarrollar aplicaciones serverless 20200520 - Como empezar a desarrollar aplicaciones serverless
20200520 - Como empezar a desarrollar aplicaciones serverless
 

Similar to Simplify Your Front End Apps with Serverless Backend in the Cloud.

"Integrate your front end apps with serverless backend in the cloud", Sebasti...
"Integrate your front end apps with serverless backend in the cloud", Sebasti..."Integrate your front end apps with serverless backend in the cloud", Sebasti...
"Integrate your front end apps with serverless backend in the cloud", Sebasti...Provectus
 
AWS DevDay Berlin 2019 - Simplify your Web & Mobile apps with cloud-based ser...
AWS DevDay Berlin 2019 - Simplify your Web & Mobile appswith cloud-based ser...AWS DevDay Berlin 2019 - Simplify your Web & Mobile appswith cloud-based ser...
AWS DevDay Berlin 2019 - Simplify your Web & Mobile apps with cloud-based ser...Darko Mesaroš
 
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless BackendsAWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless BackendsPatrick Sard
 
Simplify your Web & Mobile applications with cloud-based serverless backends
Simplify your Web & Mobile applicationswith cloud-based serverless backendsSimplify your Web & Mobile applicationswith cloud-based serverless backends
Simplify your Web & Mobile applications with cloud-based serverless backendsSébastien ☁ Stormacq
 
GraphQL backend with AWS AppSync & AWS Lambda
GraphQL backend with AWS AppSync & AWS LambdaGraphQL backend with AWS AppSync & AWS Lambda
GraphQL backend with AWS AppSync & AWS LambdaAleksandr Maklakov
 
Initiate Edinburgh 2019 - Moving to DevOps the Amazon Way
Initiate Edinburgh 2019 - Moving to DevOps the Amazon WayInitiate Edinburgh 2019 - Moving to DevOps the Amazon Way
Initiate Edinburgh 2019 - Moving to DevOps the Amazon WayAmazon Web Services
 
Progetta, crea e gestisci Modern Application per web e mobile su AWS
Progetta, crea e gestisci Modern Application per web e mobile su AWSProgetta, crea e gestisci Modern Application per web e mobile su AWS
Progetta, crea e gestisci Modern Application per web e mobile su AWSAmazon Web Services
 
Security framework shakedown_-_chart_your_journey_with_aws_best_practices_ini...
Security framework shakedown_-_chart_your_journey_with_aws_best_practices_ini...Security framework shakedown_-_chart_your_journey_with_aws_best_practices_ini...
Security framework shakedown_-_chart_your_journey_with_aws_best_practices_ini...Amazon Web Services LATAM
 
Security Framework Shakedown- Mapeie sua jornada com as melhores práticas da AWS
Security Framework Shakedown- Mapeie sua jornada com as melhores práticas da AWSSecurity Framework Shakedown- Mapeie sua jornada com as melhores práticas da AWS
Security Framework Shakedown- Mapeie sua jornada com as melhores práticas da AWSAmazon Web Services LATAM
 
Build secure, offline, real-time-enabled mobile apps - MAD304 - Atlanta AWS S...
Build secure, offline, real-time-enabled mobile apps - MAD304 - Atlanta AWS S...Build secure, offline, real-time-enabled mobile apps - MAD304 - Atlanta AWS S...
Build secure, offline, real-time-enabled mobile apps - MAD304 - Atlanta AWS S...Amazon Web Services
 
Websites go Serverless - AWS Summit Berlin
Websites go Serverless - AWS Summit BerlinWebsites go Serverless - AWS Summit Berlin
Websites go Serverless - AWS Summit BerlinBoaz Ziniman
 
2020-04-02 DevConf - How to migrate an existing application to serverless
2020-04-02 DevConf - How to migrate an existing application to serverless2020-04-02 DevConf - How to migrate an existing application to serverless
2020-04-02 DevConf - How to migrate an existing application to serverlessMarcia Villalba
 
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019Amazon Web Services
 
AWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon Way
AWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon WayAWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon Way
AWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon WayAmazon Web Services
 

Similar to Simplify Your Front End Apps with Serverless Backend in the Cloud. (20)

Simplify front end apps.pdf
Simplify front end apps.pdfSimplify front end apps.pdf
Simplify front end apps.pdf
 
Simplify front end apps.pdf
Simplify front end apps.pdfSimplify front end apps.pdf
Simplify front end apps.pdf
 
"Integrate your front end apps with serverless backend in the cloud", Sebasti...
"Integrate your front end apps with serverless backend in the cloud", Sebasti..."Integrate your front end apps with serverless backend in the cloud", Sebasti...
"Integrate your front end apps with serverless backend in the cloud", Sebasti...
 
AWS DevDay Berlin 2019 - Simplify your Web & Mobile apps with cloud-based ser...
AWS DevDay Berlin 2019 - Simplify your Web & Mobile appswith cloud-based ser...AWS DevDay Berlin 2019 - Simplify your Web & Mobile appswith cloud-based ser...
AWS DevDay Berlin 2019 - Simplify your Web & Mobile apps with cloud-based ser...
 
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless BackendsAWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
 
Simplify your Web & Mobile applications with cloud-based serverless backends
Simplify your Web & Mobile applicationswith cloud-based serverless backendsSimplify your Web & Mobile applicationswith cloud-based serverless backends
Simplify your Web & Mobile applications with cloud-based serverless backends
 
AWS Initiate - DevOps do Jeito Amazon
AWS Initiate - DevOps do Jeito AmazonAWS Initiate - DevOps do Jeito Amazon
AWS Initiate - DevOps do Jeito Amazon
 
Moving to DevOps the Amazon Way
Moving to DevOps the Amazon WayMoving to DevOps the Amazon Way
Moving to DevOps the Amazon Way
 
GraphQL backend with AWS AppSync & AWS Lambda
GraphQL backend with AWS AppSync & AWS LambdaGraphQL backend with AWS AppSync & AWS Lambda
GraphQL backend with AWS AppSync & AWS Lambda
 
Initiate Edinburgh 2019 - Moving to DevOps the Amazon Way
Initiate Edinburgh 2019 - Moving to DevOps the Amazon WayInitiate Edinburgh 2019 - Moving to DevOps the Amazon Way
Initiate Edinburgh 2019 - Moving to DevOps the Amazon Way
 
Moving to DevOps
Moving to DevOpsMoving to DevOps
Moving to DevOps
 
Progetta, crea e gestisci Modern Application per web e mobile su AWS
Progetta, crea e gestisci Modern Application per web e mobile su AWSProgetta, crea e gestisci Modern Application per web e mobile su AWS
Progetta, crea e gestisci Modern Application per web e mobile su AWS
 
Security framework shakedown_-_chart_your_journey_with_aws_best_practices_ini...
Security framework shakedown_-_chart_your_journey_with_aws_best_practices_ini...Security framework shakedown_-_chart_your_journey_with_aws_best_practices_ini...
Security framework shakedown_-_chart_your_journey_with_aws_best_practices_ini...
 
Security Framework Shakedown- Mapeie sua jornada com as melhores práticas da AWS
Security Framework Shakedown- Mapeie sua jornada com as melhores práticas da AWSSecurity Framework Shakedown- Mapeie sua jornada com as melhores práticas da AWS
Security Framework Shakedown- Mapeie sua jornada com as melhores práticas da AWS
 
Build secure, offline, real-time-enabled mobile apps - MAD304 - Atlanta AWS S...
Build secure, offline, real-time-enabled mobile apps - MAD304 - Atlanta AWS S...Build secure, offline, real-time-enabled mobile apps - MAD304 - Atlanta AWS S...
Build secure, offline, real-time-enabled mobile apps - MAD304 - Atlanta AWS S...
 
Websites go Serverless - AWS Summit Berlin
Websites go Serverless - AWS Summit BerlinWebsites go Serverless - AWS Summit Berlin
Websites go Serverless - AWS Summit Berlin
 
2020-04-02 DevConf - How to migrate an existing application to serverless
2020-04-02 DevConf - How to migrate an existing application to serverless2020-04-02 DevConf - How to migrate an existing application to serverless
2020-04-02 DevConf - How to migrate an existing application to serverless
 
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019
Frontend and Mobile with AWS Amplify | AWS Summit Tel Aviv 2019
 
AWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon Way
AWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon WayAWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon Way
AWS Initiate Day Manchester 2019 – Moving to DevOps the Amazon Way
 
Serverless for Developers
Serverless for DevelopersServerless for Developers
Serverless for Developers
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Simplify Your Front End Apps with Serverless Backend in the Cloud.

  • 1. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Simplify your frontend apps with serverless backend in the cloud Sébastien Stormacq, Developer Advocate { "name": "Sébastien Stormacq", "role": "Developer Advocate", "company": "Amazon Web Services”, "twitter": "@sebsto”, “github” : "sebsto" }
  • 2. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. A typicalday in developer life
  • 3. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. We need an app to let our customers update preference settings – our competitors just launched the same thing, so I need it fast. I don’t want to pay a lot for it, especially when no one is using it. But remember that we’re growing, so make sure it scales great and is easy to manage and operate. And you’re on your own – sorry! A typicalday in developer life
  • 4. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. We need an app to let our customers update preference settings – our competitors just launched the same thing, so I need it fast. I don’t want to pay a lot for it, especially when no one is using it. But remember that we’re growing, so make sure it scales great and is easy to manage and operate. And you’re on your own – sorry! A typicalday in developer life No problem, I will use a cloud-based & serverless backend.
  • 5. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved.
  • 6. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Serverless means
  • 7. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Serverless means No Server to Provision or Manage Scale with Usage Availability and Fault Tolerance Built-in Pay for value
  • 8. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Serverless acrossthestack Database AccessCompute Developer Workflow
  • 9. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Whatobstaclesdevelopersarefacing?
  • 10. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. 165+services TECHNICAL & BUSINESS SUPPORT Support Professional Services Optimization Guidance Partner Ecosystem Training & Certification Solutions Management Account Management Security & Billing Reports Personalized Dashboard MARKETPLACE Business Apps Business Intelligence DevOps Tools Security Networking StorageDatabases IoT Rules Engine Device Shadows Device SDKs Device Gateway Registry Local Compute MIGRATION Schema Conversion Exabyte-Scale Data Migration Application Migration Database Migration Server Migration HYBRID Integrated Networking Data Integration Integrated Identity & Access Integrated Resource & Deployment Management Integrated Devices & Edge Systems ML / IA Custom Model Training & Hosting Conversational Chatbots Image & Scene Recognition Facial Recognition & Analysis Deep Learning (Apache MXNet, TensorFlow, & others) Text to Speech Facial Search ENTERPRISE Virtual Desktops App Streaming Sharing & Collaboration Corporate Email Communications Contact Center MOBILE API Gateway Single Integrated Console Identity Sync Mobile Analytics Mobile App Testing Targeted Push Notifications DEV/OPS One-click App Deployment DevOps Resource Management Application Lifecycle Management Containers Triggers Resource Templates Build and Test Analyze and Debug Patching ANALYTICS Data Warehousing Business Intelligence Elasticsearch Hadoop/Spark Data Pipelines Streaming Data Collection ETL Streaming Data Analysis Interactive SQL Queries APP SERVICES Queuing & Notifications Workflow Email Transcoding Search INFRA Regions Availability Zones Points of Presence CORE SERVICES Compute VMs, Auto-scaling, Load Balancing, Containers, Virtual Private Servers, Batch Computing, Cloud Functions, Elastic GPUs, Edge Computing Storage Object, Blocks, File, Archivals, Import/Export, Exabyte-scale data transfer CDN Databases Relational, NoSQL, Caching, Migration, PostgreSQL compatible Networking VPC, DX, DNS SECURITY & COMPLIANCE Identity Management Key Management & Storage Monitoring & Logs Configuration Compliance Web Application Firewall Assessment & Reporting Resource & Usage Auditing Access Control Account Grouping DDOS Protection MANAGEMENT TOOLS Monitoring Manage Resources Resource Templates Configuration Tracking Server Management Service Catalogue
  • 11. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Manylinesof boiler platecode
  • 12. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. IntroducingAWSAmplify
  • 13. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Amplify– aCLIto ProvisionServices $ amplify add auth $ amplify add storage $ amplify add api $ amplify push Add an Amazon Cognito User Pool Create and secure an Amazon S3 bucket Add an AWSAppSync or API Gateway Deploy via AWS CloudFormation
  • 14. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Amplify–ASet ofOpen-SourceLibraries
  • 15. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Let’senricha React webapp
  • 16. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Initialiseamplify $ amplify init $ amplify push
  • 17. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. #1 Addauthentication
  • 18. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Provision theservice $ amplify add auth $ amplify push
  • 19. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. ModifyourApp import Amplify from 'aws-amplify’; import { withAuthenticator } from 'aws-amplify-react’; // 'aws-amplify-react-native'; import awsmobile from './aws-exports’; Amplify.configure(awsmobile); … export default withAuthenticator(App);
  • 20. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Demo
  • 21. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. $amplifyadd auth&& amplifypush AWS Cloud Clients AWS Cognito User Pool Accounts Multi Factor Authentication Signup & Signin
  • 22. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. #2 AddanAPI
  • 23. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. https://2018.stateofjs.com/data-layer/overview
  • 24. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. query GetNote { getNote(id: ”1”) { id value } } mutation CreateNote { createNote(value: “My first note”) { id value } } subscription OnCreateNote { onCreateNote { id value } } GraphQL,a query languageforAPIs type Note { id: ID! value: String! }
  • 25. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. AppSync, a runtimeto execute the query query GetPost { getPosts(id: ”1”) { id title comments { content } author { name } } } query GetPost { getPosts(id: ”1”) { id title comments { content } author { name } } } Amazon EC2 { "data" : { "posts" : [ { "id" : 1, "title" : "Introduction to GraphQL", "comments" : [ { "content" : "I want GraphQL for my next App!" } ], "author" : { "name" : "Sébastien Stormacq" } } ] } } Amazon DynamoDB AWS Lambda
  • 26. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Provision theAPI $ amplify add api $ amplify push
  • 27. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. $amplifyadd api $ amplify add api ? Please select from one of the below mentioned services GraphQL ? Provide API name: amplifynotes ? Choose an authorization type for the API Amazon Cognito User Pool Using service: Cognito, provided by: awscloudformation The current configured provider is Amazon Cognito. ? Do you want to use the default authentication and security configuration? Yes, use the default configuration. Successfully added auth resource ? Do you have an annotated GraphQL schema? No ? Do you want a guided schema creation? true ? What best describes your project: Objects with fine-grained access control (e.g., a project management app with owner-based authorization) ? Do you want to edit the schema now? Yes Please edit the file in your editor: /<path>/amplify/backend/api/amplifynotes/schema.graphql ? Press enter to continue
  • 28. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. A basicschema type Note { id: ID! note: String! }
  • 29. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Transformers(akaannotations) type Note @model @auth(rules: [{allow: owner}]){ id: ID! note: String! }
  • 30. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Demo
  • 31. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. $amplifyadd api&@model AWS Cloud Clients AWS AppSync Amazon DynamoDB Table Schemas Resolvers Data Sources type Query { getNote(...): Note listNotes(...): Note } type Mutation { createNote(...): Note updateNote(...): Note deleteNote(...): Note } type Subscription { onCreateNote (...): Note onUpdateNote (...): Note onDeleteNotet(...): Note } type Note { id: ID! value: String } queries mutations getNote listNotes updateNote deleteNote createNote Note Table Datasource IAM Role ARN Note Role ARN
  • 32. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. #3 addsearchcapabilities
  • 33. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. UpdateGraphQLTransformer type Note @model @auth(rules: [{allow: owner}]) @searchable { id: ID! note: String! }
  • 34. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Provision theservice $ amplify push
  • 35. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Demo
  • 36. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. @searchable AWS Cloud Clients AWS AppSync Amazon DynamoDB Table Schemas Resolvers Data Sources queries mutations getNote listNotes updateNote deleteNote createNote Note Table Datasource IAM Role ARN Note Role ARN type Query { getNote(...): Note listNotes(...): Note } type Mutation { createNote(...): Note updateNote(...): Note deleteNote(...): Note } type Subscription { onCreateNote (...): Note onUpdateNote (...): Note onDeleteNotet(...): Note } type Note { id: ID! value: String }
  • 37. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. @searchable AWS Cloud Clients AWS AppSync Document Index Amazon ElasticSearch Schemas Resolvers Data Sources type Query { getNote(...): Note listNotes(...): Note searchNotes(...): [Note] } type Mutation { createNote(...): Note updateNote(...): Note deleteNote(...): Note } type Subscription { onCreateNote (...): Note onUpdateNote (...): Note onDeleteNotet(...): Note } type Note { id: ID! value: String } queries mutations getNote listNotes updateNote deleteNote createNote ElasticSearch Datasource IAM Role ARN ES Domain ARN Streaming Lambda Note Table Datasource IAM Role ARN Note Role ARN searchNotes Amazon DynamoDB Table
  • 38. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. #4 deploytheapp
  • 39. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Provision theservice $ amplify add hosting $ amplify publish
  • 40. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. amplifyaddhosting $ amplify add hosting ? Select the environment setup: DEV (S3 only with HTTP) ? hosting bucket name my_hosting_bucket ? index doc for the website index.html ? error doc for the website index.html
  • 41. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Demo
  • 42. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. amplifypublish (dev) AWS Cloud Clients Amazon Cloudfront Amazon S3 Bucket serving static web content Edge Locations
  • 43. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. amplifypublish (prod) AWS Cloud Clients Amazon Cloudfront Amazon S3 Bucket serving static web content Edge Locations
  • 44. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. AdvancedTopics
  • 45. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Amplifyblack belt tips ฀ $ amplify checkout ENV $ amplify add ENV
  • 46. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Amplifyblack belt tips ฀
  • 47. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Amplifyblack belt tips ฀
  • 48. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. Whatdid wejustdo ? We created a front end web app backed by cloud services • User Sign-in, Sign-up (Amazon Cognito) • CRUD GraphQL API (AWS AppSync + Amazon DynamoDB) • Search API (Amazon ElasticSearch) • Hosting (Amazon S3, Amazon CloudFront) https://github.com/sebsto/amplify-react-workshop
  • 49. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. TakeAway
  • 50. © 2019, AmazonWeb Services, Inc. or itsaffiliates. All rightsreserved. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you Sébastien Stormacq, Developer Advocate { "name": "Sébastien Stormacq", "role": "Developer Advocate", "company": "Amazon Web Services”, "twitter": "@sebsto”, “github” : "sebsto" }