Commit Graph

29670 Commits

Author SHA1 Message Date
James Bardin
09dde8d5ed improve the contributing attributes filter
The initial rough implementation contained a bug where it would
incorrectly return a NilVal in some cases.

Improve the heuristics here to insert null values more precisely when
parent objects change to or from null. We also check for dynamic types
changing, in which case the entire object must be taken when we can't
match the individual attribute values.
2022-03-30 10:04:48 -04:00
Alisdair McDiarmid
120d096615
Merge pull request #30747 from george-mengelberg/patch-1
Description of '-' symbol as used in format()
2022-03-28 12:58:12 -04:00
Laura Pacilio
b5c0955cb9
Merge pull request #30712 from hashicorp/file-provisioner-powershell-warning
Add PowerShell note to file provisioner page
2022-03-28 11:13:28 -04:00
hc-github-team-tf-core
11aaff859a Cleanup after v1.2.0-alpha-20220328 release 2022-03-28 10:27:27 +00:00
hc-github-team-tf-core
9ba701fb1e
Release v1.2.0-alpha-20220328 2022-03-28 09:54:29 +00:00
george-mengelberg
d7316e79ca
Description of '-' symbol as used in format()
The existing description for the '-' symbol as use in format() stated that the result would padded spaces to the left.  When tested in via 'terraform console' using format("%-10.1f", 3) the result was "3.0       "

