-
Notifications
You must be signed in to change notification settings - Fork 50
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
External fails when -refresh=false #20
Comments
Hi @kitsunde, Since it is a data source, it is by design that it doesn't run when refresh is disabled. Although you certainly could use it to run something with side-effects, that is a misuse of the feature. Data sources are for reading data only. |
Hey @apparentlymart, could you please advice some alternative to using |
Hi @kitsunde 👋 Thank you for raising this. It appears Martin answered this awhile ago so I'm going to close this. @gnom7 while I cannot provide direct recommendations for your situation, hashicorp/terraform-provider-vault#122 appears to be the most analogous for the use case you mention. Typically it is expected that explicit resources and data sources should be available from a provider built to manage that infrastructure. Other providers will have domain expertise that is appropriate to the issue. This external provider could theoretically support the functionality of a run-once type of resource (see #5), however it may not be an appropriate solution with Terraform's design principles. If you have further configuration or troubleshooting questions, please also check out HashiCorp Discuss where there are far more folks watching these types of topics and able to answer. The issues in this repository are only monitored by a small subset of provider maintainers for bug reports and feature requests. |
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. |
Shouldn't external always run even with
-refresh=false
? Since it's calling something that has side effects? Or at least run the first time?Terraform Version
Terraform v0.11.7
Affected Resource(s)
Terraform Configuration Files
generate.sh:
Expected Behavior
It should work.
Actual Behavior
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan -refresh=false
The text was updated successfully, but these errors were encountered: