aws_api_gateway_rest_api

Provides an API Gateway REST API.

Example Usage

resource "aws_api_gateway_rest_api" "MyDemoAPI" {
  name = "MyDemoAPI"
  description = "This is my API for demonstration purposes"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the REST API
  • description - (Optional) The description of the REST API

Attributes Reference

The following attributes are exported:

  • id - The ID of the REST API
  • root_resource_id - The resource ID of the REST API's root