Skip to content

Commit

Permalink
fix policy
Browse files Browse the repository at this point in the history
  • Loading branch information
cplee committed Jan 12, 2018
1 parent 75083d7 commit c1aa91f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pipeline-iam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ Resources:
Statement:
- Action:
- s3:PutObject
- s3:GetObject
Resource:
- Fn::Sub: arn:aws:s3:::${Namespace}-loadbalancer-${AcptEnv}-${AWS::Region}-${AWS::AccountId}/*
Effect: Allow
- Action:
- s3:ListObjects
- s3:ListBucket
Resource:
- '*'
- Fn::Sub: arn:aws:s3:::${Namespace}-loadbalancer-${AcptEnv}-${AWS::Region}-${AWS::AccountId}
Effect: Allow
CodeBuildCDProdRole:
Properties:
Expand All @@ -24,8 +25,13 @@ Resources:
Version: '2012-10-17'
Statement:
- Action:
- s3:ListObjects
- s3:PutObject
- s3:GetObject
Resource:
- Fn::Sub: arn:aws:s3:::${Namespace}-loadbalancer-${ProdEnv}-${AWS::Region}-${AWS::AccountId}/*
Effect: Allow
- Action:
- s3:ListBucket
Resource:
- Fn::Sub: arn:aws:s3:::${Namespace}-loadbalancer-${ProdEnv}-${AWS::Region}-${AWS::AccountId}
Effect: Allow

0 comments on commit c1aa91f

Please sign in to comment.