Mark
Mark

Reputation: 1924

How do I combine AWS API Gateway and Application Load Balancer for HTTPS outside of us-east-1?

I am attempting to route traffic through the AWS API Gateway to my ECS containers running in a private subnet via an Application Load Balancer running in a public subnet. Using plain old HTTP everything works perfectly fine, but now I want to add transport layer security (TLS, fka SSL) to the communication between the gateway and the load balancer. In other words, terminate SSL at the load balancer.

Execution failed due to configuration error: Host name 'XXXXXXXXX-lb-XXXXXXXXX..elb.amazonaws.com' does not match the certificate subject provided by the peer (CN=)

Given my load balancer is not in the us-east-1 region how can I achieve my goal?

Upvotes: 5

Views: 7237

Answers (1)

Mark B
Mark B

Reputation: 200562

Assign a custom domain name to the load balancer. Then assign a valid SSL certificate to the load balancer using the ACM service. Then reference the load balancer using the custom domain name.

Upvotes: 3

Related Questions