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

2 queries #480

Open
ChaturvediSwati opened this issue Nov 21, 2023 · 3 comments
Open

2 queries #480

ChaturvediSwati opened this issue Nov 21, 2023 · 3 comments
Labels
question Further information is requested

Comments

@ChaturvediSwati
Copy link

Is there a way to specify the installed providers, so that each time it does not tries to download it ? And also is there a way to run
below command in verbose mode.

aztfexport resource-group TestRg

@magodo magodo added the question Further information is requested label Nov 22, 2023
@magodo
Copy link
Collaborator

magodo commented Nov 22, 2023

Hi @ChaturvediSwati,

Ans 1: You can setup the plugin_cache_dir so that terraform will only download the provider once. There is also a hidden option --tfclient-plugin-path which can be used to specify the provider manually, but it only works when combined with --hcl-only.

Ans 2: You can use --log-path=<file to record the log> and --log-level=TRACE

@ChaturvediSwati
Copy link
Author

Thanks for answering, could you please share any snippet or any document if that's available ? Here, as I am new to this, and still learning

@magodo
Copy link
Collaborator

magodo commented Nov 23, 2023

Everthing you needed is documented here: https://developer.hashicorp.com/terraform/cli/config/config-file#plugin_cache_dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants