-
-
Notifications
You must be signed in to change notification settings - Fork 373
Replace the vendor/bin/bref
CLI with serverless
commands
#1303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Does it mean that I cannot use bref without serverless or that I just have to use longer command? |
Love the idea of moving towards the serverless command style with all but the bref init example, but your BC suggestion sounds a perfect solution to address that |
@soukicz Bref continues to work with other deployment tools. However these commands won't work unless you use Serverless Framework.
I will document ways to invoke the console function without using Serverless Framework (using the AWS CLI). Thank you for bringing that up 👍 Also out of curiosity, are you using something else than Serverless Framework? |
It is compliance thing and also training. Serverless adds multiple initial steps and also new software that somebody has to approve. Great thing about lambda+bref is that if somebody needs to make changes to code, they can just run simple Serverless is probably great if you are working with it regularly but it is pain for someone that just needs to make quick change and does not care about architecture or setting up special environment for this one project. Our current quick start readme for bref project looks similar like this:
|
ah ok I see, I forgot about that flow. I'll try to make that available without requiring SF too, it might be possible 👍 |
In the v2 issue, I saw something about a terraform provider. I quite liked that. How would this proposal affect the terraform deployment options? |
PR update: I have documented how to invoke Also, here is how to run Let me know if these 2 approaches look OK. I have also updated This PR is almost done. We're able to drop 3 dependencies:
That doesn't sound like much, but the next step is that I'll be able to extract to separate repositories the built-in Lambda SimpleClient and Websocket SimpleClient. These should have been separate repositories from the start (used by very few users). This will allow us to remove
With the latest changes, all commands can be run without Serverless Framework (though, to be fair, in a less practical way). So that should work out. |
All documented, let's goooo! |
@LorenzoRogai check out #1459 I will be tagging a release shortly. |
What
This PR aims to remove the
vendor/bin/bref
CLI and replace it by customserverless
commands.I'm opening this PR to gather feedback on the idea.
Why
bref cli
: avoid having to pass the function name #125 (cc @Guillaume-Rossignol)serverless
, so--stage
,--region
, AWS credentials, etc. will all work the samebref/bref
package (because much less Composer dependencies) = faster deploys and faster cold starts for usersHow
The Bref plugin already runs in the
serverless
CLI. I use it to add newserverless
commands:TODO
vendor/bin/bref cli
vendor/bin/bref local
vendor/bin/bref layers
vendor/bin/bref init
vendor/bin/bref
)bref local
work without SF