Skip to content

Commit 888cecc

Browse files
committed
add cloudformation policy to perform build.yaml cli commands
1 parent cf3a853 commit 888cecc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

infra/codebuild.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ Resources:
9292
- s3:PutObject
9393
- s3:DeleteObject
9494
Resource: arn:aws:s3:::samhstn.com/*
95+
- Effect: Allow
96+
Action:
97+
- cloudformation:ValidateTemplate
98+
- cloudformation:GetTemplate
99+
- cloudformation:CreateStack
100+
- cloudformation:UpdateStack
101+
Resource: "*"
95102

96103
Push:
97104
Type: AWS::CodeBuild::Project

infra/master-pipeline.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ Resources:
4444
- codebuild:BatchGetBuilds
4545
- codebuild:StartBuild
4646
Resource:
47-
- !Sub "arn:aws:codebuild:${AWS::Region}:${AWS::AccountId}:project/Test"
4847
- !Sub "arn:aws:codebuild:${AWS::Region}:${AWS::AccountId}:project/Build"
48+
- !Sub "arn:aws:codebuild:${AWS::Region}:${AWS::AccountId}:project/Test"
4949

5050
GithubSecretParameter:
5151
Type: AWS::SecretsManager::Secret

0 commit comments

Comments
 (0)