GroupAlias
Creates an Identity Group Alias for Vault. The Identity secrets engine is the identity management solution for Vault.
Group aliases allows entity membership in external groups to be managed semi-automatically. External group serves as a mapping to a group that is outside of the identity store. External groups can have one (and only one) alias. This alias should map to a notion of group that is outside of the identity store. For example, groups in LDAP, and teams in GitHub. A username in LDAP, belonging to a group in LDAP, can get its entity ID added as a member of a group in Vault automatically during logins and token renewals. This works only if the group in Vault is an external group and has an alias that maps to the group in LDAP. If the user is removed from the group in LDAP, that change gets reflected in Vault only upon the subsequent login or renewal operation.
Example Usage
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var @group = new Vault.Identity.Group("group", new Vault.Identity.GroupArgs
{
Policies =
{
"test",
},
Type = "external",
});
var github = new Vault.AuthBackend("github", new Vault.AuthBackendArgs
{
Path = "github",
Type = "github",
});
var group_alias = new Vault.Identity.GroupAlias("group-alias", new Vault.Identity.GroupAliasArgs
{
CanonicalId = @group.Id,
MountAccessor = github.Accessor,
Name = "Github_Team_Slug",
});
}
}
Coming soon!
import pulumi
import pulumi_vault as vault
group = vault.identity.Group("group",
policies=["test"],
type="external")
github = vault.AuthBackend("github",
path="github",
type="github")
group_alias = vault.identity.GroupAlias("group-alias",
canonical_id=group.id,
mount_accessor=github.accessor,
name="Github_Team_Slug")import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const group = new vault.identity.Group("group", {
policies: ["test"],
type: "external",
});
const github = new vault.AuthBackend("github", {
path: "github",
type: "github",
});
const group_alias = new vault.identity.GroupAlias("group-alias", {
canonicalId: group.id,
mountAccessor: github.accessor,
name: "Github_Team_Slug",
});Create a GroupAlias Resource
new GroupAlias(name: string, args: GroupAliasArgs, opts?: CustomResourceOptions);def GroupAlias(resource_name, opts=None, canonical_id=None, mount_accessor=None, name=None, __props__=None);func NewGroupAlias(ctx *Context, name string, args GroupAliasArgs, opts ...ResourceOption) (*GroupAlias, error)public GroupAlias(string name, GroupAliasArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args GroupAliasArgs
- 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 GroupAliasArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupAliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
GroupAlias Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The GroupAlias resource accepts the following input properties:
- Canonical
Id string ID of the group to which this is an alias.
- Mount
Accessor string Mount accessor of the authentication backend to which this alias belongs to.
- Name string
Name of the group alias to create.
- Canonical
Id string ID of the group to which this is an alias.
- Mount
Accessor string Mount accessor of the authentication backend to which this alias belongs to.
- Name string
Name of the group alias to create.
- canonical
Id string ID of the group to which this is an alias.
- mount
Accessor string Mount accessor of the authentication backend to which this alias belongs to.
- name string
Name of the group alias to create.
- canonical_
id str ID of the group to which this is an alias.
- mount_
accessor str Mount accessor of the authentication backend to which this alias belongs to.
- name str
Name of the group alias to create.
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupAlias resource produces the following output properties:
Look up an Existing GroupAlias Resource
Get an existing GroupAlias 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?: GroupAliasState, opts?: CustomResourceOptions): GroupAliasstatic get(resource_name, id, opts=None, canonical_id=None, mount_accessor=None, name=None, __props__=None);func GetGroupAlias(ctx *Context, name string, id IDInput, state *GroupAliasState, opts ...ResourceOption) (*GroupAlias, error)public static GroupAlias Get(string name, Input<string> id, GroupAliasState? 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:
- Canonical
Id string ID of the group to which this is an alias.
- Mount
Accessor string Mount accessor of the authentication backend to which this alias belongs to.
- Name string
Name of the group alias to create.
- Canonical
Id string ID of the group to which this is an alias.
- Mount
Accessor string Mount accessor of the authentication backend to which this alias belongs to.
- Name string
Name of the group alias to create.
- canonical
Id string ID of the group to which this is an alias.
- mount
Accessor string Mount accessor of the authentication backend to which this alias belongs to.
- name string
Name of the group alias to create.
- canonical_
id str ID of the group to which this is an alias.
- mount_
accessor str Mount accessor of the authentication backend to which this alias belongs to.
- name str
Name of the group alias to create.
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vaultTerraform Provider.