Skip to content

Commit

Permalink
provider/aws: Make 'stage_name' required in api_gateway_deployment (#…
Browse files Browse the repository at this point in the history
…6797)

When stage_name is not passed to the resource
aws_api_gateway_deployment a terraform apply will fail. This is
because the stage_name is required and not optional.
  • Loading branch information
jrasell authored and stack72 committed May 20, 2016
1 parent fc022e8 commit e3352e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func resourceAwsApiGatewayDeployment() *schema.Resource {

"stage_name": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Required: true,
ForceNew: true,
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ resource "aws_api_gateway_deployment" "MyDemoDeployment" {
The following arguments are supported:

* `rest_api_id` - (Required) The ID of the associated REST API
* `stage_name` - (Optional) The name of the stage
* `stage_name` - (Required) The name of the stage
* `description` - (Optional) The description of the deployment
* `stage_description` - (Optional) The description of the stage
* `variables` - (Optional) A map that defines variables for the stage
Expand Down

0 comments on commit e3352e8

Please sign in to comment.