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

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 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. 8 หลายเดือนก่อน

    Thanks so much. Helped me a lot.

  • @eliaspaulinho8435
    @eliaspaulinho8435 9 หลายเดือนก่อน

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

  • @nardu
    @nardu 4 หลายเดือนก่อน

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

  • @brianfarley2723
    @brianfarley2723 ปีที่แล้ว

    Sick Bruski.

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

  • @senlee325
    @senlee325 9 หลายเดือนก่อน

    Thank you very helpful

  • @moinulislammoin
    @moinulislammoin ปีที่แล้ว

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

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

  • @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 8 หลายเดือนก่อน

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

  • @bradenborman4396
    @bradenborman4396 ปีที่แล้ว

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

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

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

  • @hoyinli7462
    @hoyinli7462 5 หลายเดือนก่อน

    Your video is simply good job! SUpport!

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

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

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

  • @midlandscoder
    @midlandscoder ปีที่แล้ว +1

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

  • @engelshentenawy
    @engelshentenawy 8 หลายเดือนก่อน +1

    can you deploy to amplify using sst ?

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

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

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

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

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

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

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

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

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

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

  • @jealousgx4463
    @jealousgx4463 ปีที่แล้ว

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

  • @SeibertSwirl
    @SeibertSwirl ปีที่แล้ว

    Good job babe ❤ I love you

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว

      thanks babe love 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

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

  • @ooogabooga5111
    @ooogabooga5111 ปีที่แล้ว +2

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

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

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

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

  • @NotADevOps
    @NotADevOps ปีที่แล้ว

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

    • @segunmoses412
      @segunmoses412 9 หลายเดือนก่อน

      Ec2 will cost you quite a lot of money

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

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

  • @AndresRodriguez-ul7hr
    @AndresRodriguez-ul7hr หลายเดือนก่อน

    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.

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

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

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

  • @ooogabooga5111
    @ooogabooga5111 ปีที่แล้ว +2

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

  • @ConAim
    @ConAim ปีที่แล้ว

    Good template for tRPC...

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

  • @brian.a.0213
    @brian.a.0213 ปีที่แล้ว

    You just sold me on amplify

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

    • @danibachini2138
      @danibachini2138 ปีที่แล้ว

      me too. Did you find the solution?

  • @FHIRGo
    @FHIRGo หลายเดือนก่อน

    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 10 หลายเดือนก่อน +1

      Wait, why?

  • @miguellion3915
    @miguellion3915 3 หลายเดือนก่อน

    Nice