GCP Python client method to Create Monitoring Notification channel is not idempotent.
Duplicate Channels under same Project are getting created.
Is there a way to avoid duplication?
GCP Python client method to Create Monitoring Notification channel is not idempotent.
Duplicate Channels under same Project are getting created.
Is there a way to avoid duplication?
According the documentation it's not possible to handle duplicates directly but you can solve your issue with the following actions :
GCP via the list_notification_channelsGCP (check from the list retrieved previously), update it via update_notification_channel function, otherwise create it with create_notification_channel function.