Skip to content

required_providers: support ephemeral resources #252

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

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

bendrucker
Copy link
Member

Adds support for the ephemeral resource block type when detecting providers.

https://developer.hashicorp.com/terraform/language/resources/ephemeral

This impacts;

  • required_providers
  • unused_required_providers

Also, I fixed a few test cases that were supposed to cover data blocks but use resource instead.

Closes #251

@bendrucker bendrucker enabled auto-merge (squash) March 28, 2025 20:15
@bendrucker bendrucker merged commit ed41301 into main Mar 28, 2025
3 checks passed
@bendrucker bendrucker deleted the required-providers-ephemeral branch March 28, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

terraform_unused_required_providers rule doesn't count with ephemeral resources
1 participant