forked from Ducharme/infraAsCodeShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_cicd.sh
More file actions
17 lines (16 loc) · 900 Bytes
/
create_cicd.sh
File metadata and controls
17 lines (16 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
echo "Calling ./codecommit/create_repository.sh"
. ./codecommit/create_repository.sh # No dependency
echo "Calling ./ecr/create_repository.sh"
. ./ecr/create_repository.sh # No dependency
echo "Calling ./logs/create_codebuild_log_group.sh"
. ./logs/create_codebuild_log_group.sh # No dependency
echo "Calling ./iam/create_codebuild_role.sh"
. ./iam/create_codebuild_role.sh # Dependency: log-group, artifact-location (s3), codecommit, codepipeline-*
echo "Calling ./codebuild/create_project.sh"
. ./codebuild/create_project.sh # Dependency: codecommit-repo, codebuild-role-arn
echo "Calling ./iam/create_codepipeline_role.sh"
. ./iam/create_codepipeline_role.sh
sleep 10s # Waits 5 seconds otherwise pipelinemight faildu to rolenot being ready
echo "Calling ./codepipeline/create_pipeline.sh"
. ./codepipeline/create_pipeline.sh # Dependency: codecommit, codebuild, artifact-location (s3)