title: Serverless - AWS S3 Bucket already exists
body: <p>I am building my first sls app and I am trying to create two buckets. The &quot;LogosBucket&quot; works perfectly. I did the same process to create a second one called &quot;DocumentsBucket&quot; and it fails w/ message: &quot;An error occurred: DocumentsBucket - documents-bucket-dev already exists.&quot;</p>
  <p>I have looked at the Stack and it is not listed under resources. I am aware of this issue happening w/ bucket events but I don't think that is my case. It feels like a very simple oversight but I am a bit lost.</p>
  <p>Here is my serverless.yml file:</p>
  <pre><code>    iamRoleStatements:
      - ${file(iam/LogosBucketIAM.yml):LogosBucketIAM}
      - ${file(iam/DocumentsBucketIAM.yml):DocumentsBucketIAM}
  
  resources:
    Resources:
      LogosBucket: ${file(resources/LogosBucket.yml):LogosBucket}
      LogosBucketPolicy: ${file(resources/LogosBucket.yml):LogosBucketPolicy}
      DocumentsBucket: ${file(resources/DocumentsBucket.yml):DocumentsBucket}
      DocumentsBucketPolicy: ${file(resources/DocumentsBucket.yml):DocumentsBucketPolicy}
  
  ...
  
  custom:
    LogosBucket:
      name: logos-bucket-${self:provider.stage}
    DocumentsBucket:
      name: documents-bucket-${self:provider.stage}
  </code></pre>
  <p>DocumentsBucketIAM.yml:</p>
  <pre><code>DocumentsBucketIAM:
    Effect: Allow
    Action:
      - s3:PutObject
    Resource: arn:aws:s3:::${self:custom.DocumentsBucket.name}/*
  </code></pre>
  <p>LogosBucketIAM.yml:</p>
  <pre><code>LogosBucketIAM:
    Effect: Allow
    Action:
      - s3:PutObject
    Resource: arn:aws:s3:::${self:custom.LogosBucket.name}/*
  </code></pre>
  <p>DocumentsBucket.yml:</p>
  <pre><code>DocumentsBucket:
    Type: AWS::S3::Bucket
    Properties:
      BucketName: ${self:custom.DocumentsBucket.name}
  
  DocumentsBucketPolicy:
    Type: AWS::S3::BucketPolicy
    Properties:
      Bucket: !Ref DocumentsBucket
      PolicyDocument:
        Statement:
          - Sid: PublicRead
            Effect: Allow
            Principal: '*'
            Action:
              - s3:GetObject
            Resource: arn:aws:s3:::${self:custom.DocumentsBucket.name}/*
  </code></pre>
  <p>LogosBucket.yml:</p>
  <pre><code>LogosBucket:
    Type: AWS::S3::Bucket
    Properties:
      BucketName: ${self:custom.LogosBucket.name}
  
  LogosBucketPolicy:
    Type: AWS::S3::BucketPolicy
    Properties:
      Bucket: !Ref LogosBucket
      PolicyDocument:
        Statement:
          - Sid: PublicRead
            Effect: Allow
            Principal: '*'
            Action:
              - s3:GetObject
            Resource: arn:aws:s3:::${self:custom.LogosBucket.name}/*
  </code></pre>
  <p>I would appreciate any help and/or tips to debug sls. Thank you!</p>