Replies: 6 comments 5 replies
|
Personally, a plugin structure for the Today, if not using the 'native' build/package methodology of each language, one has to resort to Makefiles. While I like make as much as the next person, make is reallyt opinionated - and designed for - C-style languages. Yes, it is possible to use Make as a script-runner, but often times doing pretty simple things in Make can be difficult for the non-initiated. If, instead, the entire build/package functionality of SAM was pluggable, the community could easily contribute with better language-specific build methodologies without requiring users to resort to project-level hacks or customisations. Example: I use Poetry for managing Python dependencies and packaging. That requires me to run the entire project lifecycle through Make - including SAM commands. It is easier now that I have the Makefile, but not having to do it in the first place would be better... |
|
As a side note: there are a number of ways to build a Plugin structure. If I may make a suggestion, consider using the Git* approach of 'subcommands' being simply standalone executables in the $PATH, all prefixed with a common name, e.g.
You could then pass as an argument a serialized dict to the subcommand with internal information from SAM that the plugin might need. *: IDK if Git originally did it, I just learned about it from Git |
|
(2) for me... I need to test graphql locally and that seems difficult with SAM right now. |
|
I think I'd really be looking for a fourth category of plugin: I want to be able to do additional transformations on the cloudformation template prior to its emission. (That seems different from your first category). As it is, I've written a bunch of tooling that takes a human authored template, then adds a bunch of stuff to it, then passes it to |
|
In addition to build workflow plugins, I'd like to be able to hook into and replace the publish functionality to provide hooks or limitations for my environment. |
|
Which of these options would enable WebSocket APIs to be locally testable (#896)? Maybe "Local Emulator Plugins"? Though, this is part of API Gateway and thus a pretty core feature rather than a "dependency". |
Uh oh!
There was an error while loading. Please reload this page.
Currently we are exploring ways to extend SAM CLI’s (Serverless Application Model Command Line Interface) functionality by allowing developers to build plugins. We are considering three kinds of plugins -
Of the three options above, which is the most useful to you and why? Which is the least useful?
This was migrated from Issues. Original Issue can be found at #3265
All reactions