From 54d579949644db688cf43fc03793687c89847e07 Mon Sep 17 00:00:00 2001 From: Jakub Rosa Date: Tue, 12 Sep 2023 14:17:16 +0200 Subject: [PATCH] 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 Co-authored-by: Max Lobur --- main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/main.tf b/main.tf index 7c98ea6..2b1cf0e 100644 --- a/main.tf +++ b/main.tf @@ -47,6 +47,7 @@ resource "aws_api_gateway_deployment" "this" { lifecycle { create_before_destroy = true } + depends_on = [aws_api_gateway_rest_api_policy.this] } resource "aws_api_gateway_stage" "this" {