Skip to content

Commit

Permalink
Make depends_on consistent with note (#2526)
Browse files Browse the repository at this point in the history
At the top of the page the note says that the
`aws_api_gateway_deployment` resource should include a `depends_on` for
the `aws_api_gateway_integration.name` resource, yet the example depends
on the `aws_api_gateway_method.MyDemoMethod` resource, which doesn't
seem to fix the race condition.
  • Loading branch information
abulford authored and catsby committed Dec 18, 2017
1 parent dad71f0 commit 52dc8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/r/api_gateway_deployment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource "aws_api_gateway_integration" "MyDemoIntegration" {
}
resource "aws_api_gateway_deployment" "MyDemoDeployment" {
depends_on = ["aws_api_gateway_method.MyDemoMethod"]
depends_on = ["aws_api_gateway_integration.MyDemoIntegration"]
rest_api_id = "${aws_api_gateway_rest_api.MyDemoAPI.id}"
stage_name = "test"
Expand Down

0 comments on commit 52dc8c3

Please sign in to comment.