Commit Graph

31279 Commits

Author SHA1 Message Date
Rose M Koron
9ad521eac6
Update website/docs/cli/cloud/migrating.mdx 2023-05-05 16:05:45 -07:00
Rose M Koron
257ed78361
Merge pull request #33119 from willfaught/patch-1
Change separating to grouping
2023-05-05 15:55:27 -07:00
Rose M Koron
374885addf
Merge pull request #31977 from petoju/feature/fix-alternative
Fix regex pattern for more alternatives
2023-05-05 15:51:39 -07:00
Rose M Koron
6eee1ba44f
Merge pull request #31920 from robpickerill/main
update setsubtract examples to include toset notation
2023-05-05 15:41:51 -07:00
Martin Atkins
320539922a
Update CHANGELOG.md 2023-05-05 13:37:31 -07:00
Rees Pozzi
fed6538dec
core: Correct typo in "Moved resource instances excluded by targeting" error message 2023-05-05 13:36:05 -07:00
James Bardin
76737a8966
Merge pull request #33151 from hashicorp/jbardin/import-refresh
Import: only refresh an imported state once
2023-05-05 08:09:33 -04:00
James Bardin
be682f1d29 only refresh an import state once
The imported resource was being stored in the wrong state, and only
ended up in the refresh state because ReadResource was being called a
second time in the normal refresh path.

