boundary-reference-architecture icon indicating copy to clipboard operation
boundary-reference-architecture copied to clipboard

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

Open MikaDiablo opened this issue 4 years ago • 1 comments

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

MikaDiablo avatar Oct 04 '21 16:10 MikaDiablo

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?

malnick avatar Oct 12 '21 20:10 malnick