My workflow is as follow:
- I create an s3 bucket on deployment and I’d like to add a file just after deployment into this bucket.
- I have a specific file from a different bucket that I want to copy to this my new bucket.
- I don’t want to create a function just for this.
I’m aware of these two plugins serverless-plugin-scripts and serverless-s3-deploy.
Maybe using one of them could help me.
how can I execute a method/file without creating a function for it? So I can invoke my method on deploy:finalize to put an object in my new bucket.
is it possible to set as source a file from a different bucket? So, I target my current bucket and my source would be a file from a different bucket and I’d be copying this file to the new bucket. Is it possible?