Support disabling the LiveState feature
What would you like to be added:
- Support disabling the LiveState feature for a platform-provider.
- e.g. Add
enableLiveState: true/falseflag inPlatformProviderLambdaConfig.
- e.g. Add
Why is this needed:
- For those who don't need DriftDetection and LiveState UI, the LiveState feature is not necessary.
- LiveState feature calls a lot of APIs (e.g. AWS, GCP, etc.), but it would lead to higher cost.
- Especially, the number of API calls tends to be higher for function platforms like Lambda/CloudRun.
💡 An idea of implementation is like this: https://github.com/pipe-cd/pipecd/commit/82988086a99232d6908a7d1ce245ffa7629750ac
I think the configuration for features like livestate or drift detection to be on/off should belong to application configuration instead of piped platform provider or plugin config since users may use the same platform/plugin config of piped to manage various applications with different attentions, wdyt? 🤔
Disabling LiveState&DriftDetection for each app does not have an effect on reducing API calls. Even if LiveState of only one app is enabled, livestatestore will fetch all resources.
FYI, it seems that there was a similar issue with disabling drift detection: https://github.com/pipe-cd/pipecd/issues/4508. This is implemented as a temporary option for the terraform provider in the piped config. https://pipecd.dev/docs-v0.49.x/user-guide/managing-piped/configuration-reference/#platformproviderterraformconfig
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity. Feel free to reopen if still applicable.