terraform-aws-kops-alb icon indicating copy to clipboard operation
terraform-aws-kops-alb copied to clipboard

problem receiving requests from domains without subdomains

Open denislee opened this issue 6 years ago • 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? (:

denislee avatar Mar 18 '18 15:03 denislee

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}"
}

int128 avatar Mar 19 '18 01:03 int128