strongdm / terraform-provider-sdm

strongDM Terraform Provider
Mozilla Public License 2.0
15 stars 8 forks source link

Example in Data Source documentation for `sdm_resource` is incorrect #32

Closed alconen closed 2 years ago

alconen commented 2 years ago

The Data Source documentation for sdm_resource from https://registry.terraform.io/providers/strongdm/sdm/latest/docs/data-sources/resource#example-usage lists this as example usage:

data "sdm_resource" "mysql_datasources" {
    name = "us-west*"
    type = "mysql"
    tags = {
        region = "us-west"
        env = "dev"
    }    
}

Running this against a strongDM organization formatted as the above with the latest version of the provider produces this error:

% terraform plan
╷
│ Error: Unsupported argument
│
│   on main.tf line 14, in data "sdm_resource" "datasources":
│   14:     tags = {
│
│ An argument named "tags" is not expected here.
╵

This isn't documented as a valid Argument on the same page, so I think this is just a case of removing the tags line from the example.

alconen commented 2 years ago

Closing as migrated.