Hello team,
I noticed mistake in https://registry.terraform.io/providers/fastly/fastly/latest/docs/data-sources/ngwaf_workspaces#example-usage.
Terraform returns error message:
╷
│ Error: Reference to undeclared resource
│
│ on main.tf line 17, in output "fastly_ngwaf_workspaces_all":
│ 17: value = data.fastly_ngwaf_workspaces.workspaces
│
│ A data resource "fastly_ngwaf_workspaces" "workspaces" has not been declared in the root module.
╵
╷
│ Error: Reference to undeclared resource
│
│ on main.tf line 22, in output "fastly_ngwaf_workspaces_filtered":
│ 22: value = one([for workspace in data.fastly_ngwaf_workspaces.workspaces.details : workspace.id if workspace.name == "Example Workspace"])
│
│ A data resource "fastly_ngwaf_workspaces" "workspaces" has not been declared in the root module.
Could you please update reference to data source from data.fastly_ngwaf_workspaces.workspaces to data.fastly_ngwaf_workspaces. ngwaf_workspaces (that how did you declare it on the 1st line)?
Thank you.
Hello team,
I noticed mistake in https://registry.terraform.io/providers/fastly/fastly/latest/docs/data-sources/ngwaf_workspaces#example-usage.
Terraform returns error message:
Could you please update reference to data source from
data.fastly_ngwaf_workspaces.workspacestodata.fastly_ngwaf_workspaces. ngwaf_workspaces(that how did you declare it on the 1st line)?Thank you.