Easily Deploy a .NET Application to AWS Elastic Beanstalk

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 47

  • @MilanJovanovicTech
    @MilanJovanovicTech  5 місяців тому +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

  • @AkosLukacs42
    @AkosLukacs42 5 місяців тому +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  5 місяців тому

      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.

  • @markky212
    @markky212 Місяць тому +3

    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 Місяць тому

      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  Місяць тому +1

      I think you're missing some permission in IAM

    • @markky212
      @markky212 Місяць тому +1

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

  • @wadekapcsos7798
    @wadekapcsos7798 2 місяці тому +1

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

  • @battomisaadi9251
    @battomisaadi9251 4 місяці тому +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  4 місяці тому +1

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

    • @battomisaadi9251
      @battomisaadi9251 4 місяці тому +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 4 місяці тому +1

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

  • @rohit704
    @rohit704 4 місяці тому +1

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

  • @angelo.piletti
    @angelo.piletti 4 місяці тому +1

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

    • @MilanJovanovicTech
      @MilanJovanovicTech  4 місяці тому

      Yes, you can do that

    • @angelo.piletti
      @angelo.piletti 4 місяці тому

      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?

  • @robertmrobo8954
    @robertmrobo8954 5 місяців тому +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 5 місяців тому +2

      10:49 apparently it was recorded on june 26

    • @MilanJovanovicTech
      @MilanJovanovicTech  5 місяців тому +1

      I record 'em a few weeks in advance, usually

    • @robertmrobo8954
      @robertmrobo8954 5 місяців тому

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

    • @MilanJovanovicTech
      @MilanJovanovicTech  5 місяців тому +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 4 місяці тому +1

      @@MilanJovanovicTech great minds think alike

  • @antonmartyniuk
    @antonmartyniuk 4 місяці тому

    Great video. Haven't user Elastic Beanstalk before

    • @MilanJovanovicTech
      @MilanJovanovicTech  4 місяці тому

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

    • @antonmartyniuk
      @antonmartyniuk 4 місяці тому

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

  • @Credi6464
    @Credi6464 5 місяців тому +1

    pure gold content, thank you!

  • @ketankolte4776
    @ketankolte4776 5 місяців тому +1

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

  • @ventoshe
    @ventoshe 4 місяці тому

    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  4 місяці тому +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 4 місяці тому

      ​@@MilanJovanovicTech Thanks!

  • @jorgeabrahamfernandezmaris1397
    @jorgeabrahamfernandezmaris1397 4 місяці тому

    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  4 місяці тому

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

  • @LaughingRam
    @LaughingRam 4 місяці тому

    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.

  • @jucalexxx3768
    @jucalexxx3768 5 місяців тому +1

    Why aws over azure?

    • @drhdev
      @drhdev 5 місяців тому

      Why azure over aws?

    • @Sammy2100
      @Sammy2100 5 місяців тому +1

      ​@@drhdev
      Lol

    • @DoeIsSlapen
      @DoeIsSlapen 5 місяців тому +1

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

    • @MilanJovanovicTech
      @MilanJovanovicTech  5 місяців тому +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 4 місяці тому

    K
    😊😊