Skip to content

Commit

Permalink
Codepipeline depends_on each policy attachment to avoid races (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinlacewell authored and osterman committed Apr 2, 2019
1 parent cb8017b commit 3900b4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@ resource "aws_codepipeline" "source_build_deploy" {
type = "S3"
}

depends_on = [
"aws_iam_role_policy_attachment.default",
"aws_iam_role_policy_attachment.s3",
"aws_iam_role_policy_attachment.codebuild",
"aws_iam_role_policy_attachment.codebuild_s3",
]

stage {
name = "Source"

Expand Down

0 comments on commit 3900b4c

Please sign in to comment.