HashiCorp Vault AWS API

AWS dynamic credentials secrets engine

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /aws/creds/{name} Get temporary AWS credentials · HashiCorp Vault Generate AWS credentials #
Ask an LLM
“Can Vault issue temporary AWS credentials for a named role?”
“How long do the dynamic AWS credentials I generate last?”
Tell an agent
Generate AWS credentials for role {name}.
Issue short-lived AWS access keys for {name}.
GET /aws/roles/{name} Read an AWS role's configuration · HashiCorp Vault Read AWS role #
Ask an LLM
“What IAM roles and policies are attached to an AWS role?”
“How do I view the settings of an existing AWS role?”
Tell an agent
Show the AWS role {name}.
Read the configuration of AWS role {name}.
POST /aws/roles/{name} Create or update an AWS role · HashiCorp Vault Create or update AWS role #
Ask an LLM
“How do I create a new AWS role for dynamic credentials?”
“Can I attach IAM policies to an AWS role when creating it?”
Tell an agent
Create AWS role {name} with policy ARNs {policy_arns}.
Create role {name} assuming IAM roles {role_arns} and max TTL {max_sts_ttl}.
DELETE /aws/roles/{name} Delete an AWS role · HashiCorp Vault Delete AWS role #
Ask an LLM
“How do I remove an AWS role I no longer use?”
“Can I delete an AWS role by name?”
Tell an agent destructive · confirm first
Delete AWS role {name}.
Remove the AWS role {name} from Vault.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/hvault:hvault-aws-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

hvault-aws-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HashiCorp Vault Vault Secrets Engines AWS API
  description: APIs for various Vault secrets engines including the KV (Key/Value) v1 and v2 engines, AWS dynamic credentials, database dynamic credentials, PKI certificate management, SSH certificate signing, and Transit encryption-as-a-service.
  version: '1.0'
  contact:
    name: HashiCorp Support
    email: support@hashicorp.com
    url: https://support.hashicorp.com/
  license:
    name: Business Source License 1.1
    url: https://github.com/hashicorp/vault/blob/main/LICENSE
servers:
- url: https://vault.example.com/v1
  description: Vault Server
security:
- vaultToken: []
tags:
- name: Aws
  description: AWS dynamic credentials secrets engine
paths:
  /aws/creds/{name}:
    get:
      operationId: generateAwsCredentials
      summary: HashiCorp Vault Generate AWS credentials
      description: Generates dynamic AWS access credentials based on the named role.
      tags:
      - Aws
      parameters:
      - name: name
        in: path
        required: true
        description: Name of the role
        schema:
          type: string
      responses:
        '200':
          description: AWS credentials generated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AwsCredentialsResponse'
        '403':
          description: Permission denied
  /aws/roles/{name}:
    get:
      operationId: readAwsRole
      summary: HashiCorp Vault Read AWS role
      description: Reads the configuration for the named AWS role.
      tags:
      - Aws
      parameters:
      - name: name
        in: path
        required: true
        description: Name of the role
        schema:
          type: string
      responses:
        '200':
          description: AWS role configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AwsRole'
        '404':
          description: Role not found
    post:
      operationId: createOrUpdateAwsRole
      summary: HashiCorp Vault Create or update AWS role
      description: Creates or updates the named AWS role.
      tags:
      - Aws
      parameters:
      - name: name
        in: path
        required: true
        description: Name of the role
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AwsRole'
      responses:
        '204':
          description: Role created or updated
        '400':
          description: Invalid request
    delete:
      operationId: deleteAwsRole
      summary: HashiCorp Vault Delete AWS role
      description: Deletes the named AWS role.
      tags:
      - Aws
      parameters:
      - name: name
        in: path
        required: true
        description: Name of the role
        schema:
          type: string
      responses:
        '204':
          description: Role deleted
components:
  schemas:
    AwsRole:
      type: object
      properties:
        credential_type:
          type: string
          enum:
          - iam_user
          - assumed_role
          - federation_token
          description: Type of AWS credential to generate
        role_arns:
          type: array
          items:
            type: string
          description: ARNs of IAM roles to assume
        policy_arns:
          type: array
          items:
            type: string
          description: ARNs of IAM policies to attach
        policy_document:
          type: string
          description: Inline IAM policy document in JSON
        default_sts_ttl:
          type: string
          description: Default TTL for STS credentials
        max_sts_ttl:
          type: string
          description: Maximum TTL for STS credentials
    AwsCredentialsResponse:
      type: object
      properties:
        lease_id:
          type: string
          description: Unique lease identifier
        lease_duration:
          type: integer
          description: Lease duration in seconds
        renewable:
          type: boolean
          description: Whether the lease is renewable
        data:
          type: object
          properties:
            access_key:
              type: string
              description: AWS access key ID
            secret_key:
              type: string
              description: AWS secret access key
            security_token:
              type: string
              description: AWS STS session token (for assumed_role type)
  securitySchemes:
    vaultToken:
      type: apiKey
      in: header
      name: X-Vault-Token
      description: Vault authentication token
externalDocs:
  description: Vault Secrets Engines API Documentation
  url: https://developer.hashicorp.com/vault/api-docs/secret