Resource: aws_apigatewayv2_stage

Manages an Amazon API Gateway Version 2 stage. More information can be found in the Amazon API Gateway Developer Guide.

Example Usage

Basic

resource "aws_apigatewayv2_stage" "example" {
  api_id = aws_apigatewayv2_api.example.id
  name   = "example-stage"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

access_log_settings

default_route_settings

route_settings

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 aws_apigatewayv2_stage using the API identifier and stage name. For example:

import {
  to = aws_apigatewayv2_stage.example
  id = "aabbccddee/example-stage"
}

Using terraform import, import aws_apigatewayv2_stage using the API identifier and stage name. For example:

% terraform import aws_apigatewayv2_stage.example aabbccddee/example-stage