Skip to content

Commit

Permalink
Merge pull request #37664 from hashicorp/doc/add-settings-doc-apigate…
Browse files Browse the repository at this point in the history
…way-deploymeht

Add docs for canary_settings in apigateway_deployment
  • Loading branch information
nam054 committed May 23, 2024
2 parents d2bc0ee + b2e884b commit ea1173d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions website/docs/r/api_gateway_deployment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,20 @@ resource "aws_api_gateway_stage" "example" {

This resource supports the following arguments:

* `rest_api_id` - (Required) REST API identifier.
* `canary_settings` - (Optional) Input configuration for the canary deployment when the deployment is a canary release deployment. See [`canary_settings](#canary_settings-argument-reference) below.
* `description` - (Optional) Description of the deployment
* `stage_name` - (Optional) Name of the stage to create with this deployment. If the specified stage already exists, it will be updated to point to the new deployment. We recommend using the [`aws_api_gateway_stage` resource](api_gateway_stage.html) instead to manage stages.
* `rest_api_id` - (Required) REST API identifier.
* `stage_description` - (Optional) Description to set on the stage managed by the `stage_name` argument.
* `stage_name` - (Optional) Name of the stage to create with this deployment. If the specified stage already exists, it will be updated to point to the new deployment. We recommend using the [`aws_api_gateway_stage` resource](api_gateway_stage.html) instead to manage stages.
* `triggers` - (Optional) Map of arbitrary keys and values that, when changed, will trigger a redeployment. To force a redeployment without changing these keys/values, use the [`-replace` option](https://developer.hashicorp.com/terraform/cli/commands/plan#replace-address) with `terraform plan` or `terraform apply`.
* `variables` - (Optional) Map to set on the stage managed by the `stage_name` argument.

### `canary_settings` Argument Reference

* `percent_traffic` - Percentage (0.0-100.0) of traffic routed to the canary deployment.
* `stage_variable_overrides` - Stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.
* `use_stage_cache` - Boolean flag to indicate whether the canary release deployment uses the stage cache or not.

## Attribute Reference

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

0 comments on commit ea1173d

Please sign in to comment.