Amazon Web Service ECS (SSL/HTTPS) Issue

Max Goh

I have currently set up my website in AWS ECS with a nginx reverse-proxy architecture with Docker. However, right now I'm facing the issue of securing my website with HTTPS.

I have googled for hours, and got my Amazon Certificate Manager issued, set up a Application Load Balancer with my Cluster's service but to no avail. My nginx.conf is listening at port 80, while my internal services are hosted on port 80 as well. Cloudflare routes my website to each service with *.domain.com.

  • So what exactly is the step that I might be missing or is there any proper guide there that I can reference from? I'm hoping to get it up using Amazon Certificate Manager, best with automated renewals. The second option would be a manually signed certificate by letsencrypt. But I have no idea how I can store the certificate because my repository right now is public.

  • I have 2 url currently. domain.com & api.domain.com, which both are running on the same ECS Instance. Is it possible to secure both of them as it would be necessary for that so that I can make backend calls from my frontend (HTTPS request policy).

Thanks in advance guys!

Update:

I have finally gotten my SSL to work with my domain. For those who are encountering the same issue. Try using the classic load balancer instead, I tried multiple times with Application Load Balancer and mapping to different ports but it doesn't work. But it works the moment I used Classical Load Balancer.

Mark B
  1. Cloudflare should be routing everything to the ALB, not directly to ECS. You have to route all traffic through the ALB in order for the ALB to serve the SSL certificate.

  2. When you request a certificate in ACM you can list multiple domains that you want the certificate to work for. The easiest way to make the certificate to work for your domain and every possible subdomain is to request a certificate for "domain.com" and "*.domain.com".

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

error CS0030: Cannot convert type 'Simple.Amazon.ECS.ImageSet[]' to 'Simple.Amazon.ECS.ImageSet' in Amazon Web Service

From Dev

Angularjs and Web service Issue

From Dev

is it possible to connect amazon web service rds with amazon web service cognito?

From Dev

is it possible to connect amazon web service rds with amazon web service cognito?

From Dev

Amazon Web Service SDK iOS

From Dev

Django on Amazon Web Service (AWS)

From Dev

Request authorization of Amazon Web Service

From Dev

Troubles with Dockerfile on Amazon Web Service Beanstalk

From Dev

GetAuthToken method of Amazon web service not working

From Dev

Using Java web service on Amazon cloud

From Dev

Using Java web service on Amazon cloud

From Dev

GetAuthToken method of Amazon web service not working

From Dev

Amazon Web Service Wordpress Plugin cURL Error

From Dev

Email Forwarding on Amazon Web Service SES

From Dev

Use Amazon ElasticSearch Service as a web service for PHP application

From Dev

How do I use insecure docker registries with Amazon EC2 Container Service (ECS)?

From Dev

API Gateway making calls to Application Load Balancer endpoint in front of a micro service deployed in Amazon ECS

From Dev

Issue in deploying REST Web Service in eclipse

From Dev

Conversion Issue when consuming soap web service

From Dev

Calling Web Service from jQuery .ajax() issue

From Dev

.NET Web Service Client Calls performance issue

From Dev

How to understand Amazon ECS cluster

From Dev

Amazon Container Registry Only with ECS?

From Dev

Amazon ECS host directory access

From Dev

Creating a RethinkDB cluster on Amazon ECS

From Dev

Amazon ECS tasks and autoscaling groups

From Dev

Creating a RethinkDB cluster on Amazon ECS

From Dev

How to synchronize the local DynamoDb and Amazon DynamoDb web service

From Dev

Amazon Web Service CodeDeploy appspec.yml problems

Related Related

  1. 1

    error CS0030: Cannot convert type 'Simple.Amazon.ECS.ImageSet[]' to 'Simple.Amazon.ECS.ImageSet' in Amazon Web Service

  2. 2

    Angularjs and Web service Issue

  3. 3

    is it possible to connect amazon web service rds with amazon web service cognito?

  4. 4

    is it possible to connect amazon web service rds with amazon web service cognito?

  5. 5

    Amazon Web Service SDK iOS

  6. 6

    Django on Amazon Web Service (AWS)

  7. 7

    Request authorization of Amazon Web Service

  8. 8

    Troubles with Dockerfile on Amazon Web Service Beanstalk

  9. 9

    GetAuthToken method of Amazon web service not working

  10. 10

    Using Java web service on Amazon cloud

  11. 11

    Using Java web service on Amazon cloud

  12. 12

    GetAuthToken method of Amazon web service not working

  13. 13

    Amazon Web Service Wordpress Plugin cURL Error

  14. 14

    Email Forwarding on Amazon Web Service SES

  15. 15

    Use Amazon ElasticSearch Service as a web service for PHP application

  16. 16

    How do I use insecure docker registries with Amazon EC2 Container Service (ECS)?

  17. 17

    API Gateway making calls to Application Load Balancer endpoint in front of a micro service deployed in Amazon ECS

  18. 18

    Issue in deploying REST Web Service in eclipse

  19. 19

    Conversion Issue when consuming soap web service

  20. 20

    Calling Web Service from jQuery .ajax() issue

  21. 21

    .NET Web Service Client Calls performance issue

  22. 22

    How to understand Amazon ECS cluster

  23. 23

    Amazon Container Registry Only with ECS?

  24. 24

    Amazon ECS host directory access

  25. 25

    Creating a RethinkDB cluster on Amazon ECS

  26. 26

    Amazon ECS tasks and autoscaling groups

  27. 27

    Creating a RethinkDB cluster on Amazon ECS

  28. 28

    How to synchronize the local DynamoDb and Amazon DynamoDb web service

  29. 29

    Amazon Web Service CodeDeploy appspec.yml problems

HotTag

Archive