Commit Graph

1075 Commits (a5ef403dfd46121baadef1c69c7b9b83fccdcda5)

Author SHA1 Message Date
Martin Atkins 6f7bc4f5d7 command: use c.showDiagnostics for backend operation errors
9 years ago
Martin Atkins 5cd00a13ec command: use new diagnostics output for config errors
9 years ago
Martin Atkins ea81e75a4e command: utility for rendering tfdiag diagnostics
9 years ago
Martin Atkins fc20f419dd config and command: use errwrap to propagate config load errors
9 years ago
Martin Atkins 86343fa895 Remove test output file accidentally added in 52c97e9f
9 years ago
James Bardin 91442b7146 Merge pull request #15680 from brunomcustodio/etcdv3-backend
9 years ago
Martin Atkins 30e6f4e066 command/e2etest: test installation of plugins from cache
9 years ago
Martin Atkins 5c0670fdf4 command: allow callers to activate a plugin cache
9 years ago
Martin Atkins 73d1298572 command/e2etest: test the "running in automation" workflow
9 years ago
Martin Atkins cb6d4e5f20 command/e2etest: fix TestPrimarySeparatePlan test
9 years ago
Martin Atkins ece06c35b8 command: parameter autocomplete for "terraform workspace ..."
9 years ago
Martin Atkins 793da43a72 command: workspace name autocomplete helper
9 years ago
Martin Atkins e4f18c3f4d command: multi-argument autocomplete helper
9 years ago
Martin Atkins 2ed9aa6077 command: autocomplete data for "terraform init"
9 years ago
Martin Atkins 82fefbc599 command: add some common autocomplete predictors
9 years ago
Sunny 8928c5a60a command/state-rm: tell the user how many items were removed
9 years ago
Jack Bruno 3f2136d7ee cli: terraform import -ignore-missing-config
9 years ago
Jearvon Dharrie 5afe1d39d1 Add `/downloads` to the outdated version message
9 years ago
Martin Atkins 0fe43c8977 cli: allow disabling "next steps" message in terraform plan
9 years ago
Martin Atkins b95610c173 Merge #15387: terraform fmt -check option
9 years ago
Martin Atkins fe4cfd03b5 command/format: restore "(forces new resource)" caption
9 years ago
Bruno Miguel Custodio 52c97e9fc9
First steps towards an 'etcdv3' backend.
9 years ago
Martin Atkins 83414beb8f command: various adjustments to the diff presentation
9 years ago
Martin Atkins d4efc95191 command: show resource actions using resource addresses
9 years ago
Martin Atkins 3ea159297c command/format: improve consistency of plan results
9 years ago
Sunny 3a1582c1b9 command/validate: read terraform.tfvars file for variable values
9 years ago
Sunny 2d849f8650 command/init: check required_version
9 years ago
Martin Atkins c12d64f340 Use t.Helper() in our test helpers
9 years ago
Radek Simko 4e8ccb3127 Merge pull request #15828 from hashicorp/e2e-decoupling
9 years ago
Radek Simko aabab16069
command/init: Remove extra whitespace
9 years ago
Michael Handler 817d1c4869 Output duration in UiHook after successful operation completion.
9 years ago
James Bardin 18af7750d4 Merge pull request #14720 from sevagh/master
9 years ago
Radek Simko 9e7e4ff4fb
e2e: Decouple logic for running e2e tests
9 years ago
Radek Simko 28b33c9299
plugin: Display version + source when initializing plugins
9 years ago
Radek Simko 38cb98fb0c
Comply w/ latest changes in mitchellh/cli
9 years ago
James Bardin ea3e87b584 Merge pull request #15768 from hashicorp/jbardin/remote-import
9 years ago
James Bardin 5bcc1bae59 Merge pull request #15769 from hashicorp/jbardin/discovery-paths
9 years ago
James Bardin 2bb5007690 Merge pull request #15683 from hashicorp/jbardin/remote-state-lineage
9 years ago
James Bardin 37932c3cd6 make state_rm flag description match state_mv
9 years ago
James Bardin 4034f988df update import command docs
9 years ago
James Bardin 54998933f5 load Meta.PluginOverrides in dicovery
9 years ago
James Bardin fa20d43d80 test loading of Meta.PluginOverrides
9 years ago
James Bardin e3748901b4 Don't ForceLocal for the import backend
9 years ago
Sevag Hanssian 867760ed56 Add salt-masterless provisioner
9 years ago
James Bardin eadda50f02 Merge pull request #15652 from hashicorp/jbardin/state-command
9 years ago
James Bardin 55d18dcef2 update state rm amd mv docs
9 years ago
James Bardin 07b0101fb5 update workspace new test for inmem backend
9 years ago
James Bardin 16e8e405c7 create failing test cases for remote lineage issue
9 years ago
Martin Atkins 8a7a0a7459 command: terraform init -from-module=...
9 years ago
James Bardin 51547ad2ba add tests for state commands through a backend
9 years ago
James Bardin 5b4ae36cb0 don't print help for state loading errors
9 years ago
James Bardin 33ba6774e0 Make the state commands use the real command.Meta
9 years ago
James Bardin 45a9edb763 make state mv and rm work with remote states
9 years ago
Kyle McCullough ad896b65c9
command: add -check flag to fmt (#15304)
9 years ago
James Bardin 0bca383b6b Merge pull request #15528 from alrs/command-swallowed-errors
9 years ago
Lars Lehtonen 119996b815
Return immediately after newly-added error condition
9 years ago
James Bardin eb02467298 Merge pull request #15588 from hashicorp/jbardin/no-graph-config
9 years ago
James Bardin f10163ecc7 graph should not panic with no config
9 years ago
Martin Atkins 23f9c8785e command/e2etest: an initial test for the primary workflow
9 years ago
Martin Atkins 52df81ee49 command/e2etest: test that we can install provider plugins
9 years ago
Martin Atkins 0e0b0d125a command/e2etest: "terraform version" test
9 years ago
Martin Atkins fee61a44b4 command/e2etest: end-to-end testing harness
9 years ago
Lars Lehtonen 8501d83e6c
Fix swallowed errors in command package.
9 years ago
James Bardin 583cc350a9 fix minor races in workspace tests
9 years ago
James Bardin f7f1e8e406 Sort arguments in Meta.process
9 years ago
James Bardin 0fdcf2c01e properly cleanup and print correct error messages
9 years ago
Robert Liebowitz 4bf2269784 Add test case for autoloading tfvars
9 years ago
Robert Liebowitz e67ecb5ce2 Restructure Meta.process to logically group code
9 years ago
Robert Liebowitz 8d98fdecac Autoload only .auto.tfvars files
9 years ago
Robert Liebowitz 006744bfe0 Use all tfvars files in working directory
9 years ago
Martin Atkins 39c4d6ab1f Merge #15424: Improve robustness of state persistence handling
9 years ago
Martin Atkins fee1197cf9 command: terraform state rm to require at least one argument
9 years ago
James Bardin fb397060eb add some Serial checks to apply and refresh tests
9 years ago
James Bardin 054716c397 use testStateRead helper in apply tests
9 years ago
James Bardin 501cbeaffe testState shouldn't rely on mods from WriteState
9 years ago
Mike Helmick 9d7fce2f69 command: "terraform workspace show" to print current workspace name
9 years ago
Martin Atkins 4d53eaa6df state: more robust handling of state Serial
9 years ago
Radek Simko 14614a5423 command/validate: Add flag to check that all variables are specified (#13872)
9 years ago
Jake Champlin 9944ea6886
core: Skip provider checksum validation based on env var
9 years ago
James Bardin da1c45b566 Merge pull request #15412 from hashicorp/jbardin/windows-delete-workspace
9 years ago
James Bardin 1c78dfb286 Unlock state before workspace deletion
9 years ago
David Glasser 14af879fe0 command: also print plan for destroy
9 years ago
David Glasser 039d36bf91 command: add "apply -auto-approve=false" flag
9 years ago
James Bardin 22074f1029 Merge pull request #15408 from hashicorp/jbardin/import-plugin-dir
9 years ago
Patrick Aikens 7775ef809b Display correct to and from backends in copy message when migrating to new remote state (#15318)
9 years ago
James Bardin 85b9069eb7 test import with -plugin-dir
9 years ago
James Bardin 0cbd51c365 find -plugin-dir during import
9 years ago
Martin Atkins 3df164502a command: don't prompt for state migration if TF_INPUT is set
9 years ago
James Bardin 833cc9a6c5 Fix state mv/rm -backup documentation
9 years ago
James Bardin 6e7baaaeff don't load the backend when -state is provided
9 years ago
James Bardin 5f939b42fe test that `state mv -state` doesn't use Backend
9 years ago
James Bardin 4893fcc24f improve plugin error formatting
9 years ago
James Bardin 103ab20b00 add required and found versions to error output
9 years ago
James Bardin 7a955f990c make display plugin checksum error to user
9 years ago
Martin Atkins 0dc6d97a37 command/format: minor adjustments to plan rendering
9 years ago
Martin Atkins 40e2fbb8e9 command: init to allow plugin init without backend init
9 years ago
Martin Atkins 3dc7d618f7 command: avoid empty string constraints in plugin install errors
9 years ago
James Bardin c10f5caf05 Merge pull request #15345 from hashicorp/jbardin/plugin-sig
9 years ago
Martin Atkins 9c2fe3456b command: purge unused plugins as a side effect of plugin installation
9 years ago
Martin Atkins d48dcbb4a5 command: more-helpful error messages from plugin installation
9 years ago
James Bardin 0a47228065 add -verify-plugins flag to init
9 years ago
James Bardin 6728c48d8c fix whitespace around backend init success message
9 years ago
James Bardin da385c4268 Don't show plugin init message if there are none
9 years ago
James Bardin 2e57d284cb Merge pull request #15323 from hashicorp/jbardin/constraint-suggestion
9 years ago
James Bardin ec99b6910b remove "~> 0.0" constraint suggestions
9 years ago
James Bardin 270eedd4b8 always pass in the full plugin path to dicovery
9 years ago
James Bardin be2069ac81 add -plugin-dir option
9 years ago
James Bardin 000e860706 Add plugin dir scaffolding
9 years ago
James Bardin f723270e3e search the vendor directory for plugins
9 years ago
James Bardin 4f5e92e4c0 reverse init test to check for dataDir in PWD
9 years ago
James Bardin 55bf19e548 always write to dataDir in the current directory
9 years ago
Martin Atkins 6979a07754 command: init -upgrade for provider plugins
9 years ago
Martin Atkins f753974bb3 plugin/discovery: Installer interface, and provider implementation
9 years ago
Gavin Williams 5834333ea3 command: terraform get -upgrade
9 years ago
James Bardin be900e8085 Merge pull request #15258 from hashicorp/jbardin/remove-providers
9 years ago
James Bardin cbbbcea4b9 stop err scanner goroutines between tests
9 years ago
James Bardin 77a32f3df0 remove "core" distinction
9 years ago
James Bardin 7e7f53954d remove internal provider test from command pkg
9 years ago
James Bardin 81ac0ed204 re-generate plugin list
9 years ago
Radek Simko 4e85f552e7 Merge pull request #15246 from hashicorp/b-fix-cmd-provider-crash
9 years ago
James Bardin a30007b41d Merge pull request #15032 from hashicorp/jbardin/init
9 years ago
Radek Simko f5ff67c530
command/providers: Add regression test
9 years ago
Radek Simko ee30df3efd
command/providers: Enable processing of meta-parameters
9 years ago
Radek Simko 86fbcfac83
command/providers: Avoid crash when no configs found
9 years ago
Martin Atkins f7ce6a15f8 backend: Operation.Environment renamed to "Workspace"
9 years ago
Martin Atkins 418a8a8bc9 command + backend: rename various API objects to "Workspace" terminology
9 years ago
Martin Atkins 5f9f13ab8f command: show warnings from backend config validation
9 years ago
Martin Atkins 31d556894f command: shallow UI-focused rename of "environment" to "workspace"
9 years ago
David Glasser c25d848ffb core: allow overriding environment name via env var
9 years ago
James Bardin 2bfcdbbd08 change init args to remove source copy
9 years ago
James Bardin d1c50efb01 change providers.json to lock.json
9 years ago
James Bardin 08592c2602 update plugin name in command test
9 years ago
James Bardin a529b64cc8 better init error output
9 years ago
James Bardin fdbfc17fae missing constraints passed erroniously
9 years ago
Martin Atkins 766f8e5d64 command init: remove confusing uses of "environment" in the usage
9 years ago
Martin Atkins 3c429b3628 command init: show log output for each provider plugin downloaded
9 years ago
Martin Atkins 4571a16b15 command: remove Meta.forceProviderSHA256s
9 years ago
Martin Atkins 9aae06db97 command: update mockGetProvider.GetProvider for new interface
9 years ago
Martin Atkins 4ba20f9c1c command init: show suggested constraints for unconstrained providers
9 years ago
James Bardin e0f2235f66 update init command with new GetProvider signature
9 years ago
Martin Atkins 032f71f1ff command: produce provider lock file during "terraform init"
9 years ago
Martin Atkins 6ba6508ec9 command: pass the locked plugin hashes into ContextOpts
9 years ago
Martin Atkins 720670fae7 command: helper to manage the provider plugins lock file
9 years ago
Martin Atkins 7d0a98af46 command: provider resolver to also check SHA256 constraints when set
9 years ago
Martin Atkins e3401947a6 plugin/discovery: PluginRequirements can specify SHA256 digests
9 years ago
Martin Atkins 9a398a7793 command: require resource to be in config before import
9 years ago
Martin Atkins 7d8719150c command: validate import resource address early
9 years ago
Martin Atkins f6305fcc27 command: remove commented-out, misplaced tests
9 years ago
James Bardin 044ad5ef59 rename some Constraints methods per code review
9 years ago
James Bardin 2994c6ac5d add init getPlugin test
9 years ago
James Bardin 4c32cd432a make getProvider pluggable
9 years ago
James Bardin 66ebff90cd move some more plugin search path logic to command
9 years ago
James Bardin 2749946f5c basic plugin getter
9 years ago
James Bardin 7d2d951f27 Rename VersionSet to Constraints
9 years ago
James Bardin 718ede0636 have Meta.Backend use a Config rather than loading
9 years ago
Martin Atkins 3af0ecdf01 command: "terraform providers" command
9 years ago
Martin Atkins 4ab8973520 core: provide config to all import context tests
9 years ago
Martin Atkins c835ef8ff3 Update tests for the new ProviderResolver interface
9 years ago
Martin Atkins 7ca592ac06 core: use ResourceProviderResolver to resolve providers
9 years ago
Martin Atkins d6b6dbb5c6 command: correct provider name in the test fixture for push
9 years ago
Martin Atkins 9b4f15c261 plugin: move Client function into plugin, from plugin/discovery
9 years ago
Martin Atkins 8364383c35 Push plugin discovery down into command package
9 years ago
Jake Champlin 7894478c8c Merge pull request #14681 from svanharmelen/f-review
9 years ago
James Bardin dbe9599820 remove dead code
9 years ago
James Bardin b3795e2d29 remove old state hook code
9 years ago
Mat Schaffer 76d4abd12a Fix typo on state migration input error
9 years ago
Vladislav Rassokhin df4342bc3d Regenerate plugin list since provisioners were changed in previous commits
9 years ago
David Glasser 783908ee25 core: fix bad Sprintf in backend migration message (#14601)
9 years ago
Paul Stack 055c18e302 core/provider-split: Split out the Oracle OPC provider to new structure (#14362)
9 years ago
yanndegat 21d8125d5c provider/ovh: new provider (#12669)
9 years ago
Dmitrii Korotovskii ace0456d58 http provider and http request data source
9 years ago
James Bardin 947db2304a it's possible to get a nil diff in PreApply
9 years ago
Justin LaRose c6ad44de10 update error response when env does not exist (#14009)
9 years ago
stack72 898ac02854
Merge branch 'feature/gitlab_provider' of https://github.com/richardc/terraform into richardc-feature/gitlab_provider
9 years ago
Edward Betts be265479a9 correct spelling mistakes (#13979)
9 years ago
James Bardin 6ef7c83ec5 add data-loss warning to SIGINT handler in apply
9 years ago
Richard Clamp 631b0b865c provider/gitlab: add gitlab provider and `gitlab_project` resource
9 years ago
Martin Atkins b1763e262a Restore stringer-generated files back to new version
9 years ago
Jasmin Gacic 61499cfcf0 Provider Oneandone (#13633)
9 years ago
James Bardin dca89519ec Merge pull request #13825 from hashicorp/jbardin/reconfigure
9 years ago
James Bardin 0e0f0b64b9 add init -reconfigure test
9 years ago
James Bardin 7aa2ce8341 add -reconfigure option for init
9 years ago
Jake Champlin 35388cbc31 Merge pull request #13468 from hashicorp/f-oracle-compute
9 years ago
Quentin Machu bf8d932d23
provider/local: Implement a new local_file resource
9 years ago
James Bardin d1b4df42ed missing PersistState in env new
9 years ago
David Joos bbd2e6de35 Fix for minor typo
9 years ago
tombuildsstuff 3a084b061a Merge branch 'master' into f-oracle-merge
9 years ago
Jake Champlin 456d43e200
Merge remote-tracking branch 'origin/master' into f-oracle-compute
9 years ago
James Bardin fb4a365d12 noop migrate copy, add -lock and -input
9 years ago
James Bardin aad143b6d1 set stateLock to true when building meta flagSet
9 years ago
James Bardin d059939f88 Merge pull request #13262 from hashicorp/jbardin/lock-timeouts
9 years ago
Radek Simko fc72a20c66 command/hook_ui: Increase max length of state IDs (#13317)
9 years ago
Jake Champlin edc524df55
provider/opc: Update OPC Provider
9 years ago
James Bardin 3d604851c2 test -lock-timeout from cli
9 years ago
James Bardin 5eca913b14 add cli flags for -lock-timeout
9 years ago
James Bardin 305ef43aa6 provide contexts to clistate.Lock calls
9 years ago
James Bardin 3f0dcd1308 Have the clistate Lock use LockWithContext
9 years ago
James Bardin 75458a182d remove extra state.Locker assertions
9 years ago
James Bardin 8050eda52d don't delete local state on a local backend
9 years ago
James Bardin 50023e9a60 honor `input=false` in state migration
9 years ago
James Bardin 7d23e1ef20 add equivalent tests to meta_backend_test
9 years ago
James Bardin c891ab50b7 detect when backend.Hash needs update
9 years ago
James Bardin ff2d753062 add Rehash to terraform.BackendState
9 years ago
Martin Atkins 76dca009e0 Allow escaped interpolation-like sequences in variable defaults
9 years ago
Martin Atkins 21cd5595e2 Update stringer-generated files to new boilerplate
9 years ago
James Bardin f172b4a023 Merge pull request #13105 from hashicorp/jbardin/command-env
9 years ago
James Bardin 2cffa25235 Add test to verify that Validation isn't called
9 years ago
James Bardin 9d118325b3 Reject names that aren't url-safe
9 years ago
James Bardin 8027fe9e08 Don't Validate if we have an execution plan
9 years ago
James Bardin 54e536cfe0 add `-force-copy` option to init command
9 years ago
Mitchell Hashimoto d01886a644
command: remove legacy remote state on migration
9 years ago
Mitchell Hashimoto 23505cc2a8 Merge pull request #12818 from hashicorp/b-legacy
9 years ago
James Bardin 434e78158a Merge pull request #12812 from hashicorp/jbardin/hook-ui-race
9 years ago
Mitchell Hashimoto 4f59576231
command: fix awkward wording in message
9 years ago
James Bardin b9931c437d fix race in hook ui PreApply test
9 years ago
Mitchell Hashimoto 96e38041ab
command: use backendinit instead of initializing legacy directly
9 years ago
Mitchell Hashimoto c87f3dfdd5
command/init: add test for -backend-config k/v
9 years ago
Mitchell Hashimoto df8529719c
command/init: backend-config accepts key=value pairs
9 years ago
Mitchell Hashimoto e1f4eca93c
command: apply needs to look at the right field for backend state
9 years ago
Mitchell Hashimoto 25312c8985
command/push: update copy for remote state error
9 years ago
James Bardin 9bfa361e21 Merge pull request #12778 from hashicorp/jbardin/GH-12741
9 years ago
Mitchell Hashimoto 6921457601 Merge pull request #12777 from hashicorp/b-refresh-empty
9 years ago
James Bardin ea095eda87 change to default state after backend migration
9 years ago
Mitchell Hashimoto 2be1f55cbb
backend/local: allow refresh on empty/non-existent state
9 years ago
Mitchell Hashimoto 81639480fb
command: recompute config hash with ConfigFile set
9 years ago
Mitchell Hashimoto 87201ec854
command/push: test for push with new backends
9 years ago
Mitchell Hashimoto 8b208a597d
command/push: don't allow pushing with local backend
9 years ago
Radek Simko 4448e45678 Merge pull request #12372 from hashicorp/f-kubernetes
9 years ago
Mitchell Hashimoto f7964194eb
command: fix odd formatting that snuck in
9 years ago
Mitchell Hashimoto d475fc29a8
command: test that terraform meta information is passed through
9 years ago
Radek Simko f1db0fcf9b
kubernetes: Add provider + namespace resource
9 years ago
Radek Simko 4d6242dfe0 command: Add tests for UiHook (#12447)
9 years ago
Sean Chittenden 17fb98afa2 Circonus Provider (#12338)
9 years ago
James Bardin 200d5787ca Merge pull request #12433 from hashicorp/jbardin/extra-args
9 years ago
Clint 5d894e4ffd Fix up command and some go fmt issues (#12509)
9 years ago
Paul Stack b57e0bee2a provider/datadog: Update to datadog_monitor still used d.GetOk (#12497)
9 years ago
James Bardin e58a02405e missing args assignment after parsing flags
9 years ago
Mitchell Hashimoto 03493f7d46
command: validate backend config
9 years ago
Mitchell Hashimoto d1b930d5b5
command: remove unused test
9 years ago
Mitchell Hashimoto 0224a12a00
command: fix go vet
9 years ago
Mitchell Hashimoto 5086f9f568
command: remove log
9 years ago
Mitchell Hashimoto 866de2776e
command: trigger still applying cancellations from a channel
9 years ago
Radek Simko 17c9a403f2
WIP
9 years ago
Radek Simko 08283f077b
command: Fix crash caused by empty state
9 years ago
Radek Simko 2e2b8686dd command: Display state ID in PreApply+PostApply (#12261)
9 years ago
Mitchell Hashimoto 868230ee60
command/state-push: fix go vet
9 years ago
Mitchell Hashimoto ee985a606c Merge pull request #12350 from hashicorp/b-state-push-stdin
9 years ago
Mitchell Hashimoto f735205677 Merge pull request #12349 from hashicorp/b-ux
9 years ago
Mitchell Hashimoto a6b2eca613
command/state-push: support pushing from stdin
9 years ago
Mitchell Hashimoto 1f614bd4d6
command: color changes, trimming newlines
9 years ago