AclAuthMethod

Starting with Consul 1.5.0, the consul..AclAuthMethod resource can be used to managed Consul ACL auth methods.

Example Usage

using Pulumi;
using Consul = Pulumi.Consul;

class MyStack : Stack
{
    public MyStack()
    {
        var minikube = new Consul.AclAuthMethod("minikube", new Consul.AclAuthMethodArgs
        {
            Config = 
            {
                { "CACert", @"-----BEGIN CERTIFICATE-----
...-----END CERTIFICATE-----

" },
                { "Host", "https://192.0.2.42:8443" },
                { "ServiceAccountJWT", "eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9..." },
            },
            Description = "dev minikube cluster",
            Type = "kubernetes",
        });
    }

}

Coming soon!

import pulumi
import pulumi_consul as consul

minikube = consul.AclAuthMethod("minikube",
    config={
        "CACert": """-----BEGIN CERTIFICATE-----
...-----END CERTIFICATE-----

""",
        "Host": "https://192.0.2.42:8443",
        "ServiceAccountJWT": "eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9...",
    },
    description="dev minikube cluster",
    type="kubernetes")
import * as pulumi from "@pulumi/pulumi";
import * as consul from "@pulumi/consul";

const minikube = new consul.AclAuthMethod("minikube", {
    config: {
        CACert: `-----BEGIN CERTIFICATE-----
...-----END CERTIFICATE-----
`,
        Host: "https://192.0.2.42:8443",
        ServiceAccountJWT: "eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9...",
    },
    description: "dev minikube cluster",
    type: "kubernetes",
});

Create a AclAuthMethod Resource

def AclAuthMethod(resource_name, opts=None, config=None, description=None, name=None, namespace=None, type=None, __props__=None);
name string
The unique name of the resource.
args AclAuthMethodArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AclAuthMethodArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AclAuthMethodArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

AclAuthMethod Resource Properties

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

Inputs

The AclAuthMethod resource accepts the following input properties:

Config Dictionary<string, string>

The raw configuration for this ACL auth method.

Type string

The type of the ACL auth method.

Description string

A free form human readable description of the auth method.

Name string

The name of the ACL auth method.

Namespace string

The namespace to create the policy within.

Config map[string]string

The raw configuration for this ACL auth method.

Type string

The type of the ACL auth method.

Description string

A free form human readable description of the auth method.

Name string

The name of the ACL auth method.

Namespace string

The namespace to create the policy within.

config {[key: string]: string}

The raw configuration for this ACL auth method.

type string

The type of the ACL auth method.

description string

A free form human readable description of the auth method.

name string

The name of the ACL auth method.

namespace string

The namespace to create the policy within.

config Dict[str, str]

The raw configuration for this ACL auth method.

type str

The type of the ACL auth method.

description str

A free form human readable description of the auth method.

name str

The name of the ACL auth method.

namespace str

The namespace to create the policy within.

Outputs

All input properties are implicitly available as output properties. Additionally, the AclAuthMethod 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing AclAuthMethod Resource

Get an existing AclAuthMethod 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?: AclAuthMethodState, opts?: CustomResourceOptions): AclAuthMethod
static get(resource_name, id, opts=None, config=None, description=None, name=None, namespace=None, type=None, __props__=None);
func GetAclAuthMethod(ctx *Context, name string, id IDInput, state *AclAuthMethodState, opts ...ResourceOption) (*AclAuthMethod, error)
public static AclAuthMethod Get(string name, Input<string> id, AclAuthMethodState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Config Dictionary<string, string>

The raw configuration for this ACL auth method.

Description string

A free form human readable description of the auth method.

Name string

The name of the ACL auth method.

Namespace string

The namespace to create the policy within.

Type string

The type of the ACL auth method.

Config map[string]string

The raw configuration for this ACL auth method.

Description string

A free form human readable description of the auth method.

Name string

The name of the ACL auth method.

Namespace string

The namespace to create the policy within.

Type string

The type of the ACL auth method.

config {[key: string]: string}

The raw configuration for this ACL auth method.

description string

A free form human readable description of the auth method.

name string

The name of the ACL auth method.

namespace string

The namespace to create the policy within.

type string

The type of the ACL auth method.

config Dict[str, str]

The raw configuration for this ACL auth method.

description str

A free form human readable description of the auth method.

name str

The name of the ACL auth method.

namespace str

The namespace to create the policy within.

type str

The type of the ACL auth method.

Package Details

Repository
https://github.com/pulumi/pulumi-consul
License
Apache-2.0
Notes
This Pulumi package is based on the consul Terraform Provider.