Commit Graph

24371 Commits

Author SHA1 Message Date
James Bardin e0ea2a5d06 if there is no plan diff, prefer the prior state
The prior state may contain customizations made by the provider. If
there is no prior state, then take the proposed state.
2018-10-30 15:58:00 -04:00
James Bardin 28a881a670
Merge pull request #19222 from hashicorp/jbardin/timeout
provider timeouts
2018-10-30 14:56:59 -04:00
James Bardin 36cede09f7 add provider tests for SuppressDiffFunc 2018-10-30 14:53:38 -04:00
James Bardin f153720a36 add checks for timeouts attributes and blocks
Don't overwrite anything the provider defined, in order to maintain
existing behavior.

Change strings to pre-defined constants
2018-10-30 14:16:44 -04:00
James Bardin e38a5a769d copy timouts into plan and apply state
helper/schema will remove "timeouts" from the config, and stash them in
the diff.Meta map. Terraform sees "timeouts" as a regular config block,
so needs them to be present in the state in order to not show a diff.

Have the GRPCProviderServer shim copy all timeout values into any state
it returns to provide consistent diffs in core.
2018-10-30 13:14:08 -04:00
James Bardin 121c9c127f add timeout tests to the test provider 2018-10-30 13:14:08 -04:00
James Bardin 6dad121e70 insert resource timeouts into the config schema
Resource timeouts were a separate config block, but did not exist in the
resource schema. Insert any defined timeouts when generating the
configshema.Block so that the fields can be accepted and validated by
core.
2018-10-30 13:14:08 -04:00
Nick Fagerlund ab88f8ca0f
website: Update and link the page about remote backend operations (#19203) 2018-10-29 11:00:24 -07:00
Kristin Laemmert b2f7da05c8
Merge pull request #19212 from hashicorp/mildwonkey/docs/backend-local
website: update terraform_remote_state syntax in backend docs
2018-10-29 10:41:05 -07:00
Kristin Laemmert 5fa624c55e website: update terraform_remote_state syntax in backend docs 2018-10-29 09:22:21 -07:00
Sander van Harmelen 2b075bbf8e
Update CHANGELOG.md 2018-10-27 15:21:42 +02:00
Sander van Harmelen 5458a91985 command/state: update and fix the state show command 2018-10-27 15:15:25 +02:00
Sander van Harmelen 292ec47e66
Merge pull request #19197 from hashicorp/f-state-mv
command/state: update and fix the state mv command
2018-10-27 15:03:42 +02:00
Sander van Harmelen 7ec3f96e3a command/state: update and fix the state mv command 2018-10-27 15:01:07 +02:00
Kristin Laemmert 009534d101
Merge pull request #18039 from outsideris/update-idna
Add test to verify terraform can handle hostname that starts with numeric chars
2018-10-26 14:33:22 -07:00
James Bardin 6172d0e744
Merge pull request #19201 from hashicorp/jbardin/shims
missed IsNull check in config shim
2018-10-26 13:54:23 -07:00
James Bardin a1915964a2 some basic tests for NewResourceConfigShimmed
This is used in the helper package for the provider shims.
2018-10-26 15:01:30 -04:00
James Bardin 6732b6713b missed IsNull check in config shim 2018-10-26 14:02:09 -04:00
Sander van Harmelen c7c6f6efba
Restore the older CHANGELOG entries 2018-10-26 15:05:44 +02:00
Brian Flad 0ece7b9165
Update CHANGELOG for #19190 2018-10-25 12:22:57 -07:00
Brian Flad a8adfeb008
Merge pull request #19190 from hashicorp/v-terraform-provider-aws-v1.41.0
deps: terraform-providers/terraform-provider-aws@v1.41.0 and aws/aws-sdk-go@v1.15.55
2018-10-25 12:19:04 -07:00
Outsider a2cb579d1b
svchost: test for hostname started with numeric
Signed-off-by: Outsider <outsideris@gmail.com>
2018-10-25 09:02:28 -07:00
Radek Simko b54cc1d95f
Merge pull request #19170 from mikesir87/patch-1
Small grammar fix for lifecycle docs
2018-10-25 08:51:57 +02:00
Radek Simko b1abb3de8e
Merge pull request #19169 from hgontijo/patch-1
Fix typo.
2018-10-25 08:49:27 +02:00
Brian Flad 2c59de064b
deps: terraform-providers/terraform-provider-aws@v1.41.0 and aws/aws-sdk-go@v1.15.55
Provides the ability for the S3 backend to read `credential_source` via AWS configuration file.
2018-10-24 21:14:30 -07:00
Alisdair McDiarmid 2e480bb17c Add links to new screenshots (#19135)
Screenshots for:

- GitHub Pull Request with resource changes in the TFE status update
- TFE plan-only run for a Pull Request
2018-10-24 15:20:43 -07:00
Sander van Harmelen cb5574800f
Update CHANGELOG.md 2018-10-24 20:44:41 +02:00
Sander van Harmelen 9db93523bf
Merge pull request #19178 from hashicorp/f-state-rm
command/state: update and fix the state rm command
2018-10-24 20:10:38 +02:00
Sander van Harmelen 19c1241a50 command/state: update and fix the state rm command 2018-10-24 10:59:33 +02:00
Radek Simko 1577704bdf
Update CHANGELOG.md 2018-10-23 20:44:32 +02:00
Radek Simko 1de7c5849d
Merge pull request #19161 from hashicorp/b-lookup-crash-fix
lang: Fix crash in lookup function
2018-10-23 20:19:45 +02:00
Sander van Harmelen 4a2cbb3562
Update CHANGELOG.md 2018-10-23 17:57:52 +02:00
Radek Simko b41cda7d7a
Return cty.DynamicPseudoType instead 2018-10-23 12:42:46 +02:00
Michael Irwin 47047aa637
Small grammar fix for lifecycle docs 2018-10-22 22:34:11 -04:00
Henrique M. Gontijo 642cdd331f
Fix typo. 2018-10-22 14:26:33 -07:00
Radek Simko 4856d81300
lang: Fix crash in lookup function 2018-10-22 12:58:47 +02:00
Martin Atkins 1dc3e50c47
CHANGELOG: Clean up after v0.12.0-alpha1 release 2018-10-19 17:45:54 -07:00
Martin Atkins a3e601d45d
CHANGELOG: Replace some specific enumerated 0.12-alpha1 known issues with a link to GitHub issues 2018-10-19 17:40:44 -07:00
James Bardin dbaf347392
Merge pull request #19136 from hashicorp/jbardin/simple-diff
panic fixes
2018-10-19 17:06:37 -04:00
James Bardin e93d69f18b more nil/known checks before val.LengthInt 2018-10-19 16:51:15 -04:00
Brian Flad 62bf23850b
Merge pull request #19122 from hashicorp/f-helper-validation-Any
helper/validation: Add Any() SchemaValidateFunc
2018-10-19 15:11:33 -04:00
James Bardin d50a152f8b check for a nil diff in simpleDiff 2018-10-19 14:25:20 -04:00
Sander van Harmelen c7df8bef39
Merge pull request #19132 from hashicorp/f-state-mv
Make `state mv` use the new `states.Filter`
2018-10-19 19:22:49 +02:00
Sander van Harmelen 536c2fe6f1 Make `state mv` use the new `states.Filter` 2018-10-19 19:19:49 +02:00
Sander van Harmelen 5e11de460a
Merge pull request #19130 from hashicorp/f-state-push-pull
command/state: update and fix the state push and pull
2018-10-19 19:16:00 +02:00
Sander van Harmelen 7fbd93b5cd command/state: update and fix the state push and pull 2018-10-19 19:12:23 +02:00
Sander van Harmelen a88ba31b63
Merge pull request #19129 from hashicorp/f-show-list
command/state: update and fix the state list command
2018-10-19 19:10:09 +02:00
Sander van Harmelen 83168ea25f
Merge pull request #19127 from hashicorp/b-prepare-provider
Make the test compile again
2018-10-19 19:05:18 +02:00
Martin Atkins fb57933f13
Update CHANGELOG.md 2018-10-19 09:58:22 -07:00
Sander van Harmelen ecfcb23740
Merge pull request #19128 from hashicorp/b-fix-tf-show
Terraform show didn’t show absolute paths
2018-10-19 18:58:10 +02:00