dotFactory
Reference Credential providers

aws

Credential providers Spec §10, §4.5, Appendix C

Open an AWS STS session endpoint.

Opens an opaque endpoint whose response value is an AwsCredentials record (access_key_id, secret_access_key, session_token, expires_at) assumed with role. The response carries the session's own expiry; the deployment refreshes at the window or half the remaining lifetime, whichever is shorter. A long step can assume the role again through the same URL instead of holding one session past its expiry.

Configuration

None.

Inputs

Name Type Description
role text The IAM role ARN to assume.

Outputs

Name Type Description
url secret The opaque endpoint URL (the capability).

Types

The shapes this kind's configuration and ports name — what you combine it with.

Endpoint record
  • url secret
AwsCredentials record
  • access_key_id secret
  • secret_access_key secret
  • session_token secret
  • expires_at time

Example

type Endpoint = { url: secret }

provider aws(role: text) -> Endpoint

unit deploy:
  with session: aws(role: "arn:aws:iam::123456789012:role/deploy")
  step apply:
    in: { endpoint: session.url }

Back to the reference