Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and...
Transcript of Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and...
![Page 1: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/1.jpg)
![Page 2: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/2.jpg)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building serverless applications with AWS Amplify
Derek Bingham
B U I 0 7
Senior Partner Solutions Architect
Amazon Web Services
![Page 3: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/3.jpg)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
![Page 4: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/4.jpg)
AWS Amplify – a development platform
Open Source
Framework
AWS Managed
Developer
Services
Components
![Page 5: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/5.jpg)
AWS Amplify recap: CLI
![Page 6: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/6.jpg)
AWS Amplify recap: Client
![Page 7: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/7.jpg)
AWS Amplify recap: Categories
![Page 8: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/8.jpg)
AWS Amplify recap: Category adoption
![Page 9: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/9.jpg)
AWS Amplify recap: Amplify Console
Git-based full-stack
![Page 10: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/10.jpg)
Jumpstart building serverless apps
![Page 11: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/11.jpg)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
![Page 12: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/12.jpg)
What's new: Native SDK’s
Amplify Clients
Use-case centric
Declarative abstractions
for example : Storage.put()
AWS Mobile SDKs
AWS Service centric
Low level generated
For example : AWSS3TransferUtilityUploadExpression
![Page 13: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/13.jpg)
What's new: Native categories
![Page 14: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/14.jpg)
Example: Predictions in IOS
Amazon
Comprehend
Amazon Polly
Amazon
Rekognition
Amazon Transcribe Amazon
Translate
Amazon
Textract
Pre-trained models
Custom models
Amazon
SageMaker
CoreML models
![Page 15: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/15.jpg)
Escape hatch
For when convention isn't enough
Currently available categories:
• Analytics
• Authentication
• Predictions
• Storage
![Page 16: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/16.jpg)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
![Page 17: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/17.jpg)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
![Page 18: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/18.jpg)
What’s new: Amplify DataStore
Multi-platform (iOS/Android/React Native/Web) on-device persistent storage engine that automatically synchronises data between mobile/web apps and the cloud using GraphQL.
![Page 19: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/19.jpg)
What’s new: Amplify DataStore
![Page 20: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/20.jpg)
What’s new: Amplify DataStore
![Page 21: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/21.jpg)
![Page 22: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/22.jpg)
$ amplify add api
# schema.graphql
type Post @model {
id: ID!
title: String!
}
What's new: Transformers
![Page 23: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/23.jpg)
@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type
@connection Enables relationships between @model types
@auth Enables set of authorisation rules
@searchable Handles streaming the data of an @model object type to Amazon Elasticsearch Service and configures search resolvers
@versioned Enables versioning
@function Enables adding a Lambda function as a data source
@key Enables configuring custom indexes for @model types
@predictionsAccess an orchestration of AI/ML services such as Amazon Rekognition, Amazon Translate, and/or Amazon Polly
What's new: Transformers
![Page 24: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/24.jpg)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
![Page 25: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/25.jpg)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
![Page 26: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/26.jpg)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
![Page 27: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/27.jpg)
AWS Amplify tips and best practices (1)
@auth
![Page 28: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/28.jpg)
AWS Amplify tips and best practices (2)
![Page 29: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/29.jpg)
AWS Amplify tips and best practices (3)
![Page 30: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/30.jpg)
AWS Amplify tips and best practices (4)
![Page 31: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/31.jpg)
AWS Amplify tips and best practices (5)
![Page 32: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/32.jpg)
AWS Amplify tips and best practices (6)
@key
![Page 33: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/33.jpg)
Go build serverless apps(with AWS Amplify)
![Page 34: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/34.jpg)
Links and Resources
https://amplify.aws/community/
https://awsappsync.dev/
https://aws-amplify.github.io/
https://github.com/aws-amplify
![Page 35: Building serverless applications...@model Top-level entity; creates DynamoDB table, resolvers, and additional schema (queries, mutations, and subscriptions) for base type @connection](https://reader033.fdocuments.net/reader033/viewer/2022050605/5fad0969089a8d2e2e02c5a2/html5/thumbnails/35.jpg)
Thank you!
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Derek Bingham