Make sure to only refresh the imported resource once. This is still done
separately within importState so that we can handle the error slightly
differently to let the user know if an imported instance does not exist.
2023-05-04 14:20:45 -04:00
Martin Atkins
9e095b2f65 version: Clean up after v1.5.0-alpha20230504 release 2023-05-04 10:49:23 -07:00
Martin Atkins
1a41519946 version: Prepare for v1.5.0-alpha20230504 release 2023-05-04 09:46:05 -07:00
Liam Cervante
77f10c4f68
Imports should come before Adds in change summaries (#33147) 2023-05-04 15:06:48 +02:00
Liam Cervante
81eb73731d
[Plannable Import] Implement streamed logs for plan (#33106)
* [plannable import] embed the resource id within the changes

* [Plannable Import] Implement streamed logs for -json plan

* use latest structs

* remove implementation plans from TODO
2023-05-04 10:02:06 +02:00
Liam Cervante
54c1c1162f
[Plannable Import] Implement human-readable plan rendering (#33113)
* [plannable import] embed the resource id within the changes

* add the plannable imports to the json and human plans

* latest importing struct
2023-05-03 18:50:04 +02:00
Craig Wright
ddd87994bf
Update README.md
Fixing broken relative link path.
2023-05-02 16:23:40 -07:00
Alisdair McDiarmid
b81253999e
Merge pull request #33003 from hashicorp/compliance/add-headers
[COMPLIANCE] Add Copyright and License Headers
2023-05-02 12:03:01 -04:00
Alisdair McDiarmid
b5658a46a2 Rebuild protobuf 2023-05-02 11:44:23 -04:00
hashicorp-copywrite[bot]
325d18262e [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
Liam Cervante
4210d905c0
[plannable import] embed the resource id within the changes (#33134)
* [plannable import] embed the resource id within the changes

* make pointers and update docs
2023-05-02 16:04:51 +02:00
Liam Cervante
b5576159da
Migrate 'state show' command to new renderer (#33116)
* Migrate 'state show' command to new renderer

* handle error
2023-05-02 15:27:59 +02:00
James Bardin
2c09ae4f3d prune unused providers within modules
The logic used to prune unused providers was only taking into account
the common case of providers in the root module. The quick check of
looking for up edges doesn't work within a module, because the module
structures will create non-resource nodes connected to the providers.
Use a deeper check of looking for any dependent resources which may
require that provider to be configured.
2023-05-01 10:38:13 -04:00
Vishnu Ravindra
f0b3b74f7c
website: Switch provider tutorial link from plugin-sdk to plugin-framework (#33129)
Link to plugin-framework tutorial updated
2023-05-01 08:46:13 -04:00
kmoe
28643516b2
Plannable import 3: Make import plannable (#33085)
During a plan, Terraform now checks for the presence of import blocks.

For each resource in config, if an import block is present with a matching address, planning that node will now trigger an ImportResourceState and ReadResource. The resulting state is treated as the node's "refresh state", and planning proceeds as normal from there.

The walkImport operation is now only used for the legacy "terraform import" CLI command. This is the only case under which the plan should produce graphNodeImportStates.
2023-04-28 23:45:43 +01:00
Will Faught
35bef84306
Change separating to grouping 2023-04-28 15:24:52 -07:00
kmoe
b3a49a2fa7
Update CHANGELOG.md 2023-04-28 09:52:31 +01:00
Roberto Hidalgo
1b7f772f8b
fix breaking code
this is what i get for submitting PRs late at night
2023-04-27 10:13:38 -06:00
Roberto Hidalgo
0dda1d5c61
Return debuggeble CAS errors on consul state put
ran into this error while running terraform on a container and saving state to Consul. I suspect my policy needs tweaking but it's impossible to tell with an error like this:

```
╷
│ Error: Failed to save state
│ 
│ Error saving state: consul CAS failed with transaction errors:
│ [0xc0006e93c8]
╵
```

This PR makes the will include the error messaage in the details so I can continue debugging
2023-04-26 23:44:39 -06:00
Craig Wright
19423e0a46
Merge pull request #33101 from hashicorp/fix-33069 2023-04-26 15:26:41 -07:00
Craig Wright
aae6e8ee69 Replaced tab with spaces. 2023-04-26 15:11:49 -07:00
Craig Wright
412e7ad908 Adding additional entry necessary to generate docs. 2023-04-26 15:08:44 -07:00
Craig Wright
c982aa1c54
Merge pull request #33092 from 0xchabbi/0xchabbi-patch-1 2023-04-26 14:44:40 -07:00
Bilal
3901478212
Update README.md
added the right correction
2023-04-26 23:09:18 +02:00
Alisdair McDiarmid
a686bde5c9
Merge pull request #33099 from hashicorp/alisdair/copywrite-ignore-protobuf-generated-code
Configure copywrite to ignore protobuf, stringer, mockgen output
2023-04-26 17:01:51 -04:00
Alisdair McDiarmid
30a08d08c8 Configure copywrite to ignore more generated code
stringer and mockgen added to the list.
2023-04-26 16:47:54 -04:00
Alisdair McDiarmid
4d6a523859 Configure copywrite to ignore protobuf output 2023-04-26 16:38:53 -04:00
Zac Clifton
3bb6a5896b
Feat: Add strcontains function and documentation (#33069)
* add strcontains function and documentation
2023-04-26 20:41:32 +01:00
Scott Macfarlane
fa3980b77d
Disable reproducability check in actions-go-build (#33095)
Signed-off-by: Scott Macfarlane <smacfarlane@hashicorp.com>
2023-04-26 19:42:00 +01:00
Alisdair McDiarmid
6a0d20feac
Merge pull request #33096 from hashicorp/alisdair/goimports-fixes
Fix goimports discrepancies
2023-04-26 14:41:03 -04:00
Alisdair McDiarmid
0ffdd07980 Fix goimports discrepancies 2023-04-26 14:33:13 -04:00
Alisdair McDiarmid
59b7678624
Merge pull request #33094 from hashicorp/alisdair/copywrite-no-testdata
Configure copywrite to ignore testdata
2023-04-26 14:08:35 -04:00
Alisdair McDiarmid
8ffd5d0ca9
Configure copywrite to ignore testdata 2023-04-26 13:59:12 -04:00
kmoe
c6400fabb1
configs: add import block (#33081) 2023-04-26 16:28:11 +01:00
Bilal
1ffe971a90
Update README.md
fix dead-link and change naming to have right understanding. (Add Peramlink instead of copy path)
2023-04-26 17:11:55 +02:00
dependabot[bot]
7ae272fe31
Bump yaml from 2.2.1 to 2.2.2 in /website (#33089)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 16:50:32 -05:00
kmoe
531efd303b
add types for plannable import (#33080) 2023-04-25 15:19:48 +01:00
Lauren
c87a6aa80d
Merge pull request #33084 from hashicorp/laurenolivia/add-resource-drift-logtype
[TF-5829]add resource_drift JSONLogType
2023-04-24 14:30:58 -05:00
Lauren
50c3f53595 add resource_drift logtype 2023-04-24 15:08:33 -04:00
James Bardin
d47d475a03
Merge pull request #33079 from hashicorp/jbardin/destroy-plan-faster-providers
skip inter-provider cycle check in destroy plan
2023-04-24 12:29:05 -04:00
James Bardin
583350a5c4 skip inter-provider cycle check in destroy plan
Just like in the destroy apply, we can skip the inter-provider cycle
check when creating the destroy plan, which can be expensive when there
are a lot of resource instances with dependencies from another provider.
2023-04-24 12:12:40 -04:00
Liam Cervante
b54668f44c
make the unknown attribute renderer consider the force replacement metadata (#33065) 2023-04-24 11:02:32 +02:00
Liam Cervante
14123e277c
Include sensitive metadata from the schema when building the json state output (#33059)
* include sensitive metadata from the schema when building the json state output

* found another test case
2023-04-24 10:52:44 +02:00