synthetic-monitoring-app
synthetic-monitoring-app copied to clipboard
Generated terraform configuration contains duplicated resource names
From https://github.com/grafana/support-escalations/issues/4118
What happened:
The resource id conflicts if there are checks:
- Which has same job name
- Which has different check endpoints with same hostname but different context paths.
What was expected to happen:
Context path is also accounted for resource naming.
Steps to reproduce the problem:
1. Create a terraform config for 2 checks.
2. Use the same job name for both
3. Use different check endpoints, with same host name but different context paths.
4. Apply terraform config.
5. Try to export terraform config from UI - error happens (PFA)
6. Try to reapply terraform config from cli with slight variance : eg: an additional label. - error happens. (PFA)
The generated terraform configuration is invalid, it contains duplicated resource names.