File tree Expand file tree Collapse file tree 2 files changed +2
-57
lines changed
Expand file tree Collapse file tree 2 files changed +2
-57
lines changed Original file line number Diff line number Diff line change @@ -19,33 +19,7 @@ Resources:
1919 PolicyDocument :
2020 Version : 2012-10-17
2121 Statement :
22- # todo: add s3 role
23- - Effect : Allow
24- Action :
25- - logs:CreateLogGroup
26- - logs:CreateLogStream
27- - logs:DescribeLogStreams
28- - logs:PutLogEvents
29- Resource :
30- !Sub "arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/codebuild/*"
31-
32- UpdateInfraRole :
33- Type : AWS::IAM::Role
34- Properties :
35- RoleName : samhstn-update-infra-role
36- AssumeRolePolicyDocument :
37- Version : 2012-10-17
38- Statement :
39- Effect : Allow
40- Principal :
41- Service : codebuild.amazonaws.com
42- Action : sts:AssumeRole
43- Policies :
44- - PolicyName : samhstn-codebuild-build-policy
45- PolicyDocument :
46- Version : 2012-10-17
47- Statement :
48- # todo: add s3 role
22+ # todo: add separate test and build roles
4923 - Effect : Allow
5024 Action :
5125 - logs:CreateLogGroup
@@ -108,21 +82,6 @@ Resources:
10882 Type : CODEPIPELINE
10983 BuildSpec : infra/buildspecs/test.yaml
11084
111- UpdateInfra :
112- type : AWS::CodeBuild::Project
113- Properties :
114- Name : UpdateInfra
115- Artifacts :
116- Type : CODEPIPELINE
117- Environment :
118- Type : LINUX_CONTAINER
119- ComputeType : BUILD_GENERAL1_SMALL
120- Image : aws/codebuild/nodejs:10.14.1
121- ServiceRole : !Ref UpdateInfraRole
122- Source :
123- Type : CODEPIPELINE
124- BuildSpec : infra/buildspecs/update_infra.yml
125-
12685 Build :
12786 Type : AWS::CodeBuild::Project
12887 Properties :
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ Resources:
3737 - codebuild:StartBuild
3838 Resource :
3939 - !Sub " arn:aws:codebuild:${AWS::Region}:${AWS::AccountId}:project/Test"
40- - !Sub " arn:aws:codebuild:${AWS::Region}:${AWS::AccountId}:project/UpdateInfra"
4140 - !Sub " arn:aws:codebuild:${AWS::Region}:${AWS::AccountId}:project/Build"
4241
4342 Pipeline :
@@ -78,19 +77,6 @@ Resources:
7877 Configuration :
7978 ProjectName : Test
8079 RunOrder : 2
81- - Name : UpdateInfra
82- Actions :
83- - Name : UpdateInfra
84- ActionTypeId :
85- Category : Build
86- Owner : AWS
87- Version : 1
88- Provider : CodeBuild
89- InputArtifacts :
90- - Name : SourceOutput
91- Configuration :
92- ProjectName : UpdateInfra
93- RunOrder : 3
9480 - Name : Deploy
9581 Actions :
9682 - Name : Deploy
@@ -105,7 +91,7 @@ Resources:
10591 - Name : SourceOutput
10692 Configuration :
10793 ProjectName : Build
108- RunOrder : 4
94+ RunOrder : 3
10995
11096 GithubWebhook :
11197 Type : AWS::CodePipeline::Webhook
You can’t perform that action at this time.
0 commit comments