Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Multiple creation of local buckets #117

Open
vmtzkr opened this issue Jan 20, 2021 · 1 comment
Open

Multiple creation of local buckets #117

vmtzkr opened this issue Jan 20, 2021 · 1 comment

Comments

@vmtzkr
Copy link

vmtzkr commented Jan 20, 2021

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!

@ar90n
Copy link
Owner

ar90n commented Mar 8, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants