Easily Deploy a .NET Application to AWS Elastic Beanstalk

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

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

  • @MilanJovanovicTech
    @MilanJovanovicTech  4 месяца назад +12

    Get the source code for this video for FREE → the-dotnet-weekly.ck.page/elastic-beanstalk
    Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
    Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt

  • @markky212
    @markky212 26 дней назад +2

    It wasn't working for me-I kept getting an error message every time: "The Launch Configuration creation operation is not available in your account. Use launch templates to create configuration templates for your Auto Scaling groups." 🤔

    • @markky212
      @markky212 26 дней назад

      I found information on forums that you need to have 'DisableIMDSv1' set to 'true' and 'RootVolumeType' set to 'gp3'. Disabling 'DisableIMDSv1' doesn't help, but I don't know where to set 'RootVolumeType'.

    • @MilanJovanovicTech
      @MilanJovanovicTech  26 дней назад +1

      I think you're missing some permission in IAM

    • @markky212
      @markky212 26 дней назад

      The solution was in "Auto scaling group" section set "Spot instance"

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

    Two things that would make the video longer, but more "production-ready": 13:02 Maybe a better way would be to use secrets manager to store a connection string (I assume it contains the db password)? And is there an easy CI/CD option from the usual hosted services? Would be nice promo for AWS.

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

      I like to keep the videos focused on one topic. But I promise to cover secrets manager in a future video. Will also check for CI/CD options. There's the AWS CLI tooling, but I'll see if I can demonstrate how to use it from a pipeline.

  • @wadekapcsos7798
    @wadekapcsos7798 Месяц назад +1

    Great video and explanation, you have a real talent of keeping things simple for complex situations

  • @battomisaadi9251
    @battomisaadi9251 3 месяца назад +3

    I have a couple of questions regarding my setup:
    1-If I have an existing database in RDS before creating the Elastic Beanstalk environment, do I only need to get the endpoint and add it to the environment properties without needing Elastic Beanstalk to create an RDS database?
    2-Why does the default domain name not open on other sources like Android or iOS devices, but it opens on the desktop where it was created? Since I am developing a Flutter app and handling the backend, this issue means that when we request API services from the Flutter app, the domain does not respond. How can I fix this and ensure the domain opens on all devices?

    • @MilanJovanovicTech
      @MilanJovanovicTech  3 месяца назад +1

      1 - Yes.
      2 - No idea. Any answers on SO?

    • @battomisaadi9251
      @battomisaadi9251 3 месяца назад +1

      I have successfully configured the connection and published the application on AWS. I tested the HTTP API request from Flutter to the hosted domain, and it worked perfectly.If I am working on a social media platform, I have configured the settings similarly to yours. However, in my case, I need to work on a larger scale. Can you suggest good configurations for this scenario?

  • @smc_onetwo
    @smc_onetwo 3 месяца назад +1

    this was a huge help. thank you for making this!

  • @angelo.piletti
    @angelo.piletti 3 месяца назад +1

    Hello! Thank you, Milan. Does it support websocket?

    • @MilanJovanovicTech
      @MilanJovanovicTech  3 месяца назад

      Yes, you can do that

    • @angelo.piletti
      @angelo.piletti 3 месяца назад

      Thank you for the reply, Milan. Your videos are always great. Let me ask you something else. Do you know if it’s possible to use Beanstalk with ECS + ECR for docker builded apps?

  • @antonmartyniuk
    @antonmartyniuk 3 месяца назад

    Great video. Haven't user Elastic Beanstalk before

    • @MilanJovanovicTech
      @MilanJovanovicTech  3 месяца назад

      Worth a try if you don't have a DevOps to do the setup.

    • @antonmartyniuk
      @antonmartyniuk 3 месяца назад

      @@MilanJovanovicTech I am sure that a lead developer or an architect must know how to do such things himself, despite having DevOps engineers

  • @robertmrobo8954
    @robertmrobo8954 4 месяца назад +7

    I am yet to see a video by Milan which wasn't upload a few hours or a day after someone uploaded a video with the same subject.

    • @AkosLukacs42
      @AkosLukacs42 4 месяца назад +2

      10:49 apparently it was recorded on june 26

    • @MilanJovanovicTech
      @MilanJovanovicTech  4 месяца назад +1

      I record 'em a few weeks in advance, usually

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

      @@MilanJovanovicTech Fair-play to you then if that is the case. Co-incidence at its best I guess.

    • @MilanJovanovicTech
      @MilanJovanovicTech  4 месяца назад +2

      ​@@robertmrobo8954 Happens all the time. The .NET community is small, so chance for overlap is pretty high. I've seen cases where another creator would post the same video as me after a few days. It happens.

    • @kennethcanet1633
      @kennethcanet1633 3 месяца назад +1

      @@MilanJovanovicTech great minds think alike

  • @ketankolte4776
    @ketankolte4776 4 месяца назад +1

    Thank you for this content, this is exactly what I was looking for

  • @ventoshe
    @ventoshe 3 месяца назад

    Thanks for this helpful tutorial, Milan 👍🏻🙏
    I also watched your AWS lambda deployment video and my question is what would be the considerations whether to choose AWS lambda or Elastic Beanstalk?
    Thanks!

    • @MilanJovanovicTech
      @MilanJovanovicTech  3 месяца назад +1

      They're very different. Elastic Beanstalk runs your app in an EC2 instance (like a VPC), which is much more powerful for running .NET applications. EC2 is better for running an entire API. Lambda is great for running one endpoint (or a few endpoints). If that makes sense?

    • @ventoshe
      @ventoshe 3 месяца назад

      ​@@MilanJovanovicTech Thanks!

  • @Credi6464
    @Credi6464 4 месяца назад +1

    pure gold content, thank you!

  • @LaughingRam
    @LaughingRam 3 месяца назад

    Have you ever deployed a .net app to AWS Amplify? Not sure if I'm missing something obvious, but it seems like a huge pain. I've gotten it to deploy but the site will never load (just says 404). Would love to see how you deploy to Amplify if you've ever done it.

  • @rohit704
    @rohit704 3 месяца назад +1

    Do you have plan to make video on event sourcing pattern ? I found it most complex pattern .

  • @jorgeabrahamfernandezmaris1397
    @jorgeabrahamfernandezmaris1397 3 месяца назад

    Thanks for the video youre amazing. I have a doubt. I followed all the steps by one by one. I deployed correctly my application. I'm getting green health on mi environment elastic console. But when i click on the domain given im getting status code 404 in all my request, even I can not see my swagger. but all works perfectly on my local environment. Any suggest that can you give me?

    • @MilanJovanovicTech
      @MilanJovanovicTech  3 месяца назад

      Did you set up the environment so that Swagger is exposed? (or removed the condition)
      Are you calling the correct API routes?

  • @jucalexxx3768
    @jucalexxx3768 4 месяца назад +1

    Why aws over azure?

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

      Why azure over aws?

    • @Sammy2100
      @Sammy2100 4 месяца назад +1

      ​@@drhdev
      Lol

    • @DoeIsSlapen
      @DoeIsSlapen 4 месяца назад +1

      Don't think Amazon would like that after paying him to make it about AWS.

    • @MilanJovanovicTech
      @MilanJovanovicTech  4 месяца назад +2

      Wrong way to look at it. This is a collab with AWS, so I'm talking about AWS.
      I've used both Azure and AWS professionally. You won't go wrong with either one.
      That being said, Azure has more native integration with .NET (expected, as its a MSFT product).

  • @AjeetKumar-oc8wv
    @AjeetKumar-oc8wv 3 месяца назад

    K
    😊😊