title: Unable to create S3Buckets through serverless.yml
body: <p>I simply tried to add a new S3Bucket into the Resources section and the stack is not being built anymore:</p>
  
  <pre><code>resources:
    Resources:
      myBucket:
        Type: AWS::S3::Bucket
        Properties:
          BucketName: prefix-${self:custom.env.myvar}-myBucket
  </code></pre>
  
  <p>and the error I'm getting is not helping too much:
  <strong>Template format error: Unresolved resource dependencies
       [] in the Resources block of the template</strong> (nothing between the [] that could indicate what to look for)</p>
  
  <p>Any idea what's going on?</p>
  
  <p>I'm running serverless v1.5.0</p>
  
  <p>serverless.yml</p>
  
  <pre><code>service: myService
  frameworkVersion: "=1.5.0"
  
  custom:
    env: ${file(./.variables.yml)}
  
  provider:
    name: aws
    runtime: nodejs4.3
    stage: ${opt:stage, self:custom.env.stage}
    region: ${self:custom.env.region}
    profile: myProfile-${opt:stage, self:custom.env.stage}
    memorySize: 128
  
    iamRoleStatements:
      - Effect: "Allow"
        Action:
          - "lambda:InvokeFunction"
        Resource: "*"
      - Effect: "Allow"
        Action:
      - "s3:ListBucket"
        Resource: { "Fn::Join" : ["", ["arn:aws:s3:::", { "Ref" : "ServerlessDeploymentBucket" } ] ]  }
      - Effect: "Allow"
        Action:
          - "s3:PutObject"
        Resource:
          Fn::Join:
            - ""
            - - "arn:aws:s3:::"
              - "Ref" : "ServerlessDeploymentBucket"
              - "Ref" : ""
  
  functions:
    myFunction:
      handler: functions/myFunction.handler
      name: ${opt:stage, self:custom.env.stage}-myFunction
  
  resources:
    Resources:
      myBucket:
        Type: AWS::S3::Bucket
        Properties:
          BucketName: myService-${opt:stage, self:custom.env.myVar}-myBucket
  </code></pre>