terraform/command
Martin Atkins 49e2e00231 command: terraform providers mirror
This new command is intended to make it easy to create or update a mirror
directory containing suitable providers for the current configuration,
producing a layout that is appropriate both for a filesystem mirror or,
if copied into the document root of an HTTP server, a network mirror.

This initial version is not customizable aside from being able to select
multiple platforms to install packages for.

Future iterations of this could include commands to turn the JSON index
generation on and off, or to instruct it to produce the unpacked directory
layout instead of the packed directory layout as it currently does. Both
of those options would make the generated directory unsuitable to be
a network mirror, but it would still work as a filesystem mirror.

In the long run this will hopefully form part of a replacement workflow to
terraform-bundle as a way to put copies of providers somewhere so we don't
need to re-download them every time, but some other changes will be needed
outside of just this command before that'd be true, such as adding support
for network and/or filesystem mirrors in Terraform Enterprise.
2020-06-01 14:49:43 -07:00
..
cliconfig provider cache: log errors and validate dir exists (#24993) 2020-05-19 15:32:36 -04:00
clistate
e2etest command: terraform providers mirror 2020-06-01 14:49:43 -07:00
format backend/local: treat output changes as side-effects to be applied 2020-05-29 07:36:40 -07:00
jsonconfig command/jsonconfig: Use correct provider address to access schema 2020-04-06 09:24:23 -07:00
jsonplan command/jsonconfig: Use correct provider address to access schema 2020-04-06 09:24:23 -07:00
jsonprovider Mildwonkey/command tests (#24535) 2020-04-06 09:24:23 -07:00
jsonstate remove a few traces of states.EachMode 2020-04-30 09:22:15 -04:00
testdata command/init: Better diagnostics for provider 404s 2020-05-28 09:24:32 -04:00
webbrowser
012_config_upgrade.go command: Fix 0.12upgrade stub 2020-06-01 16:12:30 -04:00
012_config_upgrade_test.go command: remove 0.12upgrade (#24403) 2020-03-19 08:01:16 -04:00
013_config_upgrade.go getproviders: add a registry-specific error and modify output when a 2020-05-20 11:04:11 -04:00
013_config_upgrade_test.go command/init: Better diagnostics for provider 404s 2020-05-28 09:24:32 -04:00
apply.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
apply_destroy_test.go command: apply and most of import tests passing 2020-04-06 09:24:23 -07:00
apply_test.go command: apply and most of import tests passing 2020-04-06 09:24:23 -07:00
autocomplete.go
autocomplete_test.go
cli_ui.go
cli_ui_test.go
command.go
command_test.go command/init: Better diagnostics for provider 404s 2020-05-28 09:24:32 -04:00
console.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
console_interactive.go
console_interactive_solaris.go
console_test.go Support reading module outputs in terraform console (#24808) 2020-04-30 09:21:42 -04:00
debug_command.go
flag_kv.go
flag_kv_test.go
fmt.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
fmt_test.go command/fmt: Include source snippets in errors 2020-03-26 14:00:26 -04:00
get.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
get_test.go
graph.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
graph_test.go Mildwonkey/command tests (#24535) 2020-04-06 09:24:23 -07:00
hook_module_install.go
hook_ui.go command: Add UI hooks for read actions 2020-05-21 16:02:18 -04:00
hook_ui_test.go
import.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
import_test.go command/import: fix TestImport_initializationErrorShouldUnlock 2020-04-06 09:24:23 -07:00
init.go command/init: Better diagnostics for provider 404s 2020-05-28 09:24:32 -04:00
init_test.go command/init: Better diagnostics for provider 404s 2020-05-28 09:24:32 -04:00
internal_plugin.go
internal_plugin_list.go
internal_plugin_test.go command: Make the tests compile again 2020-04-06 09:24:23 -07:00
login.go command: Fix OAuth2 PKCE arguments 2020-05-05 09:58:48 -07:00
login_test.go
logout.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
logout_test.go
meta.go command: Unmanaged providers 2020-05-26 17:48:57 -07:00
meta_backend.go
meta_backend_migrate.go
meta_backend_test.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
meta_config.go
meta_new.go
meta_providers.go command: Unmanaged providers 2020-05-26 17:48:57 -07:00
meta_test.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
meta_vars.go
output.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
output_test.go
plan.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
plan_test.go terraform: return `initialization required` error when provider schemas not found (#24715) 2020-04-21 16:29:27 -04:00
plugins.go Remove terraform.ResourceProvider, use providercache.Installer instead 2020-04-06 09:24:23 -07:00
plugins_lock.go
plugins_lock_test.go
plugins_test.go command: Make the tests compile again 2020-04-06 09:24:23 -07:00
providers.go command/providers: refactor with new provider types and functions 2020-04-10 15:08:10 -04:00
providers_mirror.go command: terraform providers mirror 2020-06-01 14:49:43 -07:00
providers_schema.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
providers_schema_test.go command: Make the tests compile again 2020-04-06 09:24:23 -07:00
providers_test.go command/providers: refactor with new provider types and functions 2020-04-10 15:08:10 -04:00
push.go
refresh.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
refresh_test.go remove unused DependsOn usage in state 2020-05-14 15:46:08 -04:00
show.go backend/local: treat output changes as side-effects to be applied 2020-05-29 07:36:40 -07:00
show_test.go remove unused DependsOn usage in state 2020-05-14 15:46:08 -04:00
state_command.go
state_list.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
state_list_test.go
state_meta.go command: Add state replace-provider subcommand 2020-04-02 08:15:52 -04:00
state_mv.go fix state mv to work without EachMode 2020-04-30 09:22:15 -04:00
state_mv_test.go fix state mv to work without EachMode 2020-04-30 09:22:15 -04:00
state_pull.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
state_pull_test.go
state_push.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
state_push_test.go
state_replace_provider.go website: Add docs for state replace-provider 2020-04-23 11:41:57 -04:00
state_replace_provider_test.go command: Add state replace-provider subcommand 2020-04-02 08:15:52 -04:00
state_rm.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
state_rm_test.go finish provider ModuleInstance replacement 2020-03-11 14:19:52 -04:00
state_show.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
state_show_test.go Mildwonkey/command tests (#24535) 2020-04-06 09:24:23 -07:00
state_test.go
taint.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
taint_test.go finish provider ModuleInstance replacement 2020-03-11 14:19:52 -04:00
ui_input.go
ui_input_test.go
unlock.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
unlock_test.go
untaint.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
untaint_test.go finish provider ModuleInstance replacement 2020-03-11 14:19:52 -04:00
validate.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
validate_test.go
version.go Remove terraform.ResourceProvider, use providercache.Installer instead 2020-04-06 09:24:23 -07:00
version_test.go
workspace_command.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
workspace_command_test.go finish provider ModuleInstance replacement 2020-03-11 14:19:52 -04:00
workspace_delete.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
workspace_list.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
workspace_new.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
workspace_select.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00
workspace_show.go command: Simplify Meta.process helper method 2020-04-01 15:01:08 -04:00