HashiCorp Vault AWS API

AWS dynamic credentials secrets engine

Operations 4

GET /aws/creds/{name} HashiCorp Vault Generate AWS credentials #
GET /aws/roles/{name} HashiCorp Vault Read AWS role #
POST /aws/roles/{name} HashiCorp Vault Create or update AWS role #
DELETE /aws/roles/{name} HashiCorp Vault Delete AWS role #

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-aws-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. 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 Auth Methods AppRole AWS API
  description: APIs for authentication methods in HashiCorp Vault including Token, AppRole, Kubernetes, LDAP, JWT/OIDC, GitHub, Userpass, and AWS auth methods. These endpoints handle user and machine authentication to obtain Vault tokens.
  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 Auth Methods API Documentation
  url: https://developer.hashicorp.com/vault/api-docs/auth