turnerlabs / harbor-compose

A tool for running containerized applications on Harbor
Apache License 2.0
15 stars 5 forks source link

fixes for https-only and iam certs #183

Closed jritsema closed 6 years ago

jritsema commented 6 years ago

Fixes the following for https-only:

ERROR: template: tf:30:23: executing "tf" at <.HTTPPort.PublicPort>: can't evaluate field PublicPort in type *cmd.terraformPort

Properly handles IAM server certs by emitting the following terraform based on the harbor load balancer.

data "aws_iam_server_certificate" "app" {
  name_prefix = "k8s-1502304042212088264"
  latest      = true
}
resource "aws_alb_listener" "https" {
  load_balancer_arn = "${aws_alb.main.id}"
  port              = "${var.https_port}"
  protocol          = "HTTPS"
  certificate_arn   = "${data.aws_iam_server_certificate.app.arn}"