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.
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:Running this against a strongDM organization formatted as the above with the latest version of the provider produces this error:
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.