vault.aws.AuthBackendRoleTag
Explore with Pulumi AI
Reads role tag information from an AWS auth backend in Vault.
Example Usage
Coming soon!
Coming soon!
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.aws.AuthBackendRole;
import com.pulumi.vault.aws.AuthBackendRoleArgs;
import com.pulumi.vault.aws.AuthBackendRoleTag;
import com.pulumi.vault.aws.AuthBackendRoleTagArgs;
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 aws = new AuthBackend("aws", AuthBackendArgs.builder()
.path("%s")
.type("aws")
.build());
var role = new AuthBackendRole("role", AuthBackendRoleArgs.builder()
.backend(aws.path())
.role("%s")
.authType("ec2")
.boundAccountId("123456789012")
.policies(
"dev",
"prod",
"qa",
"test")
.roleTag("VaultRoleTag")
.build());
var test = new AuthBackendRoleTag("test", AuthBackendRoleTagArgs.builder()
.backend(aws.path())
.role(role.role())
.policies(
"prod",
"dev",
"test")
.maxTtl("1h")
.instanceId("i-1234567")
.build());
}
}
Coming soon!
Coming soon!
resources:
aws:
type: vault:AuthBackend
properties:
path: '%s'
type: aws
role:
type: vault:aws:AuthBackendRole
properties:
backend: ${aws.path}
role: '%s'
authType: ec2
boundAccountId: 123456789012
policies:
- dev
- prod
- qa
- test
roleTag: VaultRoleTag
test:
type: vault:aws:AuthBackendRoleTag
properties:
backend: ${aws.path}
role: ${role.role}
policies:
- prod
- dev
- test
maxTtl: 1h
instanceId: i-1234567
Create AuthBackendRoleTag Resource
new AuthBackendRoleTag(name: string, args: AuthBackendRoleTagArgs, opts?: CustomResourceOptions);
@overload
def AuthBackendRoleTag(resource_name: str,
opts: Optional[ResourceOptions] = None,
allow_instance_migration: Optional[bool] = None,
backend: Optional[str] = None,
disallow_reauthentication: Optional[bool] = None,
instance_id: Optional[str] = None,
max_ttl: Optional[str] = None,
namespace: Optional[str] = None,
policies: Optional[Sequence[str]] = None,
role: Optional[str] = None)
@overload
def AuthBackendRoleTag(resource_name: str,
args: AuthBackendRoleTagArgs,
opts: Optional[ResourceOptions] = None)
func NewAuthBackendRoleTag(ctx *Context, name string, args AuthBackendRoleTagArgs, opts ...ResourceOption) (*AuthBackendRoleTag, error)
public AuthBackendRoleTag(string name, AuthBackendRoleTagArgs args, CustomResourceOptions? opts = null)
public AuthBackendRoleTag(String name, AuthBackendRoleTagArgs args)
public AuthBackendRoleTag(String name, AuthBackendRoleTagArgs args, CustomResourceOptions options)
type: vault:aws:AuthBackendRoleTag
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthBackendRoleTagArgs
- 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 AuthBackendRoleTagArgs
- 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 AuthBackendRoleTagArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthBackendRoleTagArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthBackendRoleTagArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AuthBackendRoleTag 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 AuthBackendRoleTag resource accepts the following input properties:
- Role string
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- Allow
Instance boolMigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- Backend string
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- Disallow
Reauthentication bool If set, only allows a single token to be granted per instance ID.
- Instance
Id string Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- Max
Ttl string The maximum TTL of the tokens issued using this role.
- Namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- Policies List<string>
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- Role string
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- Allow
Instance boolMigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- Backend string
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- Disallow
Reauthentication bool If set, only allows a single token to be granted per instance ID.
- Instance
Id string Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- Max
Ttl string The maximum TTL of the tokens issued using this role.
- Namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- Policies []string
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- role String
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- allow
Instance BooleanMigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- backend String
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- disallow
Reauthentication Boolean If set, only allows a single token to be granted per instance ID.
- instance
Id String Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- max
Ttl String The maximum TTL of the tokens issued using this role.
- namespace String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- policies List<String>
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- role string
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- allow
Instance booleanMigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- backend string
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- disallow
Reauthentication boolean If set, only allows a single token to be granted per instance ID.
- instance
Id string Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- max
Ttl string The maximum TTL of the tokens issued using this role.
- namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- policies string[]
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- role str
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- allow_
instance_ boolmigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- backend str
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- disallow_
reauthentication bool If set, only allows a single token to be granted per instance ID.
- instance_
id str Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- max_
ttl str The maximum TTL of the tokens issued using this role.
- namespace str
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- policies Sequence[str]
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- role String
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- allow
Instance BooleanMigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- backend String
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- disallow
Reauthentication Boolean If set, only allows a single token to be granted per instance ID.
- instance
Id String Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- max
Ttl String The maximum TTL of the tokens issued using this role.
- namespace String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- policies List<String>
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthBackendRoleTag resource produces the following output properties:
Look up Existing AuthBackendRoleTag Resource
Get an existing AuthBackendRoleTag 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?: AuthBackendRoleTagState, opts?: CustomResourceOptions): AuthBackendRoleTag
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_instance_migration: Optional[bool] = None,
backend: Optional[str] = None,
disallow_reauthentication: Optional[bool] = None,
instance_id: Optional[str] = None,
max_ttl: Optional[str] = None,
namespace: Optional[str] = None,
policies: Optional[Sequence[str]] = None,
role: Optional[str] = None,
tag_key: Optional[str] = None,
tag_value: Optional[str] = None) -> AuthBackendRoleTag
func GetAuthBackendRoleTag(ctx *Context, name string, id IDInput, state *AuthBackendRoleTagState, opts ...ResourceOption) (*AuthBackendRoleTag, error)
public static AuthBackendRoleTag Get(string name, Input<string> id, AuthBackendRoleTagState? state, CustomResourceOptions? opts = null)
public static AuthBackendRoleTag get(String name, Output<String> id, AuthBackendRoleTagState 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.
- Allow
Instance boolMigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- Backend string
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- Disallow
Reauthentication bool If set, only allows a single token to be granted per instance ID.
- Instance
Id string Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- Max
Ttl string The maximum TTL of the tokens issued using this role.
- Namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- Policies List<string>
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- Role string
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- Tag
Key string The key of the role tag.
- Tag
Value string The value to set the role key.
- Allow
Instance boolMigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- Backend string
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- Disallow
Reauthentication bool If set, only allows a single token to be granted per instance ID.
- Instance
Id string Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- Max
Ttl string The maximum TTL of the tokens issued using this role.
- Namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- Policies []string
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- Role string
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- Tag
Key string The key of the role tag.
- Tag
Value string The value to set the role key.
- allow
Instance BooleanMigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- backend String
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- disallow
Reauthentication Boolean If set, only allows a single token to be granted per instance ID.
- instance
Id String Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- max
Ttl String The maximum TTL of the tokens issued using this role.
- namespace String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- policies List<String>
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- role String
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- tag
Key String The key of the role tag.
- tag
Value String The value to set the role key.
- allow
Instance booleanMigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- backend string
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- disallow
Reauthentication boolean If set, only allows a single token to be granted per instance ID.
- instance
Id string Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- max
Ttl string The maximum TTL of the tokens issued using this role.
- namespace string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- policies string[]
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- role string
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- tag
Key string The key of the role tag.
- tag
Value string The value to set the role key.
- allow_
instance_ boolmigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- backend str
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- disallow_
reauthentication bool If set, only allows a single token to be granted per instance ID.
- instance_
id str Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- max_
ttl str The maximum TTL of the tokens issued using this role.
- namespace str
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- policies Sequence[str]
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- role str
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- tag_
key str The key of the role tag.
- tag_
value str The value to set the role key.
- allow
Instance BooleanMigration If set, allows migration of the underlying instances where the client resides. Use with caution.
- backend String
The path to the AWS auth backend to read role tags from, with no leading or trailing
/
s. Defaults to "aws".- disallow
Reauthentication Boolean If set, only allows a single token to be granted per instance ID.
- instance
Id String Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID.
- max
Ttl String The maximum TTL of the tokens issued using this role.
- namespace String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The
namespace
is always relative to the provider's configured namespace. Available only for Vault Enterprise.- policies List<String>
The policies to be associated with the tag. Must be a subset of the policies associated with the role.
- role String
The name of the AWS auth backend role to read role tags from, with no leading or trailing
/
s.- tag
Key String The key of the role tag.
- tag
Value String The value to set the role key.
Package Details
- Repository
- Vault pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
vault
Terraform Provider.