Multiple creation of local buckets
Hello, I really appreciate the plugin and am also very happy because of the event support! As described in the following issue and also in the README, the buckets defined in the resources should be commented out when running locally? Is that true? I have defined a bucket in the resources and also set an event for a function. In the terminal output I see the following.
Serverless: starting handler Serverless: Found S3 event listener for bucket-dev warn: the bucket "bucket-dev" already exists warn: the bucket "bucket-dev" already exists Serverless: S3 local started ( port:4569, family: IPv4, address: 127.0.0.1 )
If I for example comment out the function event, this warning only appears once. So this implies that both definition are handled multiple times although not necessary? I would appreciate the ability to say (in a configuration variable) if the bucket in the Resources should be considered or not - definitely more elegant then having to comment out parts of the server less.yml file. Thanks in advance!
Hi @vmtzkr Thanks for your suggestion. Your comment is exactly correct! if you have an elegant way to fix this problem, please send me PR!! It will be so welcomed.