diff --git a/main.tf b/main.tf index 4518d6e..e99b17a 100644 --- a/main.tf +++ b/main.tf @@ -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"