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

fix: terraform probes incorrectly formed #792

Merged
merged 5 commits into from
May 29, 2024

Conversation

VikaCep
Copy link
Contributor

@VikaCep VikaCep commented May 23, 2024

Previously, the Import custom probes into Terraform section was displaying hardcoded data, not corresponding to the actual custom probes. This PR fixes that.

⚠ Note: the terraform commands include the Auth token of each custom probe, but, as this is sensitive data, we don't have that information at that point. I'm adding a placeholder in its place so that users can paste it.

image

I also fixed the Terraform provider docs link as it was not very noticeable.

image

Fixes #787

Ref: https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/synthetic_monitoring_probe

@VikaCep VikaCep self-assigned this May 23, 2024
The id can't be present in the custom probe resource configuration as otherwise terraform will fail
@VikaCep VikaCep marked this pull request as ready for review May 24, 2024 14:32
@VikaCep VikaCep requested a review from a team as a code owner May 24, 2024 14:32
Copy link
Contributor

@ckbedwell ckbedwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

I'm approving this as it looks good to go. Just a question if you want to leave the truncate props in or not. Will leave that decision to you 😃

@VikaCep VikaCep merged commit 8b08cf8 into main May 29, 2024
5 checks passed
@VikaCep VikaCep deleted the terraform-probes-incorrectly-formed branch May 29, 2024 13:56
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

Successfully merging this pull request may close these issues.

Probes terraform import is incorrectly formed
2 participants