https://pulumi.com logo
Title
b

bulky-policeman-29913

11/10/2021, 8:44 PM
Has anyone used the
@pulumi/vault
provider yet by any chance? I am not finding good examples/documentation around this on retrieving secrets from Hashicorp Vault.
l

little-cartoon-10569

11/10/2021, 9:08 PM
As I understand it, the provider is for managing Vault, not using it. You use it via their API, integrations with other tools and services, etc.
b

bulky-policeman-29913

11/10/2021, 9:09 PM
no you can indeed I just figured it out (in Typescript):
var mySecret = pulumi.output(vault.generic.getSecret({
    path: 'whatever/my-secret'
}));
the
mySecret.data[<key>]
gets the values for a given key
👍 1
l

little-cartoon-10569

11/10/2021, 9:10 PM
Ah. You can also use Vault as your Pulumi secrets provider, and then Pulumi will get the values for you behind the scenes.
b

bulky-policeman-29913

11/11/2021, 1:40 PM
Any idea how to set that up? That sounds cleaner than what I am doing.
The documentation seems fairly lacking atm for this scenario