Encountered unsupported property Rules

aws

#1

I am using S3 suffix rules using the following configuration in my serverless.yml file

resources:
  Resources:
    [BUCKET NAME]:
      Type: AWS::S3::Bucket
      Properties:
         Rules:
          - Name: suffix
            Value: xls
          - Name: suffix
            Value: xlsx

But when deploying it is giving the error “Encountered unsupported property Rules.”


#2

Looking at the CFN docs for S3::Bucket type resources doesn’t show any Rules property, hence the message…