AuthBackendRole
Manages an AWS auth backend role in a Vault server. Roles constrain the instances or principals that can perform the login operation against the backend. See the Vault documentation for more information.
Example Usage
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var aws = new Vault.AuthBackend("aws", new Vault.AuthBackendArgs
{
Type = "aws",
});
var example = new Vault.Aws.AuthBackendRole("example", new Vault.Aws.AuthBackendRoleArgs
{
Backend = aws.Path,
Role = "test-role",
AuthType = "iam",
BoundAmiIds =
{
"ami-8c1be5f6",
},
BoundAccountIds =
{
"123456789012",
},
BoundVpcIds =
{
"vpc-b61106d4",
},
BoundSubnetIds =
{
"vpc-133128f1",
},
BoundIamRoleArns =
{
"arn:aws:iam::123456789012:role/MyRole",
},
BoundIamInstanceProfileArns =
{
"arn:aws:iam::123456789012:instance-profile/MyProfile",
},
InferredEntityType = "ec2_instance",
InferredAwsRegion = "us-east-1",
TokenTtl = 60,
TokenMaxTtl = 120,
TokenPolicies =
{
"default",
"dev",
"prod",
},
});
}
}
Coming soon!
import pulumi
import pulumi_vault as vault
aws = vault.AuthBackend("aws", type="aws")
example = vault.aws.AuthBackendRole("example",
backend=aws.path,
role="test-role",
auth_type="iam",
bound_ami_ids=["ami-8c1be5f6"],
bound_account_ids=["123456789012"],
bound_vpc_ids=["vpc-b61106d4"],
bound_subnet_ids=["vpc-133128f1"],
bound_iam_role_arns=["arn:aws:iam::123456789012:role/MyRole"],
bound_iam_instance_profile_arns=["arn:aws:iam::123456789012:instance-profile/MyProfile"],
inferred_entity_type="ec2_instance",
inferred_aws_region="us-east-1",
token_ttl=60,
token_max_ttl=120,
token_policies=[
"default",
"dev",
"prod",
])import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const aws = new vault.AuthBackend("aws", {type: "aws"});
const example = new vault.aws.AuthBackendRole("example", {
backend: aws.path,
role: "test-role",
authType: "iam",
boundAmiIds: ["ami-8c1be5f6"],
boundAccountIds: ["123456789012"],
boundVpcIds: ["vpc-b61106d4"],
boundSubnetIds: ["vpc-133128f1"],
boundIamRoleArns: ["arn:aws:iam::123456789012:role/MyRole"],
boundIamInstanceProfileArns: ["arn:aws:iam::123456789012:instance-profile/MyProfile"],
inferredEntityType: "ec2_instance",
inferredAwsRegion: "us-east-1",
tokenTtl: 60,
tokenMaxTtl: 120,
tokenPolicies: [
"default",
"dev",
"prod",
],
});Create a AuthBackendRole Resource
new AuthBackendRole(name: string, args: AuthBackendRoleArgs, opts?: CustomResourceOptions);def AuthBackendRole(resource_name, opts=None, allow_instance_migration=None, auth_type=None, backend=None, bound_account_ids=None, bound_ami_ids=None, bound_ec2_instance_ids=None, bound_iam_instance_profile_arns=None, bound_iam_principal_arns=None, bound_iam_role_arns=None, bound_regions=None, bound_subnet_ids=None, bound_vpc_ids=None, disallow_reauthentication=None, inferred_aws_region=None, inferred_entity_type=None, max_ttl=None, period=None, policies=None, resolve_aws_unique_ids=None, role=None, role_tag=None, token_bound_cidrs=None, token_explicit_max_ttl=None, token_max_ttl=None, token_no_default_policy=None, token_num_uses=None, token_period=None, token_policies=None, token_ttl=None, token_type=None, ttl=None, __props__=None);func NewAuthBackendRole(ctx *Context, name string, args AuthBackendRoleArgs, opts ...ResourceOption) (*AuthBackendRole, error)public AuthBackendRole(string name, AuthBackendRoleArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AuthBackendRoleArgs
- 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 AuthBackendRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthBackendRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AuthBackendRole Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AuthBackendRole resource accepts the following input properties:
- Role string
The name of the role.
- Allow
Instance boolMigration If set to
true, allows migration of the underlying instance where the client resides.- Auth
Type string The auth type permitted for this role. Valid choices are
ec2andiam. Defaults toiam.- Backend string
Unique name of the auth backend to configure.
- Bound
Account List<string>Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the account ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Ami List<string>Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the AMI ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Ec2Instance List<string>Ids Only EC2 instances that match this instance ID will be permitted to log in.
- Bound
Iam List<string>Instance Profile Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must be associated with an IAM instance profile ARN which has a prefix that matches the value specified by this field. The value is prefix-matched as though it were a glob ending in
*.auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Iam List<string>Principal Arns If set, defines the IAM principal that must be authenticated when
auth_typeis set toiam. Wildcards are supported at the end of the ARN.- Bound
Iam List<string>Role Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must match the IAM role ARN specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Regions List<string> If set, defines a constraint on the EC2 instances that can perform the login operation that the region in their identity document must match the one specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Subnet List<string>Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the subnet ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Vpc List<string>Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the VPC ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Disallow
Reauthentication bool IF set to
true, only allows a single token to be granted per instance ID. This can only be set whenauth_typeis set toec2.- Inferred
Aws stringRegion When
inferred_entity_typeis set, this is the region to search for the inferred entities. Required ifinferred_entity_typeis set. This only applies whenauth_typeis set toiam.- Inferred
Entity stringType If set, instructs Vault to turn on inferencing. The only valid value is
ec2_instance, which instructs Vault to infer that the role comes from an EC2 instance in an IAM instance profile. This only applies whenauth_typeis set toiam.- Max
Ttl int The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Period int
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Policies List<string>
An array of strings specifying the policies to be set on tokens issued using this role.
- Resolve
Aws boolUnique Ids If set to
true, thebound_iam_principal_arnsare resolved to AWS Unique IDs for the bound principal ARN. This field is ignored when abound_iam_principal_arnends in a wildcard. Resolving to unique IDs more closely mimics the behavior of AWS services in that if an IAM user or role is deleted and a new one is recreated with the same name, those new users or roles won’t get access to roles in Vault that were permissioned to the prior principals of the same name. Defaults totrue. Once set totrue, this cannot be changed tofalsewithout recreating the role.- Role
Tag string If set, enable role tags for this role. The value set for this field should be the key of the tag on the EC2 instance.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Token
Bound List<string>Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The period, if any, in number of seconds to set on the token.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Token
Policies List<string> List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- Ttl int
The TTL period of tokens issued using this role, provided as a number of seconds.
- Role string
The name of the role.
- Allow
Instance boolMigration If set to
true, allows migration of the underlying instance where the client resides.- Auth
Type string The auth type permitted for this role. Valid choices are
ec2andiam. Defaults toiam.- Backend string
Unique name of the auth backend to configure.
- Bound
Account []stringIds If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the account ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Ami []stringIds If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the AMI ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Ec2Instance []stringIds Only EC2 instances that match this instance ID will be permitted to log in.
- Bound
Iam []stringInstance Profile Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must be associated with an IAM instance profile ARN which has a prefix that matches the value specified by this field. The value is prefix-matched as though it were a glob ending in
*.auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Iam []stringPrincipal Arns If set, defines the IAM principal that must be authenticated when
auth_typeis set toiam. Wildcards are supported at the end of the ARN.- Bound
Iam []stringRole Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must match the IAM role ARN specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Regions []string If set, defines a constraint on the EC2 instances that can perform the login operation that the region in their identity document must match the one specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Subnet []stringIds If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the subnet ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Vpc []stringIds If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the VPC ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Disallow
Reauthentication bool IF set to
true, only allows a single token to be granted per instance ID. This can only be set whenauth_typeis set toec2.- Inferred
Aws stringRegion When
inferred_entity_typeis set, this is the region to search for the inferred entities. Required ifinferred_entity_typeis set. This only applies whenauth_typeis set toiam.- Inferred
Entity stringType If set, instructs Vault to turn on inferencing. The only valid value is
ec2_instance, which instructs Vault to infer that the role comes from an EC2 instance in an IAM instance profile. This only applies whenauth_typeis set toiam.- Max
Ttl int The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Period int
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Policies []string
An array of strings specifying the policies to be set on tokens issued using this role.
- Resolve
Aws boolUnique Ids If set to
true, thebound_iam_principal_arnsare resolved to AWS Unique IDs for the bound principal ARN. This field is ignored when abound_iam_principal_arnends in a wildcard. Resolving to unique IDs more closely mimics the behavior of AWS services in that if an IAM user or role is deleted and a new one is recreated with the same name, those new users or roles won’t get access to roles in Vault that were permissioned to the prior principals of the same name. Defaults totrue. Once set totrue, this cannot be changed tofalsewithout recreating the role.- Role
Tag string If set, enable role tags for this role. The value set for this field should be the key of the tag on the EC2 instance.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Token
Bound []stringCidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The period, if any, in number of seconds to set on the token.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Token
Policies []string List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- Ttl int
The TTL period of tokens issued using this role, provided as a number of seconds.
- role string
The name of the role.
- allow
Instance booleanMigration If set to
true, allows migration of the underlying instance where the client resides.- auth
Type string The auth type permitted for this role. Valid choices are
ec2andiam. Defaults toiam.- backend string
Unique name of the auth backend to configure.
- bound
Account string[]Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the account ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Ami string[]Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the AMI ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Ec2Instance string[]Ids Only EC2 instances that match this instance ID will be permitted to log in.
- bound
Iam string[]Instance Profile Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must be associated with an IAM instance profile ARN which has a prefix that matches the value specified by this field. The value is prefix-matched as though it were a glob ending in
*.auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Iam string[]Principal Arns If set, defines the IAM principal that must be authenticated when
auth_typeis set toiam. Wildcards are supported at the end of the ARN.- bound
Iam string[]Role Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must match the IAM role ARN specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Regions string[] If set, defines a constraint on the EC2 instances that can perform the login operation that the region in their identity document must match the one specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Subnet string[]Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the subnet ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Vpc string[]Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the VPC ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- disallow
Reauthentication boolean IF set to
true, only allows a single token to be granted per instance ID. This can only be set whenauth_typeis set toec2.- inferred
Aws stringRegion When
inferred_entity_typeis set, this is the region to search for the inferred entities. Required ifinferred_entity_typeis set. This only applies whenauth_typeis set toiam.- inferred
Entity stringType If set, instructs Vault to turn on inferencing. The only valid value is
ec2_instance, which instructs Vault to infer that the role comes from an EC2 instance in an IAM instance profile. This only applies whenauth_typeis set toiam.- max
Ttl number The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- period number
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- policies string[]
An array of strings specifying the policies to be set on tokens issued using this role.
- resolve
Aws booleanUnique Ids If set to
true, thebound_iam_principal_arnsare resolved to AWS Unique IDs for the bound principal ARN. This field is ignored when abound_iam_principal_arnends in a wildcard. Resolving to unique IDs more closely mimics the behavior of AWS services in that if an IAM user or role is deleted and a new one is recreated with the same name, those new users or roles won’t get access to roles in Vault that were permissioned to the prior principals of the same name. Defaults totrue. Once set totrue, this cannot be changed tofalsewithout recreating the role.- role
Tag string If set, enable role tags for this role. The value set for this field should be the key of the tag on the EC2 instance.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- token
Bound string[]Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token
Explicit numberMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- token
Max numberTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
No booleanDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token
Num numberUses The period, if any, in number of seconds to set on the token.
- token
Period number If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- token
Policies string[] List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- token
Ttl number The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- ttl number
The TTL period of tokens issued using this role, provided as a number of seconds.
- role str
The name of the role.
- allow_
instance_ boolmigration If set to
true, allows migration of the underlying instance where the client resides.- auth_
type str The auth type permitted for this role. Valid choices are
ec2andiam. Defaults toiam.- backend str
Unique name of the auth backend to configure.
- bound_
account_ List[str]ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the account ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
ami_ List[str]ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the AMI ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
ec2_ List[str]instance_ ids Only EC2 instances that match this instance ID will be permitted to log in.
- bound_
iam_ List[str]instance_ profile_ arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must be associated with an IAM instance profile ARN which has a prefix that matches the value specified by this field. The value is prefix-matched as though it were a glob ending in
*.auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
iam_ List[str]principal_ arns If set, defines the IAM principal that must be authenticated when
auth_typeis set toiam. Wildcards are supported at the end of the ARN.- bound_
iam_ List[str]role_ arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must match the IAM role ARN specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
regions List[str] If set, defines a constraint on the EC2 instances that can perform the login operation that the region in their identity document must match the one specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
subnet_ List[str]ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the subnet ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
vpc_ List[str]ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the VPC ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- disallow_
reauthentication bool IF set to
true, only allows a single token to be granted per instance ID. This can only be set whenauth_typeis set toec2.- inferred_
aws_ strregion When
inferred_entity_typeis set, this is the region to search for the inferred entities. Required ifinferred_entity_typeis set. This only applies whenauth_typeis set toiam.- inferred_
entity_ strtype If set, instructs Vault to turn on inferencing. The only valid value is
ec2_instance, which instructs Vault to infer that the role comes from an EC2 instance in an IAM instance profile. This only applies whenauth_typeis set toiam.- max_
ttl float The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- period float
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- policies List[str]
An array of strings specifying the policies to be set on tokens issued using this role.
- resolve_
aws_ boolunique_ ids If set to
true, thebound_iam_principal_arnsare resolved to AWS Unique IDs for the bound principal ARN. This field is ignored when abound_iam_principal_arnends in a wildcard. Resolving to unique IDs more closely mimics the behavior of AWS services in that if an IAM user or role is deleted and a new one is recreated with the same name, those new users or roles won’t get access to roles in Vault that were permissioned to the prior principals of the same name. Defaults totrue. Once set totrue, this cannot be changed tofalsewithout recreating the role.- role_
tag str If set, enable role tags for this role. The value set for this field should be the key of the tag on the EC2 instance.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- token_
bound_ List[str]cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token_
explicit_ floatmax_ ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- token_
max_ floatttl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
no_ booldefault_ policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token_
num_ floatuses The period, if any, in number of seconds to set on the token.
- token_
period float If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- token_
policies List[str] List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- token_
ttl float The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
type str The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- ttl float
The TTL period of tokens issued using this role, provided as a number of seconds.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthBackendRole resource produces the following output properties:
Look up an Existing AuthBackendRole Resource
Get an existing AuthBackendRole 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?: AuthBackendRoleState, opts?: CustomResourceOptions): AuthBackendRolestatic get(resource_name, id, opts=None, allow_instance_migration=None, auth_type=None, backend=None, bound_account_ids=None, bound_ami_ids=None, bound_ec2_instance_ids=None, bound_iam_instance_profile_arns=None, bound_iam_principal_arns=None, bound_iam_role_arns=None, bound_regions=None, bound_subnet_ids=None, bound_vpc_ids=None, disallow_reauthentication=None, inferred_aws_region=None, inferred_entity_type=None, max_ttl=None, period=None, policies=None, resolve_aws_unique_ids=None, role=None, role_tag=None, token_bound_cidrs=None, token_explicit_max_ttl=None, token_max_ttl=None, token_no_default_policy=None, token_num_uses=None, token_period=None, token_policies=None, token_ttl=None, token_type=None, ttl=None, __props__=None);func GetAuthBackendRole(ctx *Context, name string, id IDInput, state *AuthBackendRoleState, opts ...ResourceOption) (*AuthBackendRole, error)public static AuthBackendRole Get(string name, Input<string> id, AuthBackendRoleState? 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:
- Allow
Instance boolMigration If set to
true, allows migration of the underlying instance where the client resides.- Auth
Type string The auth type permitted for this role. Valid choices are
ec2andiam. Defaults toiam.- Backend string
Unique name of the auth backend to configure.
- Bound
Account List<string>Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the account ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Ami List<string>Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the AMI ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Ec2Instance List<string>Ids Only EC2 instances that match this instance ID will be permitted to log in.
- Bound
Iam List<string>Instance Profile Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must be associated with an IAM instance profile ARN which has a prefix that matches the value specified by this field. The value is prefix-matched as though it were a glob ending in
*.auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Iam List<string>Principal Arns If set, defines the IAM principal that must be authenticated when
auth_typeis set toiam. Wildcards are supported at the end of the ARN.- Bound
Iam List<string>Role Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must match the IAM role ARN specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Regions List<string> If set, defines a constraint on the EC2 instances that can perform the login operation that the region in their identity document must match the one specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Subnet List<string>Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the subnet ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Vpc List<string>Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the VPC ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Disallow
Reauthentication bool IF set to
true, only allows a single token to be granted per instance ID. This can only be set whenauth_typeis set toec2.- Inferred
Aws stringRegion When
inferred_entity_typeis set, this is the region to search for the inferred entities. Required ifinferred_entity_typeis set. This only applies whenauth_typeis set toiam.- Inferred
Entity stringType If set, instructs Vault to turn on inferencing. The only valid value is
ec2_instance, which instructs Vault to infer that the role comes from an EC2 instance in an IAM instance profile. This only applies whenauth_typeis set toiam.- Max
Ttl int The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Period int
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Policies List<string>
An array of strings specifying the policies to be set on tokens issued using this role.
- Resolve
Aws boolUnique Ids If set to
true, thebound_iam_principal_arnsare resolved to AWS Unique IDs for the bound principal ARN. This field is ignored when abound_iam_principal_arnends in a wildcard. Resolving to unique IDs more closely mimics the behavior of AWS services in that if an IAM user or role is deleted and a new one is recreated with the same name, those new users or roles won’t get access to roles in Vault that were permissioned to the prior principals of the same name. Defaults totrue. Once set totrue, this cannot be changed tofalsewithout recreating the role.- Role string
The name of the role.
- Role
Tag string If set, enable role tags for this role. The value set for this field should be the key of the tag on the EC2 instance.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Token
Bound List<string>Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The period, if any, in number of seconds to set on the token.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Token
Policies List<string> List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- Ttl int
The TTL period of tokens issued using this role, provided as a number of seconds.
- Allow
Instance boolMigration If set to
true, allows migration of the underlying instance where the client resides.- Auth
Type string The auth type permitted for this role. Valid choices are
ec2andiam. Defaults toiam.- Backend string
Unique name of the auth backend to configure.
- Bound
Account []stringIds If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the account ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Ami []stringIds If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the AMI ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Ec2Instance []stringIds Only EC2 instances that match this instance ID will be permitted to log in.
- Bound
Iam []stringInstance Profile Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must be associated with an IAM instance profile ARN which has a prefix that matches the value specified by this field. The value is prefix-matched as though it were a glob ending in
*.auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Iam []stringPrincipal Arns If set, defines the IAM principal that must be authenticated when
auth_typeis set toiam. Wildcards are supported at the end of the ARN.- Bound
Iam []stringRole Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must match the IAM role ARN specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Regions []string If set, defines a constraint on the EC2 instances that can perform the login operation that the region in their identity document must match the one specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Subnet []stringIds If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the subnet ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Bound
Vpc []stringIds If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the VPC ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Disallow
Reauthentication bool IF set to
true, only allows a single token to be granted per instance ID. This can only be set whenauth_typeis set toec2.- Inferred
Aws stringRegion When
inferred_entity_typeis set, this is the region to search for the inferred entities. Required ifinferred_entity_typeis set. This only applies whenauth_typeis set toiam.- Inferred
Entity stringType If set, instructs Vault to turn on inferencing. The only valid value is
ec2_instance, which instructs Vault to infer that the role comes from an EC2 instance in an IAM instance profile. This only applies whenauth_typeis set toiam.- Max
Ttl int The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- Period int
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Policies []string
An array of strings specifying the policies to be set on tokens issued using this role.
- Resolve
Aws boolUnique Ids If set to
true, thebound_iam_principal_arnsare resolved to AWS Unique IDs for the bound principal ARN. This field is ignored when abound_iam_principal_arnends in a wildcard. Resolving to unique IDs more closely mimics the behavior of AWS services in that if an IAM user or role is deleted and a new one is recreated with the same name, those new users or roles won’t get access to roles in Vault that were permissioned to the prior principals of the same name. Defaults totrue. Once set totrue, this cannot be changed tofalsewithout recreating the role.- Role string
The name of the role.
- Role
Tag string If set, enable role tags for this role. The value set for this field should be the key of the tag on the EC2 instance.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- Token
Bound []stringCidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- Token
Explicit intMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- Token
Max intTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
No boolDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- Token
Num intUses The period, if any, in number of seconds to set on the token.
- Token
Period int If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- Token
Policies []string List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- Token
Ttl int The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- Token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- Ttl int
The TTL period of tokens issued using this role, provided as a number of seconds.
- allow
Instance booleanMigration If set to
true, allows migration of the underlying instance where the client resides.- auth
Type string The auth type permitted for this role. Valid choices are
ec2andiam. Defaults toiam.- backend string
Unique name of the auth backend to configure.
- bound
Account string[]Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the account ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Ami string[]Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the AMI ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Ec2Instance string[]Ids Only EC2 instances that match this instance ID will be permitted to log in.
- bound
Iam string[]Instance Profile Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must be associated with an IAM instance profile ARN which has a prefix that matches the value specified by this field. The value is prefix-matched as though it were a glob ending in
*.auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Iam string[]Principal Arns If set, defines the IAM principal that must be authenticated when
auth_typeis set toiam. Wildcards are supported at the end of the ARN.- bound
Iam string[]Role Arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must match the IAM role ARN specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Regions string[] If set, defines a constraint on the EC2 instances that can perform the login operation that the region in their identity document must match the one specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Subnet string[]Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the subnet ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound
Vpc string[]Ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the VPC ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- disallow
Reauthentication boolean IF set to
true, only allows a single token to be granted per instance ID. This can only be set whenauth_typeis set toec2.- inferred
Aws stringRegion When
inferred_entity_typeis set, this is the region to search for the inferred entities. Required ifinferred_entity_typeis set. This only applies whenauth_typeis set toiam.- inferred
Entity stringType If set, instructs Vault to turn on inferencing. The only valid value is
ec2_instance, which instructs Vault to infer that the role comes from an EC2 instance in an IAM instance profile. This only applies whenauth_typeis set toiam.- max
Ttl number The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- period number
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- policies string[]
An array of strings specifying the policies to be set on tokens issued using this role.
- resolve
Aws booleanUnique Ids If set to
true, thebound_iam_principal_arnsare resolved to AWS Unique IDs for the bound principal ARN. This field is ignored when abound_iam_principal_arnends in a wildcard. Resolving to unique IDs more closely mimics the behavior of AWS services in that if an IAM user or role is deleted and a new one is recreated with the same name, those new users or roles won’t get access to roles in Vault that were permissioned to the prior principals of the same name. Defaults totrue. Once set totrue, this cannot be changed tofalsewithout recreating the role.- role string
The name of the role.
- role
Tag string If set, enable role tags for this role. The value set for this field should be the key of the tag on the EC2 instance.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- token
Bound string[]Cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token
Explicit numberMax Ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- token
Max numberTtl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
No booleanDefault Policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token
Num numberUses The period, if any, in number of seconds to set on the token.
- token
Period number If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- token
Policies string[] List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- token
Ttl number The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token
Type string The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- ttl number
The TTL period of tokens issued using this role, provided as a number of seconds.
- allow_
instance_ boolmigration If set to
true, allows migration of the underlying instance where the client resides.- auth_
type str The auth type permitted for this role. Valid choices are
ec2andiam. Defaults toiam.- backend str
Unique name of the auth backend to configure.
- bound_
account_ List[str]ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the account ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
ami_ List[str]ids If set, defines a constraint on the EC2 instances that can perform the login operation that they should be using the AMI ID specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
ec2_ List[str]instance_ ids Only EC2 instances that match this instance ID will be permitted to log in.
- bound_
iam_ List[str]instance_ profile_ arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must be associated with an IAM instance profile ARN which has a prefix that matches the value specified by this field. The value is prefix-matched as though it were a glob ending in
*.auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
iam_ List[str]principal_ arns If set, defines the IAM principal that must be authenticated when
auth_typeis set toiam. Wildcards are supported at the end of the ARN.- bound_
iam_ List[str]role_ arns If set, defines a constraint on the EC2 instances that can perform the login operation that they must match the IAM role ARN specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
regions List[str] If set, defines a constraint on the EC2 instances that can perform the login operation that the region in their identity document must match the one specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
subnet_ List[str]ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the subnet ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- bound_
vpc_ List[str]ids If set, defines a constraint on the EC2 instances that can perform the login operation that they be associated with the VPC ID that matches the value specified by this field.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- disallow_
reauthentication bool IF set to
true, only allows a single token to be granted per instance ID. This can only be set whenauth_typeis set toec2.- inferred_
aws_ strregion When
inferred_entity_typeis set, this is the region to search for the inferred entities. Required ifinferred_entity_typeis set. This only applies whenauth_typeis set toiam.- inferred_
entity_ strtype If set, instructs Vault to turn on inferencing. The only valid value is
ec2_instance, which instructs Vault to infer that the role comes from an EC2 instance in an IAM instance profile. This only applies whenauth_typeis set toiam.- max_
ttl float The maximum allowed lifetime of tokens issued using this role, provided as a number of seconds.
- period float
If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- policies List[str]
An array of strings specifying the policies to be set on tokens issued using this role.
- resolve_
aws_ boolunique_ ids If set to
true, thebound_iam_principal_arnsare resolved to AWS Unique IDs for the bound principal ARN. This field is ignored when abound_iam_principal_arnends in a wildcard. Resolving to unique IDs more closely mimics the behavior of AWS services in that if an IAM user or role is deleted and a new one is recreated with the same name, those new users or roles won’t get access to roles in Vault that were permissioned to the prior principals of the same name. Defaults totrue. Once set totrue, this cannot be changed tofalsewithout recreating the role.- role str
The name of the role.
- role_
tag str If set, enable role tags for this role. The value set for this field should be the key of the tag on the EC2 instance.
auth_typemust be set toec2orinferred_entity_typemust be set toec2_instanceto use this constraint.- token_
bound_ List[str]cidrs List of CIDR blocks; if set, specifies blocks of IP addresses which can authenticate successfully, and ties the resulting token to these blocks as well.
- token_
explicit_ floatmax_ ttl If set, will encode an explicit max TTL onto the token in number of seconds. This is a hard cap even if
token_ttlandtoken_max_ttlwould otherwise allow a renewal.- token_
max_ floatttl The maximum lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
no_ booldefault_ policy If set, the default policy will not be set on generated tokens; otherwise it will be added to the policies set in token_policies.
- token_
num_ floatuses The period, if any, in number of seconds to set on the token.
- token_
period float If set, indicates that the token generated using this role should never expire. The token should be renewed within the duration specified by this value. At each renewal, the token’s TTL will be set to the value of this field. Specified in seconds.
- token_
policies List[str] List of policies to encode onto generated tokens. Depending on the auth method, this list may be supplemented by user/group/other values.
- token_
ttl float The incremental lifetime for generated tokens in number of seconds. Its current value will be referenced at renewal time.
- token_
type str The type of token that should be generated. Can be
service,batch, ordefaultto use the mount’s tuned default (which unless changed will beservicetokens). For token store roles, there are two additional possibilities:default-serviceanddefault-batchwhich specify the type to return unless the client requests a different type at generation time.- ttl float
The TTL period of tokens issued using this role, provided as a number of seconds.
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vaultTerraform Provider.