#vault - March 2022

vaultArchived
5 messages

:vault: Discussions related to Hashicorp Vault

Jonás Márquez
Jonás Márquezover 4 years ago
Hello everyone! Is someone using Vault from Atlantis? I have Atlantis in a Docker container on an EC2 Instance in AWS, in the EC2 instance I have configured the Vault agent and mounted the vault-token in the Atlantis container, I am trying access Vault from Terraform with the Vault provider as follows:
Jonás Márquez
Jonás Márquezover 4 years ago
provider "vault" {
  skip_tls_verify = true
  address = "https://<IP-ADDRESS>:8200/"
  token = "~/.vault-token"
}
Jonás Márquez
Jonás Márquezover 4 years ago
but when I do the Pull Request it gives me the following error:

running "/usr/local/bin/terraform plan -input=false -refresh -out \"/home/atlantis/.atlantis/repos/TEST_PROYECT/test-atlantis-repo/44/default/default.tfplan\"" in "/home/atlantis/.atlantis/repos/TEST_PROJECT/test-atlantis-repo/44/default": exit status 1
╷
│ Error: Error making API request.
│ 
│ URL: GET https://<IP-ADDRESS>:8200/v1/auth/token/lookup-self
│ Code: 400. Errors:
│ 
│ * error performing token check: failed to look up namespace from the token: no namespace
│ 
│   with provider["<http://registry.terraform.io/hashicorp/vault|registry.terraform.io/hashicorp/vault>"],
│   on main.tf line 8, in provider "vault":
│    8: provider "vault" {
Jonás Márquez
Jonás Márquezover 4 years ago
Namespaces are only used for Vault Enterprise and this is not the case, has anyone been able to implement it?
Zachary Loeber
Zachary Loeberover 4 years ago
You did not pass in the address as is right?