Auth Backend Login
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: BASE64ENCODEDSHA256IDENTITYDOCUMENTSIGNATUREContent copied to clipboard
Properties
Link copied to clipboard
The token returned by Vault.
Link copied to clipboard
The HTTP method used in the signed IAM request.
Link copied to clipboard
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
The base64-encoded HTTP URL used in the signed request.
Link copied to clipboard
The duration in seconds the token will be valid, relative to the time in lease_start_time.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard