Deploy Python FastAPI into ECS

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

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

  • @nicolassuarez2933
    @nicolassuarez2933 7 месяцев назад +2

    Outstanding! Best of its kind :)

    • @computingpower
      @computingpower  7 месяцев назад

      I'm glad you like it :)
      If you want to see some specific topics here on this channel, please let me know!

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

    Is there a way I can setup the API endpoint with my URL, so it can't be accessed by the public? Only selected users?

    • @computingpower
      @computingpower  11 месяцев назад

      Good question! For now I don’t have an answer, but I’ll get back to you on this, but I believe there is a solution for this

    • @computingpower
      @computingpower  11 месяцев назад

      For creating private connections using ECS, you can try some different strategies:
      1. Put the protected applications on a private VPC using private subnets:
      - docs.aws.amazon.com/apigateway/latest/developerguide/http-api-private-integration.html
      - aws.amazon.com/blogs/compute/setting-up-aws-privatelink-for-amazon-ecs-and-amazon-ecr/
      - aws.amazon.com/vpc/
      2. In case you want to keep applications on public subnets, you can add authentication layers on your project to prevent unauthorized access, such as Oauth auth for connections between the frontend and the backend. For simple protections, you can use Basic Auth.
      3. AWS WAF might help as well depending on some circumstances. It might be worth to take a look
      - aws.amazon.com/waf/
      I hope this helps :)

  • @furkanyildirimSU
    @furkanyildirimSU 7 месяцев назад +1

    I want to publish my app on 8000 port. So, what changes should I make?

    • @computingpower
      @computingpower  6 месяцев назад +1

      Hello, on your task definition on ECS, you will have to update the Port mapping to use port 8000. docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PortMapping.html
      docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#:~:text=instance%20memory%20.-,Port%20mappings,-portMappings

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

    do we need to pay something if you deploy fastapi project on cloud ?

    • @computingpower
      @computingpower  11 месяцев назад +3

      In this case, you will have to pay for the allocated AWS resources, which are:
      1. Fargate service
      2. Load Balancer
      3. Route 53 hosted zone
      The most expensive item on the list above is the Load Balancer
      Ps: The Load Balancer is optional for ECS. I decided to use it on the video due to some specs of the project

    • @kanno9750
      @kanno9750 7 месяцев назад

      @@computingpower So for general use, like a personal project, it will work fine without the load balancer?

  • @dddoes9528
    @dddoes9528 8 месяцев назад +1

    hey good evening, was wondering if you can teach us some stuff for docker !

    • @computingpower
      @computingpower  8 месяцев назад +1

      Hello! What kind of content would you like to see here? More beginner-friendly? Using some specific stack? Deploying Docker on the Cloud using ECS or Kubernetes? Please let me know :)

    • @dddoes9528
      @dddoes9528 8 месяцев назад

      @@computingpower hey it will be good if course can be beginner friendly and using Fastapi in detail it will be big help

    • @dddoes9528
      @dddoes9528 8 месяцев назад

      @@computingpower also how much you are paying to aws for this project i just created vpc and not using anything it cost me money

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

    wow content in this video and channel very amazing , can you upload more video, i here for spam like and just one subscribe for u