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

Warning/Deprecation Notice at Module Layer #34422

Closed
frugecn opened this issue Dec 15, 2023 · 3 comments
Closed

Warning/Deprecation Notice at Module Layer #34422

frugecn opened this issue Dec 15, 2023 · 3 comments
Labels
duplicate issue closed because another issue already tracks this problem enhancement

Comments

@frugecn
Copy link

frugecn commented Dec 15, 2023

Terraform Version

1+

Use Cases

Organizations that create modules for teams use for terraform code-sets need some way to indicate deprecation of input variables/output fields of module/modules themselves for their end-users on Init, TF Validate, Plan, Apply similar to existing functionality in the SDKv2 for plug-in development.

Plugin Development - SDKv2 Deprecations, Removals, and Renames Best Practices | Terraform | HashiCorp Developer]

Attempted Solutions

Looking at creating an out of process executable to scan plans to run after execution of one of the plans. If the pre and post conditions in lifecycle have pass or fail with the warning on only the fail condition. Adding warning to the documentation.

Proposal

a couple of ideas:
lifecycle pre/post condition with a warning option
Warning process on variables similar to the exception process
a message sent back from the registry when caching the code from the repo similar to provider deprecation warnings or TF new version available warnings

References

No response

@frugecn frugecn added enhancement new new issue not yet triaged labels Dec 15, 2023
@jbardin
Copy link
Member

jbardin commented Dec 15, 2023

Duplicate of #5949

@jbardin jbardin marked this as a duplicate of #5949 Dec 15, 2023
@jbardin jbardin closed this as completed Dec 15, 2023
@jbardin
Copy link
Member

jbardin commented Dec 15, 2023

Also, variable deprecation #32594, and output deprecation #18381

@crw crw added duplicate issue closed because another issue already tracks this problem and removed new new issue not yet triaged labels Dec 15, 2023
Copy link
Contributor

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate issue closed because another issue already tracks this problem enhancement
Projects
None yet
Development

No branches or pull requests

3 participants