Mixing Amplify with CDK - Building an Authenticated GraphQL API with TypeScript on AWS

  Рет қаралды 10,865

Nader Dabit

Nader Dabit

Күн бұрын

Пікірлер: 27
@ApoorvMote
@ApoorvMote 4 жыл бұрын
Thanks Nader. I switched from amplify to cdk because of lack of flexibility. Now I can use both.
@mycraplife
@mycraplife 4 жыл бұрын
A tutorial for Amplify creating a Websocket API with API Gateway, Lambda , Dynamodb to track user status/activity would be amazing!
@jorcastle
@jorcastle 4 жыл бұрын
Amazing Nader Dabit, you're the best
@rorycawley8334
@rorycawley8334 4 жыл бұрын
Love this. Please can you make more CDK videos with Amplify?
@lukeparker6026
@lukeparker6026 2 жыл бұрын
I was looking at this video specifically for referencing amplify created resources in the CDK dynamically to support multiple environments. Is there a method obtain Amplify ARNs in the CDK without copy/pasting from the aws-exports file?
@ApoorvMote
@ApoorvMote 4 жыл бұрын
Can I deploy using serverless framework? We are already using Amplify and CDK and deploy Next js for SSR using serverless framework?
@ApoorvMote
@ApoorvMote 4 жыл бұрын
Too bad we can't use graphql transform from Amplify with CDK. Writing full length graphql schema is pain in the behind.
@andriys5772
@andriys5772 4 жыл бұрын
Do we have to compile .ts files from 'lambda-fs' folder to .js files before run 'cdk deploy'?
@andriys5772
@andriys5772 4 жыл бұрын
it seems we have to run `npm run build` before run `cdk deploy`. aws.amazon.com/blogs/mobile/building-scalable-graphql-apis-on-aws-with-cdk-and-aws-appsync/ Next question -- How to exclude .ts and .d.ts files ? For now when I run `npm run build &&vcdk deploy` all files (.js, .ts, .d.ts) from folder `lambda-fs` send to lambda function (remote) ?
@forresthopkinsa
@forresthopkinsa 2 жыл бұрын
Could you ship other CDK resources with Amplify's built-in CI/CD with this technique? I love Amplify's frontend system but the backend is seriously lacking, and I can't have two separate CI systems running on the same repo 😓
@ApoorvMote
@ApoorvMote 4 жыл бұрын
Will it work with Next js or React or any kind of front end? Any limit on which frontend to use?
@naderdabit
@naderdabit 4 жыл бұрын
This works great with Next.js as well as pretty much any front end JS frameworks.
@ApoorvMote
@ApoorvMote 4 жыл бұрын
@@naderdabit And how do you deploy to s3/cloudfront for SSR to work? serverless framework or amplify or cdk?
@andresmontoya7852
@andresmontoya7852 4 жыл бұрын
Thank you so much! Very interesting! Would be great if you make a video including Datastore with CDK, something like I create my Datastore instances with the Amplify CLI, and then I can use them with CDK. What do you think? :)
@naderdabit
@naderdabit 4 жыл бұрын
This is a perfect use case actually, using the Amplify CLI for the code generation and CDK for the extra flexibility. Will definitely try to do this next!!
@andresmontoya7852
@andresmontoya7852 4 жыл бұрын
@@naderdabit Thank you! I'll be waiting for it :)
@ApoorvMote
@ApoorvMote 4 жыл бұрын
@@naderdabit Yes I really like offline use and data sync of Datastore. So would be interested in that also.
@davinanaya468
@davinanaya468 4 жыл бұрын
Nice video but i have a question is it possible to use NodeJs framework such NestJs o SailsJs with amplify ?
@lucaspearson35
@lucaspearson35 4 жыл бұрын
So is this a monorepo? I think I might have gotten a little lost with that part. Also aside of familiarity with a different tool (CDK) what are the advantages to connecting projects like this? Thanks for the great video!
@davidlechugahuerta6325
@davidlechugahuerta6325 4 жыл бұрын
Hellow !!! Good video But o have some problems with amplify : 1) i cant customize with css de login and i cant put any component or html tag. . My form 2). I cant. Manage the session of the users, to show differents view (admin and users views ) Please some docs or tip about it ?
@idobleicher
@idobleicher 3 жыл бұрын
because it's dynamic, I am not sure but it's now can work with any other database right? if we move to CDK with the graphql and any other DB, Looks legit!
@naderdabit
@naderdabit 3 жыл бұрын
Yep, you can use any database both within AWS but also outside of AWS with an HTTP connection
@samlaf92
@samlaf92 3 жыл бұрын
Thank you for this thought-provoking video, I hadn't thought about connecting my Amplify resources with my CDK resources. However, I still feel like you aren't answering the most central question, which is: why use both? 1. Most of the code that you have written I feel can be generated by amplify's codegen functionality. Why rewrite it all using cdk? 2. If using the cdk is necessary for other reasons, then why use amplify at all? It seems like whatever amplify is generating here is very minimal, and could be integrated into your cdk stack definition.
@calvinbutler5517
@calvinbutler5517 Жыл бұрын
He mentioned two reasons you might find yourself using cdk and amplify and imo both are valid. 1. There are certainly infrastructure requirements that might not be manageable with amplify and require that you use cdk aswell. 2. Someone might not want amplify to manage their infrastructure, they might have done this in cdk, but they might want to use the amplify client libraries to interact with, say, cognito. Just because his demo isn't an example of a warranted use of cdk and amplify, doesn't mean those don't exist. Also, the purpose of a demo is to show an example of how something can be done and could be applied to other use cases. Clearly he showed a general pattern that can be applied when warranted.
@mattkoltun
@mattkoltun 4 жыл бұрын
great tutorial! i was following it and on the CDK deploy at the end it asked me to bootstrap it to the environment? I suppose it should be the amplify one, right?
@cloud_architector
@cloud_architector 4 жыл бұрын
Nader, do you have udemy course?
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН
Какой я клей? | CLEX #shorts
0:59
CLEX
Рет қаралды 1,9 МЛН
I think I was wrong about AWS Amplify
30:39
Web Dev Cody
Рет қаралды 62 М.
Codegen: The good, the bad and the ugly
6:37
Matt Pocock
Рет қаралды 32 М.
Full Stack Serverless with Architect, AWS Amplify, and React
34:15
AWS CDK Crash Course for Beginners
1:07:31
Be A Better Dev
Рет қаралды 70 М.
How AWS is Making It Easier To Convert to IaC/CDK
21:32
Be A Better Dev
Рет қаралды 9 М.
EASILY use the AWS CDK to create an AppSync API
10:46
Focus Otter
Рет қаралды 1,9 М.
DEPLOY A WEB APP TO THE CLOUD WITH AWS AMPLIFY AND AWS CDK
18:21
FooBar Serverless
Рет қаралды 8 М.
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН