Building an AppSync + Serverless Framework Backend | FooBar

preview_player
Показать описание
Lets build a fully coded appsync backend with Serverless Framework

★★ README / OPEN ME ★★

☆☆ ABOUT THIS VIDEO ☆☆
This is the third video on the AppSync series - AppSync is the GraphQL managed service from AWS.

In this video we are going to create a fully coded AppSync backend using Serverless Framework

☆☆ FOLLOW ME ONLINE ☆☆

Instagram: foobar_codes

☆☆ ABOUT FOOBAR ☆☆
In this channel you can find mostly coding tutorials related to cloud and serverless.
In addition, I like also talking about architecture, software design, motivation and leadership.
There is a new video every Tuesday, so stay tuned :)

☆☆ SPONSORSHIP ☆☆
Does your company wants to sponsor a video? Contact me by twitter or by email (email address in the about page)

Комментарии
Автор

For anyone watching this video and wanting to get started quickly ...


2.) Change the profile field in serverless.yml to your aws username. If you don't do this the sls deploy command will work but the aws console will not update with the new user pool.

3.) Comment out everything below the App Sync lambda role

4.) From the root directory of the project run: npm install -save serverless-appsync-plugin

5.) From the root directory of the project run: npm install -save serverless-pseudo-parameters

6.) From your root directory run: sls deploy

7.) Uncomment everything below the App Sync lambda role

8.) From your root directory run: sls deploy

9.) Watch from 9:55 - to the end of the video to get an idea of how to test.

paytonj
Автор

Hi! Thanks for this beautiful tutorial.
For anyone wanting to deploy this on a different region to us-east-1 (the default one), and deploy say, in eu-west-1, add:
provider:
region: eu--west-1

And in the custom parameters, change the awsRegion parameter,

custom:
accountId: #{AWS::AccountId}
appSync:
name: sls-appsync-api
authenticationType: AMAZON_COGNITO_USER_POOLS
userPoolConfig:
awsRegion: ${self:provider.region}

Last line is the important one (in the github repo it is hardcoded to us-east-1).

antoniotripiana
Автор

Thank you! So helpful! Could you do a follow-on video with the plugin: serverless-appsync-offline?

LondonUKMale
Автор

Thanks for the series. Im really trying to find a tutorial that shows examples on data types and connections between the data types. All I can find is app sync 101. Is there any recommendations on a more advanced tutorial? User has comments comments have likes how do you do these advanced things in app sync??

michaelchambers
Автор

Please can you share an example of the serverless-appsync-plugin config combining more than one data source

rubelux
Автор

How do we Create Resources(previous video) from Serverless ?

Why skip to showing how to work with Lambda before showing how to do what was done in the previous video in the AWS Console but with Serverless I wonder.

dancoman
Автор

Love your tutorials, specially this one.
Could you do one for serverless appsync with the following items:
- DynamoDB integration
- Object Oriented entities
- Appsync generating mapping templates (it seems to do it when done manually can serveless framework do it for us?)
- Real time graphql
Muchas gracias !!

hevo
Автор

hey i had a question, can we write the cognito configuration and appsync configuration in separate files and call them in serverless.yml

aniketkambli
Автор

Is there a way to enable logging directly from serverless.yml instead of manual toggle inside AppSync API - settings?

uzoirr
Автор

do you have any tips or materials on taking a project that has been set up with via AWS web and migrating it to serverless framework to have everything setup in a repo?

iroveashe
Автор

How to update my appsync schema? Because sls update-appsync command is not working.

muhammadaijaz
Автор

HI, thanks for all .I try to use serverless appsync-offline start ( also I install it ) . And I get an error {
"errorMessage": "Invalid token specified: Cannot read property 'replace' of undefined"
} . I don't know if you could make an example more completed.

marcoantonioludenafarje
Автор

Is there a CLI command to automate setting up the GraphQL lambda backend?

brylie
Автор

At 03:01 `profile: student1` is set on line-6 in of the .yml file
But at 03:06 `student1` is not specified as the profile to be deployed.

dkr
Автор

I wan trying to follow your instructions but I am getting so many errors now. Even I cloned your project. Can you please create end to end AppSync lambda Postgresql example?

iamdhison
Автор

you are AMAZING, but this was soooo fast.

jfpaulini
Автор

Your serverless command line 'Service Information' section shows an endpoint. I didn't get that by following through the code. I eventually copy and pasted your files from the github repository and once I deployed, there still wasn't an endpoint. Any ideas?

haydenl
Автор

Hi. Really awesome Vids. Would be nice to do some real-time app sync without dynamo (by fetching data from other lambdas). Plus offline support.
Sorry for asking too much, but you are a very nice person, so I am sure you can handle it.

Thanks

riyadhzenasni
Автор

Did these suddenly get put behind a paywall? I refreshed it and am now seeing a message saying “This video requires payment to watch”.

Also, in the example where you set the `userPoolId` for the variable, couldn’t you do something like: `Ref: CognitoUserPool` to have it grab the id in an automated way?

lethys
Автор

very very very fast, i can not get anything ...

purushottamkunwar