Terraform v1.1.7
2022-03-26 08:26:44 -07:00
kmoe
7e849473a4
version: main branch is tracking v1.2 2022-03-25 18:12:57 +00:00
Katy Moe
8ee0ba12f9
Revert "main branch is now tracking v1.3"
This reverts commit 28fa6f4515.
2022-03-25 18:12:25 +00:00
Katy Moe
60d1becff7
Revert "version: main branch is now tracking v1.3"
This reverts commit 100056269f.
2022-03-25 18:12:09 +00:00
kmoe
28fa6f4515
main branch is now tracking v1.3 2022-03-25 17:31:11 +00:00
kmoe
100056269f
version: main branch is now tracking v1.3 2022-03-25 17:29:58 +00:00
Luces Huayhuaca
c1ed0fa0b1
Update CHANGELOG.md (#30738)
Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com>

Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com>
2022-03-25 07:56:34 -07:00
Markus Bösling
275ff5b223
double word removed (#30679) 2022-03-25 14:31:52 +00:00
kmoe
d9186fa9f8
Update CHANGELOG.md 2022-03-25 14:29:45 +00:00
shinbunbun
a1ead44c71
cidrnetmask() produce an error with IPv6 (#30703)
* Add error handling for IPv6



Co-authored-by: kmoe <5575356+kmoe@users.noreply.github.com>
2022-03-25 14:26:47 +00:00
rita
4b516bb90e
Merge pull request #30728 from hashicorp/link_workflow_tutorials
Link workflow tutorials from docs
2022-03-24 11:11:42 -04:00
Michele Degges
187a34a89e
[RelAPI Onboarding] Add release API metadata file (#30717) 2022-03-23 14:20:54 -07:00
Luces Huayhuaca
bdc7d8c0a1
Upgrade go-tfe dependency to use 1.0 version. It contains breaking changes, so we are updating method signatures, method names and the type of optional parameters, as needed. (#30626) 2022-03-23 13:58:47 -07:00
ritsok
bef18c47cb Link workflow tutorials from docs 2022-03-23 16:38:36 -04:00
Anna Winkler
86261f0bf5
Merge pull request #30720 from hashicorp/aw/update-comment-transitive-reduction
Update comment for this transformer
2022-03-23 09:43:22 -06:00
Anna Winkler
4ca508294c
Update comment for this transformer
Remove extra word and add link to Wikipedia article
2022-03-22 17:17:56 -06:00
Michele Degges
34cf5f5b31 [RelAPI Onboarding] Add release API metadata file 2022-03-22 11:24:44 -07:00
Laura Pacilio
d74c4972d7 Add more context to note 2022-03-21 14:09:25 -04:00
Laura Pacilio
881fbd1971 Add PowerShell note to file provisioner page 2022-03-21 14:03:18 -04:00
Laura Pacilio
20e9d8e28c
Merge pull request #30702 from hashicorp/add-powershell-warning
Add note about powershell formatting
2022-03-21 12:28:25 -04:00
Alisdair McDiarmid
b386f76b65
Merge pull request #30685 from hashicorp/alisdair/fix-30641
cli: Fix missing identifying attributes in diff
2022-03-21 09:11:45 -04:00
Laura Pacilio
0ba0fe667c Add period 2022-03-18 17:18:25 -04:00
Laura Pacilio
c7afb7db94 Add note about powershell formatting 2022-03-18 17:15:24 -04:00
James Bardin
4dd45e6bfa update CHANGELOG.md 2022-03-18 14:21:06 -04:00
James Bardin
fef66f9a60
Merge pull request #30486 from hashicorp/jbardin/drift
Only show external changes which contributed to the plan
2022-03-18 14:19:46 -04:00
Luces Huayhuaca
83d4265b6c
Update CHANGELOG.md (#30694)
* Update CHANGELOG.md
2022-03-17 16:55:54 -07:00
James Bardin
8c5e11d41a add relevant_attributes to the json plan format
Add the resource instances and individual attributes which may have
contributed to the planned changes to the json format of the plan. We
use the existing path encoding for individual attributes, which is
already used in the replace_paths change field.
2022-03-17 09:35:36 -04:00
James Bardin
f0cd8be66f add whole resource references 2022-03-17 09:35:36 -04:00
James Bardin
773f5b02ec round-trip relevant attributes through planfile 2022-03-17 09:35:36 -04:00
James Bardin
e2b74247f2 track contributing instances
Track individual instance drift rather than whole resources which
contributed to the plan. This will allow the output to be more precise,
and we can still use NoKey instances as a proxy for containing resources
when needed.
2022-03-17 09:35:36 -04:00
James Bardin
25f4c0d3dd filter attribute refresh changes from plan UI
Filter the refresh changes from the normal plan UI at the attribute
level. We do this by constructing fake plans.Change records for diff
generation, reverting all attribute changes that do not match any of the
plan's ContributingResourceReferences.
2022-03-17 09:35:36 -04:00
James Bardin
0e7cec83db decode change before creating diff
This is functionally equivalent, but will allow us to filter the change
values directly for reduced drift output.
2022-03-17 09:35:36 -04:00
James Bardin
c02e8bc5b3 change plan to store individual relevant attrs
Storing individual contributing attributes will allow finer tuning of
the plan rendering.

add contributing to outputs
2022-03-17 09:35:36 -04:00
James Bardin
620caa983c globalref.Reference.ResourceAttr
Convert a global reference to a specific AbsResource and attribute pair.
The hcl.Traversal is converted to a cty.Path at this point because plan
rendering is based on cty values.
2022-03-17 09:35:36 -04:00
Alisdair McDiarmid
0bf4112c28
Merge pull request #30684 from hashicorp/alisdair/fix-sum-func
functions: Fix sum() of all strings
2022-03-16 12:56:38 -04:00
Alisdair McDiarmid
ad9c89fc19 cli: Fix missing identifying attributes in diff
When rendering a diff for an object value within a resource, Terraform
should always display the value of attributes which may be identifying.
At present, this is a simple rule: render attributes named "id", "name",
or "tags".

Prior to this commit, Terraform would only apply this rule to top-level
resource attributes and those inside nested blocks. Here we extend the
implementation to include object values in other contexts as well.
2022-03-16 10:38:52 -04:00
Anna Winkler
3727191078
Merge pull request #30671 from hashicorp/aw/clarify-var
Remove incorrect sentence
2022-03-16 08:35:03 -06:00
Alisdair McDiarmid
0764726e3e functions: Fix sum() of all strings
The sum() function accepts a collection of values which must all convert
to numbers. It is valid for this to be a collection of string values
representing numbers.

Previously the function would panic if the first element of a collection
was a non-number type, as we didn't attempt to convert it to a number
before calling the cty `Add` method.
2022-03-16 08:50:06 -04:00
Craig Wright
c5d7bd3e65
Merge pull request #30674 from loekd/patch-5
Update toset.mdx
2022-03-15 17:31:41 -07:00
Theo Chupp
d15a2bc024
fix: local variables should not be overridden by remote variables during terraform import (#29972)
* fix: local variables should not be overridden by remote variables during `terraform import`

* chore: applied the same fix in the 'internal/cloud' package

* backport changes from cloud package to remote package

Co-authored-by: Alisdair McDiarmid <alisdair@users.noreply.github.com>
Co-authored-by: uturunku1 <luces.huayhuaca@gmail.com>
2022-03-15 14:42:11 -07:00
Laura Pacilio
7c0cbaa407
Merge pull request #30281 from Mukesh05/patch-3
Terraform may be misled, not provider
2022-03-15 16:50:36 -04:00
Laura Pacilio
50d49d0b0d
Merge pull request #30649 from dragondrop-cloud/main
Documentation Update: Capture `cloud`/ `backend` block override behavior in docs
2022-03-15 16:47:23 -04:00
GoodmanBen
659fb09fc1 fix: cleaner syntax 2022-03-15 16:36:04 -04:00
GoodmanBen
b8d8461dbb no new line changes in terraform-cloud.mdx 2022-03-15 11:26:04 -04:00
GoodmanBen
12f125d958 remove override interjection on terraform-cloud docs 2022-03-15 11:25:05 -04:00