# Using Kong with AWS EKS

**URL:** <https://discuss.konghq.com/t/using-kong-with-aws-eks/7357>\
**Category:** General\
**Tags:** kubernetes\
**Created:** [October 27, 2020, 6:10pm UTC](https://discuss.konghq.com/t/using-kong-with-aws-eks/7357 "2020-10-27T18:10:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubenhak](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/rubenhak/32/2319_2.png) [@rubenhak](https://discuss.konghq.com/u/rubenhak)\
**Post date:** [October 27, 2020, 6:10pm UTC](https://discuss.konghq.com/t/using-kong-with-aws-eks/7357/1 "2020-10-27T18:10:24Z")

</div>

I’ve deployed Kong on AWS using Helm. Need to terminate the SSL on the LoadBalancer. HTTP request works. HTTPS request fails with “400 Bad Request - The plain HTTP request was sent to HTTPS port” error.

How to configure the Kong Proxy/LB so that things work properly? I’m ok with either HTTP or HTTPS connection behind the LB. It is a requirement for the SSL to be terminated on the LB though.

Another issue is that this creates an LB with a random DNS name. Tried setting `service.beta.kubernetes.io/aws-load-balancer-eip-allocations` but it doesn’t work either. What is the best way to “pin” either the domain name or an IP address to the LB?

Also, this creates a legacy/classic LB. Couldn’t get the k8s service to create an AWS ALB.

Helm Chart overrides:

```auto
proxy:
  enabled: true
  http:
    enabled: true
  tls:
    enabled: true
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: <my-cert-name>
    service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
    service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"

```

Installing using:

```auto
$ helm repo add kong https://charts.konghq.com
$ helm repo update
$ helm install kong kong/kong \
  --atomic \
  -n kong \
  -f overrides.yaml

```
