Skip to content

Commit 3900b4c

Browse files
dustinlacewellosterman
authored andcommitted
Codepipeline depends_on each policy attachment to avoid races (#21)
1 parent cb8017b commit 3900b4c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ resource "aws_codepipeline" "source_build_deploy" {
209209
type = "S3"
210210
}
211211

212+
depends_on = [
213+
"aws_iam_role_policy_attachment.default",
214+
"aws_iam_role_policy_attachment.s3",
215+
"aws_iam_role_policy_attachment.codebuild",
216+
"aws_iam_role_policy_attachment.codebuild_s3",
217+
]
218+
212219
stage {
213220
name = "Source"
214221

0 commit comments

Comments
 (0)