https://pulumi.com logo
Title
f

fast-dinner-32080

01/13/2020, 10:36 PM
I am trying to create a vaultProvider using approle. I have tried adding AuthLoginArgs with the role_id and secret_id but it is giving me the error stating that "auth_login.0.parameters: should be a map". I was unable to find any good example that is doing this so hoping someone here can help.
var vaultProvider = new Provider("vault",
  new Pulumi.Vault.ProviderArgs
  {
    Address = config.Require("vaultEndpoint"),
    AuthLogins = new InputList<ProviderAuthLoginsArgs>
    {
      new ProviderAuthLoginsArgs
      {
        Path = $"auth/approle/role/{config.Require("vaultAppRoleName")}/login",
        Parameters = new InputMap<string>
        {
          {"role_id", config.Require("vaultAppRoleId")},
          {"secret_id", config.RequireSecret("vaultAppRoleSecretId")}
        },
      }
    }
  });
t

tall-librarian-49374

01/13/2020, 10:38 PM
Could you please create an issue for this?
f

fast-dinner-32080

01/13/2020, 10:39 PM
Will do!