AuthBackendLogin

class AuthBackendLogin : KotlinCustomResource

Logs into a Vault server using an AWS auth backend. Login can be accomplished using a signed identity request from IAM or using ec2 instance metadata. For more information, see the [Vault

  • documentation](https://www.vaultproject.io/docs/auth/aws.html).

Example Usage

resources:
aws:
type: vault:AuthBackend
properties:
type: aws
path: aws
example:
type: vault:aws:AuthBackendClient
properties:
backend: ${aws.path}
accessKey: '123456789012'
secretKey: AWSSECRETKEYGOESHERE
exampleAuthBackendRole:
type: vault:aws:AuthBackendRole
name: example
properties:
backend: ${aws.path}
role: test-role
authType: ec2
boundAmiId: ami-8c1be5f6
boundAccountId: '123456789012'
boundVpcId: vpc-b61106d4
boundSubnetId: vpc-133128f1
boundIamInstanceProfileArns:
- arn:aws:iam::123456789012:instance-profile/MyProfile
ttl: 60
maxTtl: 120
tokenPolicies:
- default
- dev
- prod
options:
dependsOn:
- ${example}
exampleAuthBackendLogin:
type: vault:aws:AuthBackendLogin
name: example
properties:
backend: ${exampleVaultAuthBackend.path}
role: ${exampleAuthBackendRole.role}
identity: BASE64ENCODEDIDENTITYDOCUMENT
signature: BASE64ENCODEDSHA256IDENTITYDOCUMENTSIGNATURE

Properties

Link copied to clipboard
val accessor: Output<String>

The token's accessor.

Link copied to clipboard
val authType: Output<String>

The authentication type used to generate this token.

Link copied to clipboard
val backend: Output<String>?

The unique name of the AWS auth backend. Defaults to 'aws'.

Link copied to clipboard
val clientToken: Output<String>

The token returned by Vault.

Link copied to clipboard

The HTTP method used in the signed IAM request.

Link copied to clipboard
val iamRequestBody: Output<String>?

The base64-encoded body of the signed request.

Link copied to clipboard

The base64-encoded, JSON serialized representation of the GetCallerIdentity HTTP request headers.

Link copied to clipboard
val iamRequestUrl: Output<String>?

The base64-encoded HTTP URL used in the signed request.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val identity: Output<String>?

The base64-encoded EC2 instance identity document to authenticate with. Can be retrieved from the EC2 metadata server.

Link copied to clipboard
val leaseDuration: Output<Int>

The duration in seconds the token will be valid, relative to the time in lease_start_time.

Link copied to clipboard
val leaseStartTime: Output<String>
Link copied to clipboard
val metadata: Output<Map<String, String>>

A map of information returned by the Vault server about the authentication used to generate this token.

Link copied to clipboard
val namespace: Output<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.

Link copied to clipboard
val nonce: Output<String>

The unique nonce to be used for login requests. Can be set to a user-specified value, or will contain the server-generated value once a token is issued. EC2 instances can only acquire a single token until the whitelist is tidied again unless they keep track of this nonce.

Link copied to clipboard
val pkcs7: Output<String>?

The PKCS#7 signature of the identity document to authenticate with, with all newline characters removed. Can be retrieved from the EC2 metadata server.

Link copied to clipboard
val policies: Output<List<String>>

The Vault policies assigned to this token.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val renewable: Output<Boolean>

Set to true if the token can be extended through renewal.

Link copied to clipboard
val role: Output<String>

The name of the AWS auth backend role to create tokens against.

Link copied to clipboard
val signature: Output<String>?

The base64-encoded SHA256 RSA signature of the instance identity document to authenticate with, with all newline characters removed. Can be retrieved from the EC2 metadata server.

Link copied to clipboard
val urn: Output<String>