HashiCorp Vault

v5.6.0 published on Tuesday, Aug 16, 2022 by Pulumi

AuthBackendConfig

Import

Azure auth backends can be imported using auth/, the backend path, and /config e.g.

 $ pulumi import vault:azure/authBackendConfig:AuthBackendConfig example auth/azure/config

Example Usage

using System.Collections.Generic;
using Pulumi;
using Vault = Pulumi.Vault;

return await Deployment.RunAsync(() => 
{
    var exampleAuthBackend = new Vault.AuthBackend("exampleAuthBackend", new()
    {
        Type = "azure",
    });

    var exampleAuthBackendConfig = new Vault.Azure.AuthBackendConfig("exampleAuthBackendConfig", new()
    {
        Backend = exampleAuthBackend.Path,
        TenantId = "11111111-2222-3333-4444-555555555555",
        ClientId = "11111111-2222-3333-4444-555555555555",
        ClientSecret = "01234567890123456789",
        Resource = "https://vault.hashicorp.com",
    });

});
package main

import (
	"github.com/pulumi/pulumi-vault/sdk/v5/go/vault"
	"github.com/pulumi/pulumi-vault/sdk/v5/go/vault/azure"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAuthBackend, err := vault.NewAuthBackend(ctx, "exampleAuthBackend", &vault.AuthBackendArgs{
			Type: pulumi.String("azure"),
		})
		if err != nil {
			return err
		}
		_, err = azure.NewAuthBackendConfig(ctx, "exampleAuthBackendConfig", &azure.AuthBackendConfigArgs{
			Backend:      exampleAuthBackend.Path,
			TenantId:     pulumi.String("11111111-2222-3333-4444-555555555555"),
			ClientId:     pulumi.String("11111111-2222-3333-4444-555555555555"),
			ClientSecret: pulumi.String("01234567890123456789"),
			Resource:     pulumi.String("https://vault.hashicorp.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.AuthBackend;
import com.pulumi.vault.AuthBackendArgs;
import com.pulumi.vault.azure.AuthBackendConfig;
import com.pulumi.vault.azure.AuthBackendConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleAuthBackend = new AuthBackend("exampleAuthBackend", AuthBackendArgs.builder()        
            .type("azure")
            .build());

        var exampleAuthBackendConfig = new AuthBackendConfig("exampleAuthBackendConfig", AuthBackendConfigArgs.builder()        
            .backend(exampleAuthBackend.path())
            .tenantId("11111111-2222-3333-4444-555555555555")
            .clientId("11111111-2222-3333-4444-555555555555")
            .clientSecret("01234567890123456789")
            .resource("https://vault.hashicorp.com")
            .build());

    }
}
import pulumi
import pulumi_vault as vault

example_auth_backend = vault.AuthBackend("exampleAuthBackend", type="azure")
example_auth_backend_config = vault.azure.AuthBackendConfig("exampleAuthBackendConfig",
    backend=example_auth_backend.path,
    tenant_id="11111111-2222-3333-4444-555555555555",
    client_id="11111111-2222-3333-4444-555555555555",
    client_secret="01234567890123456789",
    resource="https://vault.hashicorp.com")
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";

const exampleAuthBackend = new vault.AuthBackend("exampleAuthBackend", {type: "azure"});
const exampleAuthBackendConfig = new vault.azure.AuthBackendConfig("exampleAuthBackendConfig", {
    backend: exampleAuthBackend.path,
    tenantId: "11111111-2222-3333-4444-555555555555",
    clientId: "11111111-2222-3333-4444-555555555555",
    clientSecret: "01234567890123456789",
    resource: "https://vault.hashicorp.com",
});
resources:
  exampleAuthBackend:
    type: vault:AuthBackend
    properties:
      type: azure
  exampleAuthBackendConfig:
    type: vault:azure:AuthBackendConfig
    properties:
      backend: ${exampleAuthBackend.path}
      tenantId: 11111111-2222-3333-4444-555555555555
      clientId: 11111111-2222-3333-4444-555555555555
      clientSecret: 01234567890123456789
      resource: https://vault.hashicorp.com

Create a AuthBackendConfig Resource

new AuthBackendConfig(name: string, args: AuthBackendConfigArgs, opts?: CustomResourceOptions);
@overload
def AuthBackendConfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      backend: Optional[str] = None,
                      client_id: Optional[str] = None,
                      client_secret: Optional[str] = None,
                      environment: Optional[str] = None,
                      resource: Optional[str] = None,
                      tenant_id: Optional[str] = None)
@overload
def AuthBackendConfig(resource_name: str,
                      args: AuthBackendConfigArgs,
                      opts: Optional[ResourceOptions] = None)
func NewAuthBackendConfig(ctx *Context, name string, args AuthBackendConfigArgs, opts ...ResourceOption) (*AuthBackendConfig, error)
public AuthBackendConfig(string name, AuthBackendConfigArgs args, CustomResourceOptions? opts = null)
public AuthBackendConfig(String name, AuthBackendConfigArgs args)
public AuthBackendConfig(String name, AuthBackendConfigArgs args, CustomResourceOptions options)
type: vault:azure:AuthBackendConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AuthBackendConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AuthBackendConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AuthBackendConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AuthBackendConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AuthBackendConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AuthBackendConfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AuthBackendConfig resource accepts the following input properties:

Resource string

The configured URL for the application registered in Azure Active Directory.

TenantId string

The tenant id for the Azure Active Directory organization.

Backend string

The path the Azure auth backend being configured was mounted at. Defaults to azure.

ClientId string

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

ClientSecret string

The client secret for credentials to query the Azure APIs.

Environment string

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

Resource string

The configured URL for the application registered in Azure Active Directory.

TenantId string

The tenant id for the Azure Active Directory organization.

Backend string

The path the Azure auth backend being configured was mounted at. Defaults to azure.

ClientId string

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

ClientSecret string

The client secret for credentials to query the Azure APIs.

Environment string

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

resource String

The configured URL for the application registered in Azure Active Directory.

tenantId String

The tenant id for the Azure Active Directory organization.

backend String

The path the Azure auth backend being configured was mounted at. Defaults to azure.

clientId String

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

clientSecret String

The client secret for credentials to query the Azure APIs.

environment String

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

resource string

The configured URL for the application registered in Azure Active Directory.

tenantId string

The tenant id for the Azure Active Directory organization.

backend string

The path the Azure auth backend being configured was mounted at. Defaults to azure.

clientId string

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

clientSecret string

The client secret for credentials to query the Azure APIs.

environment string

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

resource str

The configured URL for the application registered in Azure Active Directory.

tenant_id str

The tenant id for the Azure Active Directory organization.

backend str

The path the Azure auth backend being configured was mounted at. Defaults to azure.

client_id str

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

client_secret str

The client secret for credentials to query the Azure APIs.

environment str

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

resource String

The configured URL for the application registered in Azure Active Directory.

tenantId String

The tenant id for the Azure Active Directory organization.

backend String

The path the Azure auth backend being configured was mounted at. Defaults to azure.

clientId String

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

clientSecret String

The client secret for credentials to query the Azure APIs.

environment String

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

Outputs

All input properties are implicitly available as output properties. Additionally, the AuthBackendConfig resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing AuthBackendConfig Resource

Get an existing AuthBackendConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AuthBackendConfigState, opts?: CustomResourceOptions): AuthBackendConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backend: Optional[str] = None,
        client_id: Optional[str] = None,
        client_secret: Optional[str] = None,
        environment: Optional[str] = None,
        resource: Optional[str] = None,
        tenant_id: Optional[str] = None) -> AuthBackendConfig
