Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datasource resource provided in documentation does not work. #103

Open
AntonSynchrofazatron opened this issue Aug 8, 2024 · 4 comments
Open

Comments

@AntonSynchrofazatron
Copy link

Trying to use #https://registry.terraform.io/providers/logicmonitor/logicmonitor/latest/docs/resources/datasource#collector_attribute
as an example of datasource results in error. Please update documentation / resource code.
Error in vscode
Required attribute "collector_attribute" not specified: An attribute named "collector_attribute" is required hereTe

@lm-madhvi
Copy link
Contributor

Hi @AntonSynchrofazatron ,
Can you please recheck the TF plan , as collector attribute needs to be specified in the TF configuration.
Please check the example usage: https://registry.terraform.io/providers/logicmonitor/logicmonitor/latest/docs/resources/datasource#collector_attribute

@AntonSynchrofazatron
Copy link
Author

hello @lm-madhvi i mean the provided resource example is misleading and throughs an error immediately when added to a code.
eg
image

@AntonSynchrofazatron
Copy link
Author

it allows to run plan with
collector_attribute = [{ name = "jdbc" }]

but still validation of the resource looks bad...
image

@lm-madhvi
Copy link
Contributor

Hi @AntonSynchrofazatron ,
We are working on the fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants