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

Validation issue in apstra_template_collapsed data source #831

Closed
chrismarget-j opened this issue Aug 28, 2024 · 1 comment
Closed

Validation issue in apstra_template_collapsed data source #831

chrismarget-j opened this issue Aug 28, 2024 · 1 comment

Comments

@chrismarget-j
Copy link
Collaborator

Report from a user delivered by email:

data "apstra_template_collapsed" "tf_bp_template" {
  name = var.bp_template
}
$ terraform validate
╷
│ Error: Missing required argument
│ 
│   on [r10_bp_creation_collapsed.tf](https://urldefense.com/v3/__http://r10_bp_creation_collapsed.tf__;!!NEt6yMaO-gk!Ft-FaOYwkmZqVoFgACPg0zTS9KSdugFoOkQxq2hsugdwSJ-HgYN1ctcGE4kFqf8GUGb1MkcG_GrgHMdHIA$) line 3, in data "apstra_template_collapsed" "tf_bp_template":
│    3: data "apstra_template_collapsed" "tf_bp_template" {
│ 
│ The argument "id" is required, but no definition was found.

Per the provider documentation, either name or id is needed, and the typical use cause is to use "name" to retrieve the template data.

@chrismarget-j
Copy link
Collaborator Author

Closed by #713

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

1 participant