func GetAuthBackendConfig(ctx *Context, name string, id IDInput, state *AuthBackendConfigState, opts ...ResourceOption) (*AuthBackendConfig, error)
public static AuthBackendConfig Get(string name, Input<string> id, AuthBackendConfigState? state, CustomResourceOptions? opts = null)
public static AuthBackendConfig get(String name, Output<String> id, AuthBackendConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Backend string

The path the Azure auth backend being configured was mounted at. Defaults to azure.

ClientId string

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

ClientSecret string

The client secret for credentials to query the Azure APIs.

Environment string

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

Resource string

The configured URL for the application registered in Azure Active Directory.

TenantId string

The tenant id for the Azure Active Directory organization.

Backend string

The path the Azure auth backend being configured was mounted at. Defaults to azure.

ClientId string

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

ClientSecret string

The client secret for credentials to query the Azure APIs.

Environment string

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

Resource string

The configured URL for the application registered in Azure Active Directory.

TenantId string

The tenant id for the Azure Active Directory organization.

backend String

The path the Azure auth backend being configured was mounted at. Defaults to azure.

clientId String

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

clientSecret String

The client secret for credentials to query the Azure APIs.

environment String

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

resource String

The configured URL for the application registered in Azure Active Directory.

tenantId String

The tenant id for the Azure Active Directory organization.

backend string

The path the Azure auth backend being configured was mounted at. Defaults to azure.

clientId string

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

clientSecret string

The client secret for credentials to query the Azure APIs.

environment string

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

resource string

The configured URL for the application registered in Azure Active Directory.

tenantId string

The tenant id for the Azure Active Directory organization.

backend str

The path the Azure auth backend being configured was mounted at. Defaults to azure.

client_id str

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

client_secret str

The client secret for credentials to query the Azure APIs.

environment str

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

resource str

The configured URL for the application registered in Azure Active Directory.

tenant_id str

The tenant id for the Azure Active Directory organization.

backend String

The path the Azure auth backend being configured was mounted at. Defaults to azure.

clientId String

The client id for credentials to query the Azure APIs. Currently read permissions to query compute resources are required.

clientSecret String

The client secret for credentials to query the Azure APIs.

environment String

The Azure cloud environment. Valid values: AzurePublicCloud, AzureUSGovernmentCloud, AzureChinaCloud, AzureGermanCloud. Defaults to AzurePublicCloud.

resource String

The configured URL for the application registered in Azure Active Directory.

tenantId String

The tenant id for the Azure Active Directory organization.

Package Details

Repository
https://github.com/pulumi/pulumi-vault
License
Apache-2.0
Notes

This Pulumi package is based on the vault Terraform Provider.