Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Create lb with http and https #104

Open
juliangruber opened this issue Jan 14, 2020 · 1 comment
Open

Create lb with http and https #104

juliangruber opened this issue Jan 14, 2020 · 1 comment

Comments

@juliangruber
Copy link

Thank you for this CLI!

I'm trying to create a load balancer that forwards both HTTP and HTTPS, with a certificate, and am getting this error:

$ fargate lb create NAME --port 80 --port 443 --certificate DOMAIN --region eu-west-1
 ⚠️  Could not create listener
    - ValidationError: A certificate cannot be specified for HTTP listeners
	status code: 400, request id: e913f856-4580-4dcf-bb9e-09ef791e2957

What am I doing wrong?

@juliangruber
Copy link
Author

juliangruber commented Jan 14, 2020

For now I'm just creating the HTTPS listener with the CLI and adding the HTTP listener manually afterwards I manually added a second listener which redirects HTTP to HTTPS

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant