GoogleCloudPlatform / automlops

Build MLOps Pipelines in Minutes
Apache License 2.0
143 stars 34 forks source link

[Feature Request] Allow to enable additional google apis on generated provision code #42

Closed JuanFKurucz closed 8 months ago

JuanFKurucz commented 9 months ago

Feature request

It would be great if the generated provision code allows the enabling of additional Google APIs defined by the user that are not present in the default enabled APIs.

Motivation

I'm building an AutoMLOps pipeline that provisions an additional cloud-run component (not provisioned by the default generated code). The whole pipeline requires that run.googleapis.com be enabled (In my case, the pipeline job submitter is provisioned with cloud functions, then by default, run api is disabled). This could happen with other Google APIs, so it can be a good feature to have a list of additional APIs to enable.

Your contribution

I could do this myself by opening a PR (advise me if you would want to), my idea is to pass a parameter to AutoMLOps generate, which then writes this to the default config and loads those APIs to the required_apis set defined in utils.py/get_required_apis

srastatter commented 8 months ago

Similar response to #44, although this is much easier to implement. Our current recommended practice is to update the APIs list either after generation or in the source_code; we are considering an additional custom parameter for "additional APIs to enable" or something of that sort; we will include this in an upcoming release if enough users mention a desire for this - thank you for tracking!