int128/terraform-aws-kops-alb

problem receiving requests from domains without subdomains

Opened this issue · 1 comments

Hello,

I'm having issues with requests without subdomains.

Example:

Route 53 is registered like: foo.com
Any request to foo.com will not work, just requests coming from *.foo.com (e.g., www.foo.com)

It says the page is insecure because my alb domain (that I created with your terraform plan) is different from *.foo.com

There is any workaround for this? (:

Your certificate seems only for *.foo.com and it says insecure. You can get a certificate for both *.foo.com and foo.com by ACM.

If Terraform could not find the certificate, change the domain to that without *. as follows (probably work):

data "aws_acm_certificate" "service" {
  domain = "${var.alb_external_domain_name}"
}