aws-samples / bedrock-access-gateway

OpenAI-Compatible RESTful APIs for Amazon Bedrock
MIT No Attribution
224 stars 46 forks source link

SSL TLS Support #5

Open michaellatman opened 5 months ago

michaellatman commented 5 months ago

Hello, I noticed this project deploys only a http url, SSL should probably be the default

daixba commented 5 months ago

Thanks Michael for the issue.

Currently, there is no plan to add support of using SSL by default. However, you can fully customize the solution once it's deployed on AWS based on your need. Simply follow below steps and you will have the SSL enbled.

  1. Go to ALB and find the listerner rule, and change from port 80 (HTTP) to 443 (HTTPS) and associate that with an ACM certificate
  2. Change the security group inbound rule of the ALB to accept HTTPS inbound.
  3. Use Route53 for custom domain for the ALB (optional)
  4. Change your base url to https instead of http.

There is no need to change the code for this. Hope this helps.