Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTPS on Fargate's public IP - is it possible?

I run a service on Fargate and my main objective is to keep the cost as low as possible. A minor downtime is not an issue which is helpful with the current approach. I have one instance of the task, running on Fargate (with spot provider). I have my domain under route53 and i'm using a lambda function for updating the A Record of www when a new container starts. Everything seems to be working fine. I need to enable HTTPS though and i'm stuck with this one - don't know if it's possible. I created a (free) certificate by AWS but i don't know how to make the service to listen on port 443 (allowed in SG). Using a Load Balancer is not an option as it will automatically increase the cost by ~15$.

Is this possible? Maybe i just need to modify the container (using apache)?

like image 349
mikaint Avatar asked Aug 11 '26 02:08

mikaint


1 Answers

It's possible, but you will need to look into something like Let's Encrypt for an SSL certificate you can use directly inside the Fargate instance. ACM certificates cannot be used for that purpose.

like image 144
Mark B Avatar answered Aug 14 '26 14:08

Mark B