Resource: aws_api_gateway_api_key

Provides an API Gateway API Key.

Example Usage

resource "aws_api_gateway_api_key" "example" {
  name = "example"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import API Gateway Keys using the id. For example:

import {
  to = aws_api_gateway_api_key.example
  id = "8bklk8bl1k3sB38D9B3l0enyWT8c09B30lkq0blk"
}

Using terraform import, import API Gateway Keys using the id. For example:

% terraform import aws_api_gateway_api_key.example 8bklk8bl1k3sB38D9B3l0enyWT8c09B30lkq0blk