I have created an AWS Managed Grafana Workspace and a service account with a corresponding token.
I’m using the service account token to authorize, in the Grafana provider.
provider “grafana” {
- url = “<my_managed_grafana_workspace>”*
- auth = “<service_account_token>”*
}
I get the following error while trying to create a folder (using the grafana_folder resource) in AWS Managed Grafana workspace
2025-07-21T10:39:29.281Z [ERROR] provider.terraform-provider-grafana_v3.25.7.exe: Response contains error diagnostic: tf_resource_type=grafana_folder @caller=github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail=“” diagnostic_severity=ERROR diagnostic_summary=“failed to create folder: invalid character ‘F’ looking for beginning of value” tf_rpc=ApplyResourceChange @module=sdk.proto tf_proto_version=5.8 tf_provider_addr=Terraform Registry tf_req_id=c6ea212e-819b-524c-bf87-e5473cdbb182 timestamp=2025-07-21T10:39:29.281Z
2025-07-21T10:39:29.340Z [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2025-07-21T10:39:29.340Z [ERROR] vertex “module.doci.grafana_folder.doci_grafana_folder[0]” error: failed to create folder: invalid character ‘F’ looking for beginning of value
╷
│ Error: failed to create folder: invalid character ‘F’ looking for beginning of value
│
│ with module.doci.grafana_folder.doci_grafana_folder[0],
│ on modules\doci\doci-grafana.tf line 428, in resource “grafana_folder” “doci_grafana_folder”:
│ 428: resource “grafana_folder” “doci_grafana_folder” {
│
╵
2025-07-21T10:39:29.423Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err=“rpc error: code = Unavailable desc = error reading from server: EOF”
2025-07-21T10:39:29.438Z [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/grafana/grafana/3.25.7/windows_amd64/terraform-provider-grafana_v3.25.7.exe id=7452
2025-07-21T10:39:29.438Z [DEBUG] provider: plugin exited
Any pointers in resolving this issue?
Thank you!