Skip to content

Commit 54d5799

Browse files
ByJacobjamengualmax-lobur
authored
Fix error when create private API Gateway with resource policy (#25)
* fix: error when create private api gateway * Update main.tf --------- Co-authored-by: PePe Amengual <jose.amengual@gmail.com> Co-authored-by: Max Lobur <max_lobur@outlook.com>
1 parent c8a5409 commit 54d5799

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ resource "aws_api_gateway_deployment" "this" {
4747
lifecycle {
4848
create_before_destroy = true
4949
}
50+
depends_on = [aws_api_gateway_rest_api_policy.this]
5051
}
5152

5253
resource "aws_api_gateway_stage" "this" {

0 commit comments

Comments
 (0)