Home > Blockchain >  HTTPS request on AWS Fargate task
HTTPS request on AWS Fargate task

Time:11-23

I need an ephemeral/temporary FLask app for each visitor of my web app. This Flask app can be deployed to AWS Fargate. I can create a new task on-demand, using AWS Lambda, each time to reduce AWS cost as much as possible. I do not need any Load Balancer with this architecture.

My issue is that I need HTTPS requests to the Flask app/Fargate task and I do not understand how to do it. A self-signed certificate does not seem to comply with modern browsers but how to attach a certificate to each Fargate public IP?

CodePudding user response:

There are two options:

  1. Buy a domain. Once you have your own domain, you can get free public SSL certificate using AWS ACM. Once you have this, you can deploy the cert on ALB which fronts your Fargate service.
  2. Setup a CloudFront (CF) distribution in front of your ALB. Default CF endpoint that you will get will be HTTPS.
  • Related