Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. BuildRole:
  2. Type: AWS::IAM::Role
  3. Properties:
  4. AssumeRolePolicyDocument:
  5. Statement:
  6. - Action: sts:AssumeRole
  7. Effect: Allow
  8. Principal:
  9. Service:
  10. - codebuild.amazonaws.com
  11. Path: /
  12. Policies:
  13. - PolicyName: AllowApplicationFramework
  14. PolicyDocument:
  15. Statement:
  16. - Sid: AllowServerlessFrameworkToDeploy
  17. Effect: Allow
  18. Resource:
  19. Fn::Sub:
  20. - 'arn:aws:s3:::${bucket}'
  21. - bucket:
  22. Fn::ImportValue: CodeArtifactsBucket
  23. Action:
  24. - s3:GetBucketLocation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement