Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform Configuration Not Connecting #47

Open
ntotten opened this issue Aug 11, 2022 · 0 comments
Open

Terraform Configuration Not Connecting #47

ntotten opened this issue Aug 11, 2022 · 0 comments

Comments

@ntotten
Copy link

ntotten commented Aug 11, 2022

I have a relatively straightforward configuration of 1password connect setup in terraform. The server seems to boot without any errors but I do not show any connections in the 1password dashboard.

resource "kubernetes_namespace" "op_connect" {
  provider = kubernetes.default-cluster
  metadata {
    name = "op-connect"
  }

  lifecycle {
    ignore_changes = [
      metadata[0].labels,
    ]
  }
}

resource "helm_release" "op_connect" {
  provider   = helm.default-cluster
  name       = "op-connect"
  namespace  = kubernetes_namespace.op_connect.metadata[0].name
  repository = "https://1password.github.io/connect-helm-charts/"
  chart      = "connect"
  version    = "1.8.1"
  set_sensitive {
    name  = "connect.credentials_base64"
    type  = "string"
    value = var.connect_credentials
  }

  set_sensitive {
    name  = "operator.token.value"
    type  = "string"
    value = var.operator_token
  }

  # Deploy the Kubernetes Operator alongside the Connect Server
  set {
    name  = "operator.create"
    value = true
  }
}

The variables are injected using Terraform cloud. The value of credentials_base64 was encoded using the script on the ESC Fargate doc:

cat 1password-credentials.json | base64 | tr '/+' '_-' | tr -d '=' | tr -d '\n'

The logs don't seem to have any errors.
image

Any ideas on what could be wrong would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant