From f8678ab975d1b978cba3c7d23b20823421fd059f Mon Sep 17 00:00:00 2001 From: magreenbaum Date: Sat, 31 Aug 2024 23:45:36 -0400 Subject: [PATCH] add depends_on for policy and policy attachments on pipes --- main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.tf b/main.tf index 4047fb8..a53b231 100644 --- a/main.tf +++ b/main.tf @@ -810,4 +810,9 @@ resource "aws_pipes_pipe" "this" { } tags = merge(var.tags, try(each.value.tags, {})) + + depends_on = [ + aws_iam_policy.service, + aws_iam_policy_attachment.service + ] }