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

Поделиться
HTML-код
  • Опубликовано: 17 янв 2025

Комментарии • 102

  • @toddribnek6660
    @toddribnek6660 Год назад +9

    Thanks, good tip about the commercial limitation of vercel.

  • @javierneri81
    @javierneri81 Год назад +10

    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  Год назад +4

      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 Год назад

      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

  • @Frankywright.
    @Frankywright. 9 месяцев назад

    Thanks so much. Helped me a lot.

  • @eliaspaulinho8435
    @eliaspaulinho8435 10 месяцев назад

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

  • @senlee325
    @senlee325 10 месяцев назад

    Thank you very helpful

  • @corygrewohl8180
    @corygrewohl8180 Год назад +2

    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

  • @SiKSC2
    @SiKSC2 Год назад +1

    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  Год назад +3

      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

  • @nardu
    @nardu 5 месяцев назад

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

  • @ooogabooga5111
    @ooogabooga5111 Год назад +2

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

  • @TstormGG
    @TstormGG Год назад +1

    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  Год назад +3

      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.

  • @ahmedghonim-f4v
    @ahmedghonim-f4v Год назад +1

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

    • @WebDevCody
      @WebDevCody  Год назад

      Not sure I understand your question

    • @ahmedghonim-f4v
      @ahmedghonim-f4v Год назад +1

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

  • @moinulislammoin
    @moinulislammoin Год назад

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

  • @bradenborman4396
    @bradenborman4396 Год назад

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

  • @anonymoussloth6687
    @anonymoussloth6687 9 месяцев назад +2

    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 9 месяцев назад

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

  • @midlandscoder
    @midlandscoder Год назад +1

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

  • @engelshentenawy
    @engelshentenawy 9 месяцев назад +1

    can you deploy to amplify using sst ?

  • @hoyinli7462
    @hoyinli7462 6 месяцев назад

    Your video is simply good job! SUpport!

  • @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

  • @stringcheezus-ftw
    @stringcheezus-ftw Год назад

    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  Год назад +1

      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.

  • @brianfarley2723
    @brianfarley2723 Год назад

    Sick Bruski.

  • @NokronSwadion
    @NokronSwadion Год назад +1

    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
    @RexMapz Год назад

    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.

  • @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.

  • @ToddDunning
    @ToddDunning Год назад +1

    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 😂

  • @jealousgx4463
    @jealousgx4463 Год назад

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

  • @issahab2823
    @issahab2823 Год назад +1

    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

  • @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

  • @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.

  • @harsh_pathak27
    @harsh_pathak27 Год назад

    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?

  • @c_g_stewart
    @c_g_stewart Год назад

    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  Год назад +1

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

    • @c_g_stewart
      @c_g_stewart Год назад

      @@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.

  • @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.

  • @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

  • @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.

  • @musiclovers8488
    @musiclovers8488 4 месяца назад

    can i deploy both frontend and backend both like my app is in next js and my backend is on node js than how can we deploy pls help

  • @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

  • @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

  • @butwhothehellknows
    @butwhothehellknows Год назад

    Good job babe ❤ I love you

  • @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

  • @samirmishra9946
    @samirmishra9946 Год назад +3

    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  Год назад +1

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

  • @lilililliilil
    @lilililliilil Год назад

    I just wonder why not Vercel? 🤔

    • @WebDevCody
      @WebDevCody  Год назад +3

      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!

  • @NotADevOps
    @NotADevOps Год назад

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

    • @segunmoses412
      @segunmoses412 10 месяцев назад

      Ec2 will cost you quite a lot of money

  • @AndresRodriguez-ul7hr
    @AndresRodriguez-ul7hr 2 месяца назад

    Hello Cody, can I have a PRIVATE Web app/Private URL (I don't have a domain) ONLY FOR PERSONAL USE/Share to some friends, on Amazon? 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

  • @fatihece3359
    @fatihece3359 Год назад

    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  Год назад

      Explain more what you mean by chunks

    • @fatihece3359
      @fatihece3359 Год назад

      @@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",

  • @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!

  • @kkomax7
    @kkomax7 Год назад

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

  • @mrkanata7696
    @mrkanata7696 Год назад

    nice

  • @kklowd
    @kklowd Год назад +1

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

    • @WebDevCody
      @WebDevCody  Год назад

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

  • @michaels_offshore4504
    @michaels_offshore4504 Год назад

    Im getting an internal server error. Anyone else?

  • @ooogabooga5111
    @ooogabooga5111 Год назад +2

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

  • @ConAim
    @ConAim Год назад

    Good template for tRPC...

  • @yoitsba
    @yoitsba Год назад

    You just sold me on amplify

  • @FHIRGo
    @FHIRGo 2 месяца назад

    Are you trying to convey this message to someone, or are you just doing it yourself? If your intent is to communicate it to someone else, you might want to slow down and ensure clarity.

  • @joelamoako6778
    @joelamoako6778 Год назад +3

    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 Год назад +2

      @@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 Год назад +2

      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  Год назад +2

      @@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 Год назад +9

    This didnt age well 🥲😅

    • @WebDevCody
      @WebDevCody  Год назад +3

      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 Год назад +3

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

    • @anonymoussloth6687
      @anonymoussloth6687 11 месяцев назад +1

      Wait, why?

  • @miguellion3915
    @miguellion3915 4 месяца назад

    Nice