-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Find a way to add extensions (e.g. callbacks) to moto #7126
Comments
My code for cloud-sim call is here - 882e010 |
Hi @retpolanne! Having an extensions/plugin system is quite the implementation/maintenance effort, and I'm not sure there would be enough usage to justify this. As an alternative solution:
|
@bblommers thanks! In my case, I'm using moto as a standalone server for apps running in another language, so that wouldn't really work :c |
Ah, I understand. That makes a bit more difficult. I'll mark it as a feature request, let's see if we can come up with a solution for this. |
I have an environment where I want to test the whole EC2 creation flow, from the EC2 api request to a locally-simulated cloud VM with cloud-init.
I created this tool - https://github.com/retpolanne/cloud-vm-sim - that has an API endpoint that receives a userdata and creates a QEMU VM that can reach to this userdata and run cloud-init. I've extended the EC2 code to call this service on the mock and it works nicely :)
However, I wanted this to be cleaner - I don't want moto to have this code as this is useful just for me. I wanted to be able to specify a plugins directory and load them and call whatever is in my plugin before the EC2 response.
The text was updated successfully, but these errors were encountered: