Open poleszcz opened 1 year ago
Created chart
resource "appoptics_dashboard_chart" "example_chart" { space_id = appoptics_dashboard.example_dashboard.id name = "Example Chart" depends_on = [appoptics_metric.metric_three] min = 0 max = 100 label = "Used" type = "line" stream { metric = appoptics_metric.metric_two.name color = "#fa7268" units_short = "%" units_long = "Percentage used" tags { name = "environment" values = ["staging"] } } }
and tryied to add another stream
resource "appoptics_dashboard_chart" "example_chart" { space_id = appoptics_dashboard.example_dashboard.id name = "Example Chart" depends_on = [appoptics_metric.metric_three] min = 0 max = 100 label = "Used" type = "line" stream { metric = appoptics_metric.metric_two.name color = "#fa7268" units_short = "%" units_long = "Percentage used" tags { name = "environment" values = ["staging"] } } stream { metric = appoptics_metric.metric_three.name color = "#fa7218" units_short = "%" units_long = "Percentage used" tags { name = "environment" values = ["staging"] } } }
but ...
appoptics_dashboard_chart.example_chart: Modifying... [id=30584833] ╷ │ Error: Error updating AppOptics chart : 404 Not Found - {"request":["Not Found"]} │ │ with appoptics_dashboard_chart.example_chart, │ on dashboard.tf line 5, in resource "appoptics_dashboard_chart" "example_chart": │ 5: resource "appoptics_dashboard_chart" "example_chart" {
Apply without second stream works and the chart 30584833 exists... so it's definitely issue of that stream.
Might be fixef with: https://github.com/appoptics/terraform-provider-appoptics/pull/63 To test after merge.
Created chart
and tryied to add another stream
but ...
appoptics_dashboard_chart.example_chart: Modifying... [id=30584833] ╷ │ Error: Error updating AppOptics chart : 404 Not Found - {"request":["Not Found"]} │ │ with appoptics_dashboard_chart.example_chart, │ on dashboard.tf line 5, in resource "appoptics_dashboard_chart" "example_chart": │ 5: resource "appoptics_dashboard_chart" "example_chart" {
Apply without second stream works and the chart 30584833 exists... so it's definitely issue of that stream.