No video

Why I love AWS Amplify - Deploy Next.js (T3 Stack) in 5 minutes

📘 T3 Stack Tutorial: 1017897100294....
limited time 30% off discount code: 9LX2QSM
🤖 SaaS I'm Building: www.icongenera...
💬 Discord: / discord
🔔 Newsletter: newsletter.web...
📁 GitHub: github.com/web...
📺 Twitch: / webdevcody
🤖 Website: webdevcody.com
🐦 Twitter: / webdevcody

Пікірлер: 98

  • @toddribnek6660
    @toddribnek6660 Жыл бұрын

    Thanks, good tip about the commercial limitation of vercel.

  • @javierneri81
    @javierneri81 Жыл бұрын

    Has Amplify changed a lot within the past year? This definitely looks much simpler than when I last checked. I think the reason many tend towards Vercel is just because there are a lot of videos, and other resources, that show how easy it is to deploy there. Both in terms of DX and friendlier UI. Plus the fact that you don't have to worry so much about scaling. At least, that's how it felt to me. I'm sure many just had very bad experiences with AWS, but there are also several others who just try to gravitate to whichever is the easiest to implement. But this demo has got me interested in trying AWS again. Thank you for this video!

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    I'm not sure, I just recently started using it and it seems pretty easy to use. It also seems like they deploy all your stuff to lambdas and cloudfront cdn. so the scaling aspect seems to be in place with amplify. I think when people complain about amplify they usually are complaining about letting amplify manage your authentication (cognito) and database (dynamo). If you compare amplify as a whole against firebase or supabase, idk how well it stands up personally.

  • @appstuff6565

    @appstuff6565

    11 ай бұрын

    hey cody, thanks for this comment. I am going to use NextJS with Supabase as db . Then from your videos I am planning to deploy it to aws amplify to host it publicly. it's been 4 months since this video, have you tried thereafter around same tech stack? If so, can you guide me to that video or just comment and let me know? Thanks!@@WebDevCody

  • @nardu
    @nardu14 күн бұрын

    Thank you for recording this Just deployed on Netlify and AWS is not much more complIcated

  • @anonymoussloth6687
    @anonymoussloth66874 ай бұрын

    I am having trouble with environment variables. I have a .env file with my access keys but I am not able to pass it to AWS in my app. If I console log process.env.ACCESS_KEY I get the key output but if I pass this in the AWS config.update(), I get missing credentials

  • @senlee325

    @senlee325

    4 ай бұрын

    I am having the same problem. Have you figured out how to fix it?

  • @SiKSC2
    @SiKSC2 Жыл бұрын

    Could you maybe make a video on how you set up your AWS account or how to set up an AWS account for personal side projects (multiple projects, maybe staging and prod envs) to keep it secure and project resources separate? Coming from Azure and reading about that topic, there are many different approaches it seems, e.g. AWS organizations, AWS control tower, everything in a single AWS account. That would be nice :)

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    For anything personal I just use a single aws account. At work we have a separate aws account for production, and another aws account that contains all the lower tier environments like dev stg test

  • @ooogabooga5111
    @ooogabooga5111 Жыл бұрын

    The problem is that Ampliy does not support api routes, app directory, on demand ISR and other needy features.

  • @1998goodboy
    @1998goodboy Жыл бұрын

    This would be really good if and when you scale up and it come to the point where you need to add other services with a k8s or lambdas cluster

  • @midlandscoder
    @midlandscoder Жыл бұрын

    My app is deployed, but I get [next-auth][error][CLIENT_FETCH_ERROR] , I dont get this in vercel

  • @corygrewohl8180
    @corygrewohl8180 Жыл бұрын

    I know you mentioned you haven't used Netlify before. I've used it for a ton of personal projects and it's been great for me. Would love to hear your opinion on it if you try it out sometime!

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    Yeah I’ll check it out

  • @corygrewohl8180

    @corygrewohl8180

    Жыл бұрын

    @@WebDevCody awesome!

  • @maddsua

    @maddsua

    Жыл бұрын

    @@WebDevCody I'm using Netlify since 2020, and the experience is amazing so far

  • @Frankywright.
    @Frankywright.4 ай бұрын

    Thanks so much. Helped me a lot.

  • @eliaspaulinho8435
    @eliaspaulinho84355 ай бұрын

    i wish i found your video like 5 days ago. but figured it out

  • @bradenborman4396
    @bradenborman4396 Жыл бұрын

    I used to deploy my apps on heroku, but this is a great alternative it looks like with them removing their tier

  • @harsh_pathak27
    @harsh_pathak278 ай бұрын

    i used Hostinger for purchasing my Domain Name and Hosted that domain name on Router 53 and changed DNS severs on Hostinger's Default to Router 53 given. after that my domain name is gettiing status Available but getting "DNS address could not be found. Diagnosing the problem." error when openned website. what can i do now?

  • @Turbovv
    @Turbovv Жыл бұрын

    Hi cody, I have been watching your videos for a long time and I really like them, especially the MEVN stack, if you could make one more video where you build the chat app, very basic.

  • @engelshentenawy
    @engelshentenawy4 ай бұрын

    can you deploy to amplify using sst ?

  • @hoyinli7462
    @hoyinli7462Ай бұрын

    Your video is simply good job! SUpport!

  • @moinulislammoin
    @moinulislammoin Жыл бұрын

    Yap. it's very easy to use now, have been using it for a while

  • @tannonn
    @tannonn Жыл бұрын

    Hi I got this error when I browsing , any solution for this? Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './server.edge' is not defined by "exports" in /var/task/node_modules/react-dom/package.json

  • @TstormGG
    @TstormGG Жыл бұрын

    Hey Cody nice video, learned something new, just one question. Are you saying if we use Amplify, and we have a domain bought from goDaddy for example, we can have https for free if we do this configuration on Amplify you showed in video and that's it? :)

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    yeah the https would be free, you just need to verify that you can add cname records in godaddy on your dns settings

  • @TstormGG

    @TstormGG

    Жыл бұрын

    @@WebDevCody Thanks Cody will verify that.

  • @user-cb4cb4so5m
    @user-cb4cb4so5m Жыл бұрын

    How does AWS Amplify the server-side code in a Next.js app? Is it just a bunch of Lambdas happening in the backend?

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    They use lambda, and I’d bet they deploy your entire api to a single mono lambda.

  • @RexMapz
    @RexMapz11 ай бұрын

    Great vid. just wondering if I can use and install flowise in aws amplify. If yes, can you please make a tutorial for that. I will really appreciate it. Thanks and Godspeed.

  • @issahab2823
    @issahab2823 Жыл бұрын

    Hello, would you consider making a video about playing around with firebase and checking it out? It is a super convenient way to build full stack apps for beginners since it handles authentication and database from the frontend, no need to build an api. I am currently working on a project with firebase, I want to see if it is a good approach to build my apps from your opinion.

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    Maybe, i haven’t really used firebase much, but some people seem to like it

  • @jonathanpoisson1761
    @jonathanpoisson1761 Жыл бұрын

    How do you feel about using the other pieces of the amplify stack nowadays? (Lambda, Appsync, graphql, dynamo). Or do you normally just like using amplify for the ease of deployment and domain/ssl setup?

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    I've only used it to deploy my next application, so I'm not sure about the other features to be honest. Usually I use terraform to spin up and manage whatever other aws resources I might need. We use dynamodb at work which is good but has it's own issues to think about. I've never used graphql, so I can't speak on that.

  • @samirmishra9946
    @samirmishra9946 Жыл бұрын

    Are there any bandwith limits to using AWS Amplify? Like there are 100 Gb bandwidth limit for sites deployed on Netlify and Vercel

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    I don’t think there are limits but they probably charge you by the gb or Tb of bandwidth usage.

  • @cambabyfacecam
    @cambabyfacecam Жыл бұрын

    Big fan of your videos man, is it possible for you to make more AWS content? Either with T3 or SST, but a full stack app with lambda, s3, api gateway, dynamo db or rds? Also, could you do a create-t3-turbo project? Possibly just to show a mobile app for your icon project. I’d even pay for it.

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    yeah let me look into SST a bit and I can plan for a full stack app that uses everything in AWS

  • @cambabyfacecam

    @cambabyfacecam

    Жыл бұрын

    @@WebDevCody alright cool, I’ll be on the lookout for it man. Keep up the good work bro, you’re doing a lot of real world examples and I appreciate them.

  • @TheZhouh12

    @TheZhouh12

    Жыл бұрын

    I used SST in my previous project, and it provided a great development experience compared to the Serverless Framework. This is because SST allowed me to debug Lambda functions locally. Of course, SST is vendor-locked to AWS, but I did not see this as an issue for my previous project since I needed to choose a cloud provider anyway. My next proof of concept will be focused on making tRPC work with SST.

  • @thelatelateshowwithmaaz6260
    @thelatelateshowwithmaaz6260 Жыл бұрын

    Hello Cody My name is Maaz, My question is If my next js app takes 30 sec to load api because api is slow do aws amplify will wait 30 seconds and show my Page or it will just crash and give 404 not found error ??? Because in netlify their free tier doesn't support 10 seconds of load time thats why iam switching to aws Amplify Hope that you will reply back

  • @senlee325
    @senlee3255 ай бұрын

    Thank you very helpful

  • @danielcruz9583
    @danielcruz9583 Жыл бұрын

    Awesome video Cody, I'm giving a try to Amplify as well and it's working well so far. By the way, what VSCode theme are you using? Super cool, I think I never saw this one.

  • @jealousgx4463
    @jealousgx4463 Жыл бұрын

    @webdevcody, can you make a video on creating lambda functions with SST or using AWS SDK in T3 stack?

  • @ToddDunning
    @ToddDunning Жыл бұрын

    Am I like the only person using Netlify for Next?

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    I need to try netlify out. Do you know if it deploys next with a cdn in front?

  • @ToddDunning

    @ToddDunning

    Жыл бұрын

    @@WebDevCody lol this is why I subscribe to you - to find out what the hell I’m doing. You’ll give us a terrific walk through of a Netlify CDN if one exists

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    @@ToddDunning haha we’ll be on the look out if I ever make a video about netlify. Half the time idk what the hell im doing but my video editing skills make it seem like I do 😂

  • @brianfarley2723
    @brianfarley2723 Жыл бұрын

    Sick Bruski.

  • @kkomax7
    @kkomax7 Жыл бұрын

    PLS do a T3 simple app and deploy it with a DB and everything. just to see the entire workflow.

  • @user-rf7ih2pt8e
    @user-rf7ih2pt8e Жыл бұрын

    Did any data base like mongo or any data base work withe you ?

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    Not sure I understand your question

  • @user-rf7ih2pt8e

    @user-rf7ih2pt8e

    Жыл бұрын

    @@WebDevCody im trying to connect with mongodb but its not working with aws amplify did it work with you ?

  • @lookingforbino
    @lookingforbino Жыл бұрын

    Great demo! Can we deploy MERN stack onto AWS Amplify? If not, MERN stack to lambda?

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    Maybe, I don’t do mern stuff these days

  • @ooogabooga5111
    @ooogabooga5111 Жыл бұрын

    I would say ampliy is nice if you application is simple to the core.

  • @codypanda
    @codypanda Жыл бұрын

    Is it working with the T3 stack?? The last time I tried (1/2 months ago), I ran into some issues. I'll try again, thanks! I also use Amplify to deploy my personal projects. However, it's still a no-go when it comes to deploying resources (Lambda, DynamoDB, etc.), mainly because it's so much faster with Terraform.

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    honestly if I wasn't lazy I'd just use SST to deploy my next app to AWS, but clicking through amplify is easier. If you need to setup infrastructure, then yeah terraform or cdk would be the go to solution, but it obviously requires extra time to learn and fight with.

  • @fatihece3359
    @fatihece335911 ай бұрын

    Appreciate your all efforts making things easy for us Cody; last version of nextjs13 app deployed with amplify showing html chunks on the browser if left for a period of time or restart the chrome. anyone face with this problem ?

  • @WebDevCody

    @WebDevCody

    11 ай бұрын

    Explain more what you mean by chunks

  • @fatihece3359

    @fatihece3359

    11 ай бұрын

    @@WebDevCody many thanks for fast reply. Chunks seem like that 1:HL["/_next/static/media/7777133e901cd5ed-s.p.woff2",{"as":"font","type":"font/woff2"}] 2:HL["/_next/static/media/916d3686010a8de2-s.p.woff2",{"as":"font","type":"font/woff2"}] 3:HL["/_next/static/media/9a881e2ac07d406b-s.p.woff2",

  • @crofoh
    @crofoh Жыл бұрын

    Do you know if it's possible to deploy turborepo apps to amplify?

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    I'm not sure I have not tried

  • @NotADevOps
    @NotADevOps Жыл бұрын

    is this a Better Alternative using ec2 t3.medium server ?? for prod

  • @segunmoses412

    @segunmoses412

    4 ай бұрын

    Ec2 will cost you quite a lot of money

  • @eugeniosp3
    @eugeniosp3 Жыл бұрын

    Cody, thanks for this video. Before the routing change in Nextjs, setting up authentication via Amplify was a few step process. Super simple. Now, not so much. Would you be able to help with this? I spent a bit of time researching but the documentation was outdated/based on the previous router using pages directory. Thanks!

  • @quickwebstore
    @quickwebstore Жыл бұрын

    Hi Dev, thank for your video help me to deploy single next app. But when I try deploy Next app in Nx monorepo, I got 404 not found. Can you try it ?

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    Did you specific the directory for where your next app lives?

  • @quickwebstore

    @quickwebstore

    Жыл бұрын

    @@WebDevCody yes, I have set up baseDirectory and appRoot, build process is successful, but when I direct to url, i got 404 error

  • @quickwebstore

    @quickwebstore

    Жыл бұрын

    ​@@WebDevCody In my monorepo, I have 2 app, React app and Next app. I deployed React app successfully, but Next app dont

  • @SeibertSwirl
    @SeibertSwirl Жыл бұрын

    Good job babe ❤ I love you

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    thanks babe love you!

  • @kklowd
    @kklowd Жыл бұрын

    Are you not getting charged because you get 1 year free perhaps?

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    Could be it, I also don’t get much traffic

  • @ConAim
    @ConAim Жыл бұрын

    Good template for tRPC...

  • @michaels_offshore4504
    @michaels_offshore4504 Жыл бұрын

    Im getting an internal server error. Anyone else?

  • @danibachini2138

    @danibachini2138

    10 ай бұрын

    me too. Did you find the solution?

  • @mrkanata7696
    @mrkanata7696 Жыл бұрын

    nice

  • @YOitsBA
    @YOitsBA Жыл бұрын

    You just sold me on amplify

  • @lilililliilil
    @lilililliilil Жыл бұрын

    I just wonder why not Vercel? 🤔

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    Hobby license doesn’t allow you to host a product that makes money, and why pay 20 a month when I could pay 0 a month

  • @lilililliilil

    @lilililliilil

    Жыл бұрын

    @@WebDevCody Fair enough!

  • @joelamoako6778
    @joelamoako6778 Жыл бұрын

    for a large project it gets expensive

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    Where do the costs start at add up? And how does it compare to other hosting companies?

  • @joelamoako6778

    @joelamoako6778

    Жыл бұрын

    @@WebDevCody After conducting a cost analysis, I came to the realization that if your project's requirements expand, you'll need to use additional services from AWS. This could lead to an exponential increase in costs, which could potentially be higher (in terms of both cost and performance) than deploying a VPS in the traditional way and optimizing it manually.

  • @joelamoako6778

    @joelamoako6778

    Жыл бұрын

    For instance, in order to ensure optimal performance for the backend (API and database), it's necessary to have them on the same network. This would require using services like DynamoDB or RDS, with the latter being the more common choice for large-scale applications. However, using RDS can be quite expensive, which is a factor to consider.

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    @@joelamoako6778 yeah I can agree with everything you say. Usually aws charges you for traffic going in and out of aws, so if your db isn’t inside aws you’ll get extra charges. I think switching from amplify to somewhere else wouldn’t be too hard to do when that cost barrier comes

  • @FranzAllanSee
    @FranzAllanSee Жыл бұрын

    This didnt age well 🥲😅

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    Haha 😂 I still like them as a service, no lie. Just a single issue is causing me to switch until it gets fixed

  • @FranzAllanSee

    @FranzAllanSee

    Жыл бұрын

    @@WebDevCody loved your follow-up video btw! 😁 Who would have taught google analytics can mess up the caching 😅💀

  • @anonymoussloth6687

    @anonymoussloth6687

    6 ай бұрын

    Wait, why?

  • @SonAyoD
    @SonAyoD Жыл бұрын

    Can you deploy a monorepo configured with turbo repo in the same way?

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    I’ve never used turbo repo, but you can specify a directory and amplify will only deploy that sub directory

  • @SonAyoD

    @SonAyoD

    Жыл бұрын

    @@WebDevCody makes a lot of sense, thanks.

  • @oopss794
    @oopss794 Жыл бұрын

    hi there ! how to change memory size and timeout configuration?

  • @WebDevCody

    @WebDevCody

    Жыл бұрын

    I don't think there is a way.

  • @oopss794

    @oopss794

    Жыл бұрын

    i asked chatgpt-3 but the answer is outdated