Skip to content

Mistake in documentation for data source fastly_ngwaf_workspaces #1174

@omelnyk1

Description

@omelnyk1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions