James Bardin
554cedab8a
don't validate Min/Max block vals in CoerceValue
...
A provider may not have the data to fill in required block values in all
cases during the resource Read operation. This is more common in import,
because there is no initial configuration or state, and it's possible
some values are only provided in the configuration.
The original intent of MinItems and MaxItems in the schema was to
enforce configuration constraints, not to enforce what the resource
could save in the state. Since the configuration is already statically
validated, and the Schema is validated against the configuration in a
separate step, we can drop these extra validation constraints in
CoerceValue and relax it to only ensure the types conform to what is
expected.
2019-08-15 10:02:39 -04:00
Radek Simko
ecbfc365a0
Merge pull request #20157 from shinmog/conflictswith
...
helper/schema: Add "part" to ConflictsWith validation error
2019-08-08 14:20:35 +01:00
Radek Simko
76ba72dcda
Update CHANGELOG.md
2019-08-08 13:54:36 +01:00
Radek Simko
db7d1826e4
Merge pull request #22312 from ewbankkit/add-rand-ip-address
...
helper/acctest: Add function to return random IP address
2019-08-08 13:53:51 +01:00
Radek Simko
7861cc6141
Merge pull request #20309 from chanzuckerberg/ryanking/remove_lifecycle_comment
...
helper/schema: Remove comment about nested schema.Resources having their own lifecycle
2019-08-08 13:48:22 +01:00
Radek Simko
350395d804
Add better comment
2019-08-08 13:21:04 +01:00
Radek Simko
a08ad08169
Merge pull request #18277 from ndmckinley/patch-1
...
helper/resource: Minor docs tweak on ImportStateVerify
2019-08-08 13:08:19 +01:00
James Bardin
f1a891659c
Merge pull request #22381 from hashicorp/jbardin/update-aws
...
update deps to match the aws provider
2019-08-07 16:55:05 -04:00
James Bardin
01f4dd4588
update deps to match the aws provider
...
Update the aws-sdk-go-base and aws-sdk-go packages to ensure the same
client behavior as the aws provider.
2019-08-07 16:33:57 -04:00
appilon
a56e53ec5b
Merge pull request #22365 from hashicorp/appilon/move-hcl2shim
...
[CLEANUP] move hcl2shim package to configs
2019-08-06 20:20:36 -04:00
Alex Pilon
4bf43efcfd
move hcl2shim package to configs
2019-08-06 19:58:58 -04:00
The Terraform Team
fcb603616d
Merge pull request #20898 from sebbrandt87/patch-1
...
Removed -index from README
2019-08-06 22:17:20 +01:00
appilon
2574f7da57
Merge pull request #22270 from hashicorp/appilon/prune-terraform.NewResourceConfig
...
[CLEANUP] Prune terraform.NewResourceConfig
2019-08-06 16:00:16 -04:00
Alex Pilon
2a01704208
restore legacy functions for back compat
2019-08-06 15:22:28 -04:00
Sebastian Brandt
5d4826894c
Update website/docs/commands/untaint.html.markdown
...
Co-Authored-By: The Terraform Team <52939924+teamterraform@users.noreply.github.com>
2019-08-06 21:18:20 +02:00
Martin Atkins
869ac3359a
Update CHANGELOG.md
2019-08-06 11:53:39 -07:00
Martin Atkins
135afaeb9c
lang: "regex" and "regexall" functions
...
These existing upstream cty functions allow matching strings against
regular expression patterns, which can be useful if you need to consume
a non-standard string format that Terraform doesn't (and can't) have a
built-in function for.
2019-08-06 11:52:14 -07:00
Pam Selle
9ab928eef6
Update CHANGELOG.md
2019-08-06 14:25:03 -04:00
Pam Selle
ce8e7811ae
Merge pull request #18823 from minamijoyo/fix-multibyte-trucate
...
command/hook_ui: Truncate the ID considering multibyte characters
2019-08-06 14:24:24 -04:00
Alex Pilon
ec0402a238
add case to decoder to assert to slice, then each item to a map
2019-08-05 22:08:05 -04:00
Alex Pilon
d1448fc319
restore test
...
switch provisioner validation to cast to []interface{} first
2019-08-05 22:08:04 -04:00
Alex Pilon
732211617e
fix typo
2019-08-05 22:08:04 -04:00
Alex Pilon
6ae281b34f
set Err to true for test
...
This was likely meant to be set to Err true but
the old parser mistakenly didn't raise an error
2019-08-05 22:08:04 -04:00
Alex Pilon
6de3c32652
comment out failing test
2019-08-05 22:08:04 -04:00
Alex Pilon
83aa07f907
prune NewResourceConfig and update tests
2019-08-05 22:08:03 -04:00
Pam Selle
e9f8f92fce
Update CHANGELOG.md
2019-08-05 12:47:12 -04:00
Pam Selle
da1ab617b8
Merge pull request #22332 from hashicorp/revert-21345-master
...
Revert "Habitat License Acceptance changes. "
2019-08-05 12:44:23 -04:00
Pam Selle
291cf8c5a4
Revert "Habitat License Acceptance changes. "
2019-08-05 12:43:55 -04:00
Pam Selle
697a0c435e
Update CHANGELOG.md
2019-08-05 12:41:34 -04:00
Pam Selle
9020636f93
Merge pull request #21345 from mudash/master
...
Habitat License Acceptance changes.
2019-08-05 12:40:34 -04:00
The Terraform Team
165e3cc28c
Merge pull request #21906 from ajayk/readme-vagrant-ref
...
readme : remove references to vagrant file
2019-08-05 12:39:34 -04:00
The Terraform Team
2326acaefe
website/docs: add type to example variable
...
added type to variable
2019-08-05 12:33:00 -04:00
kmoe
3a0c1794b6
Merge pull request #22320 from hashicorp/svh/f-fmt-help
...
Mention the -no-color option
2019-08-04 15:42:55 +01:00
Sander van Harmelen
e81fafeefa
Mention the -no-color option
...
This option is a valid option for the fmt subcommand, but it isn't
listed in the help text.
2019-08-04 10:18:09 +02:00
appilon
eada5e03fc
Merge pull request #22317 from hashicorp/appilon/turn-off-slack-panics
...
[hashibot] remove panic notifier
2019-08-02 17:58:38 -04:00
Alex Pilon
f2b9d1a526
remove panic notifier
2019-08-02 17:52:33 -04:00
Kit Ewbank
949a6ae695
Add 'RandIpAddress'.
2019-08-02 14:51:40 -04:00
James Bardin
3cda2bd7a5
Merge pull request #22299 from hashicorp/jbardin/state-mv
...
allow moving resource to new modules not in state
2019-08-02 09:21:04 -04:00
Kristin Laemmert
88197bfa01
Update CHANGELOG.md
2019-08-02 09:00:03 -04:00
hiroqn
de4235698b
command/0.12upgrade: honor user-supplied plugin-dir
...
Fixes #21594
2019-08-02 08:58:21 -04:00
James Bardin
32f7f58345
allow moving resource to new modules not in state
...
Create the missing modules in the state when moving resources to a
module that doesn't yet exist. This allows for refactoring of
configuration into new modules, without having to create dummy resources
in the module before the "state mv" operations.
2019-08-01 18:54:09 -04:00
Chris Marchesi
4c63187fcd
Update CHANGELOG.md
2019-08-01 13:32:22 -07:00
Kristin Laemmert
dcb802d96f
Update CHANGELOG.md
2019-08-01 15:54:02 -04:00
Kristin Laemmert
2b14a6b332
lang/funcs: lookup() can work with maps of lists, maps and objects ( #22269 )
...
* lang/funcs: lookup() can work with maps of lists, maps and objects
lookup() can already handle aribtrary objects of (whatever) and should
handle maps of (whatever) similarly.
2019-08-01 15:52:52 -04:00
Chris Marchesi
e0329c2e0f
Merge pull request #22248 from hashicorp/v0.12.5-updated-azure-helpers
...
modules: update go-azure-helpers to v0.5.0
2019-08-01 11:58:10 -07:00
Chris Marchesi
d43fc71135
modules: update go-azure-helpers to v0.5.0
...
To help address the issues posed on #22087 and #22085 .
2019-08-01 11:57:34 -07:00
Chris Marchesi
04c5f0ffb2
Merge pull request #22247 from hashicorp/v0.12.5-updated-azure
...
modules: update Azure deps to latest
2019-08-01 11:57:07 -07:00
Pam Selle
ac810a8d0c
Update CHANGELOG.md
2019-08-01 14:25:30 -04:00
Pam Selle
c6692c108b
Merge pull request #22291 from hashicorp/pselle/fix-foreach-provisioners
...
Ensure each references evaluated in provisioners block
2019-08-01 14:24:38 -04:00
Martin Atkins
0f2c4b3b68
httpclient: Create trace logging for outgoing HTTP requests
...
Sometimes HTTP requests are buried inside third-party libraries where we
can't otherwise access their request method/URL, so this ensures we'll
always have at least a record of the fact that a request happened, even if
there's no other logging for why it did.
We only include the method and URL here under the assumption that
secret keys and other particularly sensitive information will not appear
there, in line with usual best-practices.
2019-08-01 10:57:22 -07:00