title: How do I assign function level IamRoleStatements in Serverless Framework?
body: <p>I want to assign different permissions for different functions listed in my serverless.yml</p>
  
  <pre><code> functions:
    hello:
      handler: handler.hello
    crawl-distributor:
      handler: CrawlDistributor.handler
    product-scanner:
      handler: ProductScanner.handler
      iamRoleStatements:
        - Effect: Allow
          Action:
            - dynamodb:*
            - lambda:*
          Resource: "*"
  </code></pre>
  
  <p>This doesn't seem to work. When I add the iamRoleStatements at the provider level, it works, but ends up applying the permissions to all the functions.</p>
  
  <pre><code> provider:
    name: aws
    runtime: nodejs4.3
    stage: api
    region: us-east-1
    profile: dev
    iamRoleStatements:
      - Effect: Allow
        Action:
          - dynamodb:*
          - lambda:*
        Resource: "*"
  </code></pre>