terraform-provider-boundary icon indicating copy to clipboard operation
terraform-provider-boundary copied to clipboard

Error: no suitable auth method information found

Open rmgpinto opened this issue 2 years ago • 1 comments

I have the following provider declaration:

provider "boundary" {
  addr             = "https://${module.boundary.boundary_hostname}:9200"
  recovery_kms_hcl = <<-EOF
    kms "awskms" {
      purpose    = "recovery"
      key_id     = "global_root"
      access_key = "${module.boundary.boundary_iam.id}"
      secret_key = "${module.boundary.boundary_iam.secret}"
      kms_key_id = "${module.boundary.kms_recovery_key.id}"
    }
  EOF
}

This will only work, if module.boundary is applied beforehand.

addr and kms information is only known after module.boundary is applied. I'm not sure why isn't the provider deferring the evaluation of these variables until they are known. Can the boundary provider attempt to contact boundary server during run time?

rmgpinto avatar May 26 '22 12:05 rmgpinto

We are also seeing this problem. As boundary doesn't support the IAM role chaining that we require for our environment, we are trying to pass the variables in from an external script

william00179 avatar Oct 14 '22 10:10 william00179