Commit Graph

494 Commits (e37526b4e5d09da129e51474a8ce722ca767fbf8)

Author SHA1 Message Date
Liam Cervante f6d625103c
Structured plan renderer: refactor replace paths logic (#32489)
3 years ago
Liam Cervante 38afb41787
Structured plan renderer: Introduce support for multiline and JSON strings (#32488)
3 years ago
Liam Cervante 8330b7295b
Structured plan renderer: Add support for map blocks and sensitive blocks. (#32491)
3 years ago
Liam Cervante 21bb677db7
Structured Plan Renderer: Naming and package structure refactor (#32486)
3 years ago
Liam Cervante a086453783
Structured Plan Renderer: Refactor Primitive and Sensitive value processing (#32476)
3 years ago
Liam Cervante 46ab53d651
Structured Plan Renderer: Escape object and block keys that don't match HCL syntax (#32483)
3 years ago
Liam Cervante 7a3fc48b70
Structured Plan Renderer: Add tests validating behaviour of dynamic types (#32482)
3 years ago
Liam Cervante d31631675b
Add support for Tuples into the structured plan renderer (#32479)
3 years ago
Liam Cervante 2d66eee872
Structured Plan Renderer: Address comments raised in previous PRs (#32478)
3 years ago
Liam Cervante 1332d315b6
Structured Plan Renderer: Remove generic `interface{}` entry point (#32477)
3 years ago
Liam Cervante 9bc5ded27a
Add support for outputs in the structured renderer (#32426)
3 years ago
Liam Cervante 05f1764a0d
Add support for blocks in the structured renderer (#32422)
3 years ago
Liam Cervante 69cce3597f
Add support for sets in the structured renderer (#32409)
3 years ago
Liam Cervante aff94591c1
Add support for lists in the structured renderer (#32401)
3 years ago
Liam Cervante 8975eebf84
Add support for maps in the structured renderer (#32397)
3 years ago
Liam Cervante b097d8873d
Add support for the replace paths data in the structured renderer (#32392)
3 years ago
Liam Cervante 1eebcf875f
Add support for object attributes in the structured renderer (#32391)
3 years ago
Liam Cervante b8b1a8d430
Add support for unknown/computed values in the structured renderer (#32378)
3 years ago
Liam Cervante 6ab277f6ba
Add support for sensitive values in the structured renderer (#32375)
3 years ago
Liam Cervante 71daef058f
Add rendering functionality for primitives to the structured renderer (#32373)
3 years ago
Liam Cervante aff7d360e1
Add skeleton functions and API for refactored renderer (#32368)
3 years ago
Liam Cervante b917154a97
Make required JSON structured output structures public for processing (#32367)
3 years ago
James Bardin 721df0e68d
Merge pull request #32395 from hashicorp/jbardin/plan-output-on-error
3 years ago
James Bardin a6098b67fa fix test state
3 years ago
James Bardin 25ac4d33e4
Merge pull request #31633 from brittandeyoung/f-workspace-selectornew
3 years ago
Brittan DeYoung 8881418c99
Update internal/command/workspace_select.go
3 years ago
James Bardin d60d247e40
Merge pull request #31318 from twittyc/twittyc/terraformWorkspaceInvalidArgsReturnsNon0
3 years ago
James Bardin 76d5e4a9cb add command test for errored plan
3 years ago
James Bardin 5aa088e385 remove -always-out
3 years ago
Martin Atkins 4660dacd59 command: Prototype of handling errored plans
3 years ago
James Bardin 404b284911
Merge pull request #31757 from hashicorp/jbardin/terraform-data
3 years ago
Conor Evans e206d4e83e
fix(unlock): amend force-unlock description (#32363)
3 years ago
James Bardin d0d6501c1f s/trigger/triggers_replace/
3 years ago
James Bardin 58e15c7f0e add terraform_data e2e test
3 years ago
alisdair ec6451a82a
Merge pull request #31999 from JarrettSpiker/jspiker/workspace-delete-rum-docs
3 years ago
Jarrett Spiker 21d98697cb Add manual line breaks to workspace delete command help text
3 years ago
Jarrett Spiker 060255a9d5 Use safe or force workspace delete for cloud backend
3 years ago
Martin Atkins d0a35c60a7 providercache: Ignore lock-mismatching global cache entries
4 years ago
Brandon Croft bd744ad4e9
Unify all sensitive value plan output as "(sensitive value)"
4 years ago
Brandon Croft 076fccd8e7
fix: don't reveal nested attributes with sensitive schema
4 years ago
Jarrett Spiker 3d5dba5c09
Update internal/command/workspace_delete.go
4 years ago
Jarrett Spiker 9d2e8a4c7e Update workspace delete command docs and help to reference RUM instead of non-empty state
4 years ago
UKEME BASSEY 7b34e3e743 redact sensitive output values in run logs
4 years ago
Megan Bang 72ba8a869e removes EnableForcePush and other unrelated code
4 years ago
Brittan DeYoung 11da5afb5e Spelling Error fixes
4 years ago
Brittan DeYoung 409bd667c3 workspace: update envDoesNotExist message
4 years ago
Brittan DeYoung 7110ec8b0c select: Fix capitalization of help text
4 years ago
Brittan DeYoung 7d0d352eed select: -or-create helptext and conditional output
4 years ago
Brittan DeYoung 5932540be3 New Terraform Workspace select flag:
4 years ago
kmoe ba113ff2cd
add destroy option to terraform apply help text (#31714)
4 years ago
megan07 cb340207d8
Merge pull request #31698 from hashicorp/megan_tf563
4 years ago
Megan Bang 37b7e6ebce don't check diags for errors
4 years ago
Megan Bang 4d749e2813 add warning to diags and show at the end of each command
4 years ago
Megan Bang 5eaa4c45c0 fix imports
4 years ago
Megan Bang de8bd5826f first part of code review comments
4 years ago
kmoe dec48a8510
plans: indicate when resource deleted due to move (#31695)
4 years ago
Megan Bang b504dd1489 update from code consistency checks
4 years ago
Megan Bang 485a1f6777 remove test for error
4 years ago
Megan Bang bddf6a9b34 updating to use the latest version of cloud/state.go and just pass schemas along to PersistState in the remote state
4 years ago
Megan Bang b572e57fb3 refactor GetSchemas to include an option to pass in a config
4 years ago
Megan Bang 40263cd861 undo taint test changes
4 years ago
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