hashicorp / boundary-reference-architecture

Example reference architecture for a high availability Boundary deployment on AWS.
https://boundaryproject.io
Mozilla Public License 2.0
211 stars 105 forks source link

Error parsing KMS HCL: At 6:19: Unknown token: 6:19 IDENT file #58

Open MikaDiablo opened 2 years ago

MikaDiablo commented 2 years ago

I am trying to test the boundary high availability example for GCP; So I verified that the infrastructure is well deployed, and works.

But I have issues with the boundary configuration, i tried to pass directly the keys name and the keys path but I still have the same issue

provider "boundary" {
  addr             = var.url
  recovery_kms_hcl = <<EOT
  kms "gcpckms" {
    purpose     = "recovery"
    key_ring    = "${var.key_ring}"
    crypto_key  = ${var.recovery_key}"
    project     = "${var.gcp_project}"
    credentials = file("/PATH to .json file")
    region      = "global"
  }
  EOT
}

ERROR


│ Error: error reading wrappers from "recovery_kms_hcl": Error parsing KMS HCL: At 6:19: Unknown token: 6:19 IDENT file
│ 
│   with provider["registry.terraform.io/hashicorp/boundary"],
│   on main.tf line 10, in provider "boundary":
│   10: provider "boundary" {
│ 
``` bash

## VERSION

Terraform V1.0.0
malnick commented 2 years ago

Thanks for trying out this repo @MikaDiablo - this looks like it might be related to this issue. Are you running TF 12 or have recently upgraded?