-
Notifications
You must be signed in to change notification settings - Fork 59
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
Extract Asset Plugin code to make it easy to upload assets from any plugin #283
Comments
@ktalebian is the better expert here but from my understanding the Flex CLI essentially just uploads an Asset to an existing Service. In the past this wasn't compatible with the way the Serverless Toolkit works because we didn't support "additive" deployments. The @philnash you mentioned that |
Part of the reason for that opinion, and also that We could make this work for all services by mandating the inclusion of a service sid and an environment sid. That way we can look up the latest build in an environment, add the asset and all the existing functions, assets and dependencies to a new build that is then deployed. Since the service created in the first place stores its service sid and environment sid in plugin settings this doesn't change the behaviour for the default service. The plugin could then accept Pros and consI see the pros of being able to add an asset to something like a quick deploy function. The main con I see here is that, since there is no way for |
@dkundel even though we do upload the bundle to Twilio Serverless, we need to do some checks prior to upload, and then perform some registrations after the upload. So, we would never advertise customers to use the new CLI command themselves. We still want them to upload the plugin using our CLI. However, if you could make this toolkit exportable, then we can use it as a dependency in our CLI. |
Ok, I think I can do something here! I think the best plan will be to move the functionality to Will try to get some time on this soon. |
This is a placeholder for a discussion about how to share asset uploading code between plugins like the Asset plugin and the Flex CLI.
The text was updated successfully, but these errors were encountered: