Commit Graph

433 Commits (7bee77bdd3dc67de0973e1c19bd5a1685dc805c0)

Author SHA1 Message Date
Megan Bang 00cc1ea26d refactor getSchemas
4 years ago
Martin Atkins 71dec301a2 command/jsonchecks: Mark check result objects as experimental
4 years ago
Martin Atkins a8c255c779 command/jsonstate: Include check results in JSON state report
4 years ago
Martin Atkins 0e4e9f7706 addrs: Be explicit about checkable object address kinds
4 years ago
Martin Atkins fe7e6f970e command/jsonplan: Include new-style check results in JSON plan output
4 years ago
Martin Atkins 9e4861adbb states: Two-level representation of check results
4 years ago
Martin Atkins 3785619f93 core: Use the new checks package for condition tracking
4 years ago
Megan Bang d5decc2407 update flow of schema checking
4 years ago
Megan Bang 12e3560d21 check for cloud integration mode
4 years ago
Megan Bang b8f2f81cd6 update to warn if schemas aren't available
4 years ago
Megan Bang 4fab46749a update persist state
4 years ago
Martin Atkins 783a07d9e8 build: Use Go 1.19
4 years ago
James Bardin 553b8c6de5 expand module subdir globs
4 years ago
Alisdair McDiarmid 27966044ba
Merge pull request #28191 from zimbatm/terraform-fmt-manyargs
4 years ago
kmoe 621af43c04
fix missing output for applyable refresh plans (#31469)
4 years ago
zimbatm 7a9ccc03b2
command/fmt: support formatting multiple files
4 years ago
sebhcp 1ad649c446 goimports on providers.go only
4 years ago
sebhcp e029e7b699 revert "run goimports"
4 years ago
sebhcp 301174a3df run goimports
4 years ago
sebhcp 4d799ab30f normalize [dir] to [DIR]
4 years ago
Brandon Croft c33c8b013f
fix: have `terraform output` adhere to authorization w/ cloud
4 years ago
Martin Atkins 72dd14ca5c core: Do everything except the actual action for plans.NoOp
4 years ago
Brandon Croft 01d510f3cb
test(cloud): ensure state version is created when saving state
4 years ago
Anna Winkler d72911a640 Save detailed type outputs to JSONStateOutputs
4 years ago
Liam Cervante 83e84e5477
terraform init: add warning and guidance when lock file is incomplete (#31399)
4 years ago
Liam Cervante 224728879d
Ignore existing package hashes for `providers lock` command (#31389)
4 years ago
kmoe 7b4a5513a9
command: fix panic on show when state file is invalid or unavailable (#31444)
4 years ago
Jeff Bonhag f30738d965
Add golden reference test for JSON plan (#31362)
4 years ago
Brian Sidebotham a6aa75931b Update internal/command/fmt.go
4 years ago
Brian Sidebotham 7dd199cbd0 Fixes #30072 - Update documentation to show that the old DIR option can target a single file instead
4 years ago
Radek Simko 7feef1c4aa
Use hashicorp/terraform-registry-address as a decoupled library (#28338)
4 years ago
James Bardin fd742cd544 add e2e test with provider schema capabilities
4 years ago
James Bardin 96c720517f fixup broken test fixtures
4 years ago
Liam Cervante acb79a7545
Standardise how blank lines are added to plan for unchanged blocks (#31330)
4 years ago
James Bardin 953c448f9a add simple error indicating backend removal
4 years ago
Cory Twitty fa319494d8 readd missing extended args for workspace command
4 years ago
Cory Twitty 598e341712 Terraform workspace returns nonzero exit code when given an invalid arg
4 years ago
Martin Atkins 90ea7b0bc5 tfdiags: Treat unknown-related or sensitive-related messages differently
4 years ago
Martin Atkins 31aee9650e command/format: Include function call information in diagnostics
4 years ago
James Bardin 77e6b622f8
Merge pull request #31283 from hashicorp/jbardin/plan-import
4 years ago
James Bardin 4981942191 remove -allow-missing-config from import
4 years ago
James Bardin 03fc2b09df remove errant fmt.Println
4 years ago
Martin Atkins fda0579537 Experiments supported only in alpha/dev builds
4 years ago
Alisdair McDiarmid c7bc82bd87
Merge pull request #31235 from hashicorp/alisdair/json-plan-unknown-outputs
4 years ago
Alisdair McDiarmid 9497b2cd6f json-output: Fix unknowns for tuples and sets
4 years ago
Alisdair McDiarmid 48d64eabb2 json-output: Extended detail for unknown outputs
4 years ago
James Bardin 47f9850f02 add XTerraformGetLimit to prevent redirect loops
4 years ago
kmoe 54b837416c
command: mention plan options in refresh help text (#30892)
4 years ago
Alisdair McDiarmid 06f6a901ea
Merge pull request #30985 from hashicorp/alisdair/var-flag-spaces-error
4 years ago
Martin Atkins 096f0dc0da build: Write the detected version number into the generated executable
4 years ago
Craig Wright be7f46a1ad
Merge pull request #29354 from srdecny/main
4 years ago
Martin Atkins 4cffff24b1 core: Report reason for deferring data read until apply
4 years ago
Alisdair McDiarmid 91d75baba1 cli: Improved error for invalid -var "foo = bar"
4 years ago
Alisdair McDiarmid 12c8f9498c json-output: Add output type to JSON format
4 years ago
James Bardin 7da52d94f2
Merge pull request #30900 from hashicorp/jbardin/replace-triggered-by
4 years ago
James Bardin c52e3ed37b test fixture race
4 years ago
James Bardin 3a0a019521 round-trip replace triggers
4 years ago
James Bardin 868052c9e3 set replace_trigered_by reason in diff output
4 years ago
Brandon Croft 1943af51a2
fix(creds): allow periods in TF_TOKEN_... credentials vars
4 years ago
Brandon Croft f04202d222
Update credentials_test.go
4 years ago
Brandon Croft fda05f3d44
feat(credentials): allow hyphens to be encoded as __ in variables
4 years ago
Brandon Croft 307326fa3a
allow remote service creds to be configured using env
4 years ago
Alisdair McDiarmid fadcaaaad2 cli: Fix double-quoted map keys in diff UI
4 years ago
Alisdair McDiarmid d23f0998fb cli: Fix plan diff for sensitive nested attributes
4 years ago
Eng Zer Jun fedd315275
test: use `T.TempDir` to create temporary test directory (#30803)
4 years ago
Alisdair McDiarmid bb35f02c95 Conclude preconditions/postconditions experiment
4 years ago
Alisdair McDiarmid c5d10bdef1 core: Store condition block results in plan
4 years ago
Martin Atkins 49d7c879ac Fix problems caught by staticcheck v0.3.0
4 years ago
kmoe 5907a86301
command/format: Correctly quote diff object keys (#30766)
4 years ago
James Bardin 0bd59238d6
Merge pull request #30765 from hashicorp/jbardin/contributing-attributes
4 years ago
UKEME BASSEY 1c9929a378
Merge pull request #30773 from hashicorp/uk1288/fix-for-cloud-integration-panic
4 years ago
gabriel376 f5a8608989
cli: Make state commands check required version (#30511)
4 years ago
uk1288 9093b487fd fix for cloud integration panic
4 years ago
James Bardin 09dde8d5ed improve the contributing attributes filter
4 years ago
Matthias Baur 971c899c12
Clarify multiple times usage (#30724)
4 years ago
Markus Bösling 275ff5b223
double word removed (#30679)
4 years ago
Alisdair McDiarmid b386f76b65
Merge pull request #30685 from hashicorp/alisdair/fix-30641
4 years ago
James Bardin 8c5e11d41a add relevant_attributes to the json plan format
4 years ago
James Bardin f0cd8be66f add whole resource references
4 years ago
James Bardin e2b74247f2 track contributing instances
4 years ago
James Bardin 25f4c0d3dd filter attribute refresh changes from plan UI
4 years ago
James Bardin 0e7cec83db decode change before creating diff
4 years ago
James Bardin c02e8bc5b3 change plan to store individual relevant attrs
4 years ago
Alisdair McDiarmid ad9c89fc19 cli: Fix missing identifying attributes in diff
4 years ago
James Bardin f1e8aed48d output drift footer in the right place
4 years ago
James Bardin c5c7045a89 filter out non-relevant drift changes
4 years ago
James Bardin a151aaef05 only show drift when there are changes
4 years ago
Alisdair McDiarmid 70db495d00
Merge pull request #30525 from nozaq/provider-config-default
4 years ago
Alisdair McDiarmid 3e4d6b252f jsonplan: Improve performance for deep objects
4 years ago
nozaq 3c32f7a56c
jsonconfig: add implicitly created provider configs
4 years ago
nozaq 0ce040405c
jsonconfig: fix provider mappings with same names
4 years ago
nozaq 7f4019e1f6
jsonconfig: fix keys for default providers
4 years ago
Pedro Belém aed7162e9a
cli: Fix state mv exit code for missing resource (#29839)
4 years ago
Alisdair McDiarmid fe8183c4af json: Increment JSON plan format version
4 years ago
Alisdair McDiarmid ddc81a204f json: Disregard format version in tests
4 years ago
Alisdair McDiarmid f5b90f84a8 jsonconfig: Improve provider configuration output
4 years ago
Alisdair McDiarmid 5a9bc76d1a
Merge pull request #30316 from superkooks/main
4 years ago
Krista LaFentres (she/her) 6dcf00aefc
Merge pull request #30344 from hashicorp/lafentres/refactor-show-command
4 years ago
Krista LaFentres fea8f6cfa2 cli: Migrate show command to use command arguments and views
4 years ago
Krista LaFentres 8d1bced812 cli: Refactor show command to remove dependence on local run and only load the backend when we need it
4 years ago
Martin Atkins 36c4d4c241 core and backend: remove redundant handling of default variable values
4 years ago
SuperKooks 5171c89e1e Fix autocomplete for workspace subcommands
4 years ago
Martin Atkins b802db75d7 build: Build and run e2etest as part of the release build pipeline
4 years ago
Alisdair McDiarmid 535da4ebc7
Merge pull request #30205 from hashicorp/alisdair/fix-show-plan-against-non-default-state
4 years ago
Martin Atkins 23395a1022 providercache: Discard lock entries for unused providers
4 years ago
Alisdair McDiarmid 768741c0f7 command/show: Disable plan state lineage checks
4 years ago
Chris Arcand 8b8fe2771f
Merge pull request #30142 from hashicorp/chrisarcand/remote-backend-no-workspaces-regression
4 years ago
Chris Arcand 98978b3853 command/meta_backend: Allow the remote backend to have no workspaces [again]
4 years ago
Martin Atkins 096cddb4b7 command/format: Limitation of plans.ResourceInstanceDeleteBecauseNoModule
4 years ago
Chris Arcand f4f5b7c968
Merge pull request #30059 from hashicorp/barrettclark/explicit-local-empty-migrate-messaging
4 years ago
Barrett Clark c706c8f92b Do not ask to migrate empty default workspace
4 years ago
Barrett Clark e08a02e7bf Fixes Issue #29959, Apply w/o init error message
4 years ago
Luces Huayhuaca d72a413ef8
command/meta_backend: Prompt to select workspace before saving backend config (#29945)
4 years ago
Chris Arcand b5af7b6c92
Merge pull request #29987 from hashicorp/chrisarcand/backend-flag-with-tfc
4 years ago
Barrett Clark a6b56ad76f
Merge pull request #29997 from hashicorp/barrettclark/cloud-input-false
4 years ago
Barrett Clark 419676cb69 Cloud integration requires input for migrations
4 years ago
Luces Huayhuaca f63b6198ca
Create a function for logic that assigns value to initReason var after changing backend configuration (#29967)
4 years ago
Alisdair McDiarmid a8b9d086b2 cli: Fix nested single and map diff rendering
4 years ago
Chris Arcand a0c7c1dc8d command/init: Adjust init help output
4 years ago
Chris Arcand 33d7c1e6d6 command/init: Add -cloud alias (of -backend)
4 years ago
Alisdair McDiarmid b562c4fb84 cli: Fix nested set diff rendering indentation
4 years ago
Alisdair McDiarmid 2d0349d9a4 cli: Fix diff for nested set unchanged elements
4 years ago
Martin Atkins 7d6d31eff8 command/init: Skip redundant state migration prompt in Cloud mode
4 years ago
Martin Atkins bac59d2480 command/init: Be explicit that some options are not relevant for Cloud
4 years ago
Barrett Clark a146a2746e Add clarifying commend and e2e test
4 years ago
Barrett Clark a9eb62d692 Cloud: Migrate empty default workspace prompt
4 years ago
Chris Arcand bf76cc98ef command: Suggestions on migration copy from user feedback
4 years ago
kmoe 64635edfb9
Merge pull request #29885 from hashicorp/kmoe/more-init-interrupts
5 years ago
Katy Moe 6da61bf07b
revert change to installModules diag handling
5 years ago
kmoe 40ec62c139
command: make module installation interruptible
5 years ago
Krista LaFentres c44c589f0a Error if backup or backup-out options are used without the state option on non-local backends for the state mv command
5 years ago
Chris Arcand 779c958fbf cloud: Add streamlined 'remote' backend state migration path
5 years ago
Chris Arcand 6f25ad3e17 cloud: Display the newly renamed workspaces after a migration
5 years ago
Chris Arcand c3bf5d4512 cloud: Automatically select renamed current workspace
5 years ago
Chris Arcand f80b2177c8 cloud: Tweak multi-to-multi migration UX
5 years ago
Chris Arcand f04ea2bd3d
Merge pull request #29860 from hashicorp/fix-init-after-error-take-two
5 years ago
Chris Arcand 7c0c2e952f command: Don't always update backend hash when fetching the saved backend
5 years ago
Łukasz Sierant 19cce931a8 Test case for changing backend hash during aborted state migration
5 years ago
Billy Keyes 52ca30273f
command/format: improve list nested attribute rendering (#29827)
5 years ago
Nick Fagerlund 02e62c9851
Cloud: Init without erroring when no workspaces match the `tags` (#29835)
5 years ago
Martin Atkins 94cbc8fb5d experiments: config_driven_move has concluded
5 years ago
Chris Arcand 511afcd43a command: Adjust skipping of resource counts for any remote implementation
5 years ago
James Bardin 81e709d185
Merge pull request #29825 from hashicorp/jbardin/no-panicwrap
5 years ago
Martin Atkins f266d1ee82
"Add cloud integration option"
5 years ago
Chris Arcand 6dc1fed6d5 Clarify legacy Ui comments
5 years ago
Chris Arcand 14260a5b4c Adjust default workspace naming prompt
5 years ago
Omar Ismail fc5863844c Cloud migration: ignore backend version check when empty worksapces
5 years ago
Barrett Clark f5366468b4 Cloud Backend reference migrating away from TFC
5 years ago
Chris Arcand 2c0294c7e3 Tweak configuration copy for TFC
5 years ago
Omar Ismail 1ff7827416 Multi-state migration prompt fix
5 years ago
Barrett Clark cc6de251d8 Update init reconfigure error message
5 years ago
Barrett Clark e16c53b561 Simplify/Consolidate the cloud conditionals
5 years ago
Barrett Clark ab304d831f Found another path to backend init error
5 years ago
Barrett Clark d29532cfeb tfc apply before init
5 years ago
Barrett Clark e49f271eb5 Update copy for terraform init with cloud block
5 years ago
Chris Arcand 09d5b70b7a command/meta_backend_migrate:Tweak multi-to-single To TFC copy
5 years ago
Omar Ismail dfb4609be2 Backend State Migration from cloud to cloud.
5 years ago
Barrett Clark 93bfcff61a More Terraform Cloud UX changes
5 years ago
Barrett Clark 261a2b49d3 UX for terraform init that copies state to TFC
5 years ago
Barrett Clark 0cd9490838 PR Feedback: cleanup variable setter
5 years ago
Chris Arcand f8256f6634 Update ux for "terraform init [-reconfigure]"
5 years ago
Omar Ismail dc76bbee73 Backend State Migration: Add remote backend test
5 years ago
Omar Ismail 3fedd6898c Backend State Migration to `cloud`: Multiple Workspaces
5 years ago
Barrett Clark edbc84420c Run apply -refresh-state instead of refresh
5 years ago
Omar Ismail 55fc590904 Teraform Cloud Backend State Migration
5 years ago
Chris Arcand fccc873a3d Remove ability to declare a 'cloud' backend
5 years ago
Chris Arcand a4c24e3147 Add cloud {} configuration block for Terraform Cloud
5 years ago
James Bardin 9b62dd6901
Merge pull request #29648 from hashicorp/jbardin/tfproto6.1
5 years ago
James Bardin d03a037567 insert panic handlers
5 years ago
James Bardin 42742c173d remove wrapped streams and readline
5 years ago
James Bardin 622c4df14c remove the use of panicwrap
5 years ago
Alisdair McDiarmid ded4f1a0fd
Merge pull request #29805 from hashicorp/alisdair/fix-init-workspace-select-input-false
5 years ago
Alisdair McDiarmid ecb98e1c43 command/init: Fail if -input=false but required
5 years ago
Alisdair McDiarmid 6d0521e6be
Merge pull request #29803 from hashicorp/alisdair/init-backend-provider-errors
5 years ago
Alisdair McDiarmid 22923f9873
Merge pull request #29793 from hashicorp/alisdair/fix-remote-backend-migrate-version-check
5 years ago
Alisdair McDiarmid d42d83572b cli: Fix backend init failure with deleted cache
5 years ago
Alisdair McDiarmid 1729431520 backend/remote: Fix version check when migrating
5 years ago
Alisdair McDiarmid 39de3ebec7 cli: Fix init failure with deleted cache
5 years ago
Alisdair McDiarmid 1190b95fe2 command/e2etest: Ensure init fixes missing cache
5 years ago
Martin Atkins 5b266dd5ca command: Remove the experimental "terraform add" command
5 years ago
Alisdair McDiarmid cdd5ee6fb3
Merge pull request #29773 from hashicorp/alisdair/init-lock-flags
5 years ago
Alisdair McDiarmid c587384dff cli: Restore -lock and -lock-timeout init flags
5 years ago
Alisdair McDiarmid fb58f9e6d2 cli: Fix flaky init cancel test
5 years ago
James Bardin ef3c98466d
Merge pull request #29755 from hashicorp/jbardin/first-plan-lineage
5 years ago
James Bardin 9c80574417 test planfile may need to have a specific lineage
5 years ago
Martin Atkins bee7403f3e command/workspace_delete: Allow deleting a workspace with empty husks
5 years ago
Alisdair McDiarmid b9f3dab035 json-output: Release format version 1.0
5 years ago
Omar Ismail bea7e3ebce
Backend State Migration: change variable names from one/two to source/destination (#29699)
5 years ago
Martin Atkins 01b22f4b76 command/e2etest: TestProviderTampering
5 years ago
Martin Atkins d09510a8fb command: Early error message for missing cache entries of locked providers
5 years ago
Martin Atkins df578afd7e backend/local: Check dependency lock consistency before any operations
5 years ago
Martin Atkins 6a98e4720c plans/planfile: Create takes most arguments via a struct type
5 years ago
Martin Atkins 8d193ad268 core: Simplify and centralize plugin availability checks
5 years ago
Zach Whaley c9a5fdb366
cliconfig: Fix error message about invalid credentials helper type
5 years ago
James Bardin ab0322e406 remove debugging println
5 years ago
James Bardin c2e0d265cf LoadModule now always returns the module
5 years ago
James Bardin a53faf43f6 return partial config from LoadConfig with errors
5 years ago
James Bardin 625e768678 make sure required_version is checked before diags
5 years ago
Alisdair McDiarmid b699391d04 json-output: Add change reasons to explain deletes
5 years ago
James Bardin 9847eaa9cf remove usage of MinItems/MaxItems
5 years ago