Reputation: 12416
I have set up a notification channel for Console Cloud mobile Application:
Now I would like to be able to add the notification to alerting via Terraform, so I would like to get the notification channel id:
gcloud alpha monitoring channels list
This command returns all the channels, but this one not.
Also when trying to plan with Terraform, I can discover the id (projects/goout-cloud/notificationChannels/#####), however when I try to add it to any alert Terraform section, I will always get:
Error: Cannot import non-existent remote object
Upvotes: 1
Views: 3679
Reputation: 1872
I consulted this question internally,
Any sort of interaction - including get, create and update to Mobile App Channels through the API is not possible and gives 404. This notification channel cannot be used by non-Google internal API clients. As such, automation is not currently possible.
The Cloud Stackdriver Monitoring team is aware of this limitation, but it solving this issue is not on the priority list, hence there is no ETA for implementation any time soon.
There is a Issue Tracker regarding this topic, if you want to receive updates, please star the issue.
Upvotes: 2