terraform-provider-signalfx icon indicating copy to clipboard operation
terraform-provider-signalfx copied to clipboard

Detectors - Slack notifications inconsistency

Open the-redshift opened this issue 10 months ago • 0 comments

Hi, Assume I have detector. . Then I want to configure it with Slack Notifications - so I choose my channel from the list (note - all channels on the drop down list are prefixed with #). Next, I perform an API Call [GET] to check that detector definitions. Within notification section, I will have channel name, prefixed with #. The same behavior occurs when using terraform import + terraform show. So far so good. Then, if I wanted to create terraform resource using the information obtained in aforementioned way, I'll have to drop that # prefix, because it is enforced by validation: https://github.com/splunk-terraform/terraform-provider-signalfx/blob/49e6ad89bb0617a7a56ae3262d9e344ded7ff4ec/signalfx/notifications.go#L196 Furthermore, when terraform apply is performed, it will actually overwrite the channel name in the notification so it has no prefix. Something like this is not possible via UI.

So could somebody elaborate on the reason why is that inconsistency present?

the-redshift avatar Apr 09 '24 15:04 the-redshift