Commit Graph

17587 Commits

Author SHA1 Message Date
Brian Hahn 11fa03cfb6 fix docs typo (#13183) 2017-03-30 07:03:08 +01:00
James Bardin 33058872ec Merge pull request #13176 from hashicorp/jbardin/input-false
honor `input=false` in state migration
2017-03-29 18:12:36 -04:00
James Bardin 50023e9a60 honor `input=false` in state migration
return an error when confirming a copy if -input=false
2017-03-29 18:11:45 -04:00
James Bardin 0276614020 Merge pull request #13165 from hashicorp/jbardin/init
add Rehash to terraform.BackendState
2017-03-29 18:07:35 -04:00
James Bardin c55a5082f5 delegate BackendState.Rehash to config.Backend 2017-03-29 18:01:03 -04:00
James Bardin 7d23e1ef20 add equivalent tests to meta_backend_test 2017-03-29 17:50:55 -04:00
Martin Atkins da1905d5e1 Remove .gitattributes, treating all files as binary
This was added earlier in an attempt to tolerate CRLF and convert CRLF
line endings on Windows, but it causes issues where vendored files
(which could be using either LF or CRLF depending on the original author's
preference) get permanent diffs when inconsistent with the platform's
preference.

The goal of this change, therefore, is to treat all of the files as binary,
with the standard that all of Terraform's own files will use Unix-style
LF endings and the vendor stuff will just be verbatim, byte-for-byte
copies of what's upstream.

This will apparently cause some difficulty for people hacking on Terraform
on Windows machines, because gofmt on Windows reportedly wants to convert
all files to CRLF endings. Unfortunately we're forced to compromise here
and treat development on Windows as an edge case in order to avoid the
weirdness with inconsistent endings in the vendor tree.
2017-03-29 14:44:43 -07:00
= fae435c5d8 Add randomness to vpn connection test 2017-03-29 15:10:21 -06:00
= 0aa9d71f7f add randomness to iam policy attachments 2017-03-29 14:24:19 -06:00
James Bardin c891ab50b7 detect when backend.Hash needs update
It's possible to not change the backend config, but require updating the
stored backend state by moving init options from the config file to the
`-backend-config` flag. If the config is the same, but the hash doesn't
match, update the stored state.
2017-03-29 16:03:51 -04:00
James Bardin ff2d753062 add Rehash to terraform.BackendState
This method mirrors that of config.Backend, so we can compare the
configration of a backend read from a config vs that of a backend read
from a state. This will prevent init from reinitializing when using
`-backend-config` options that match the existing state.
2017-03-29 15:53:42 -04:00
Paul Hinze b49e403573 Update CHANGELOG.md 2017-03-29 14:18:12 -05:00
Paul Hinze 43242bbeae Merge pull request #13140 from hashicorp/b-rds-snapshot-restore-db-name
provider/aws: Don't set DBName on `aws_db_instance` from snapshot
2017-03-29 14:17:32 -05:00
joelcollin 3456f12f6a Fixed typo in subscription (was subscripion) (#13172) 2017-03-29 20:06:26 +01:00
tombuildsstuff 7aecce4408 Hooking up the OracleOPC Docs 2017-03-29 19:30:04 +02:00
Martin Atkins 80a1539bca Add apparentlymart to the community page. 2017-03-29 10:13:22 -07:00
Martin Atkins 0d6d2f1cb4 website: community people pics consistently spaced
Most of the bios have five lines of text, so that's the driver for the
layout except for @grubernaut's and @mbfrahry's where there's only three
lines. This makes the pictures following the short bios look misaligned.

This quick fix just always leaves enough room for five lines of bio text,
ensuring that the photos appear at a consistent vertical rhythm.

It's annoying to hard-code a particular value here, since this value won't
survive e.g. a change to the typesetting, but a more involved fix here
(using flexbox layout, or something else complicated) doesn't seem
warranted.
2017-03-29 10:13:22 -07:00
Radek Simko 6cae2a5eb1 Update CHANGELOG.md 2017-03-29 18:11:06 +01:00
Radek Simko dc5b1d936b provider/aws: Increase timeouts for ELB (#13161) 2017-03-29 18:10:38 +01:00
Radek Simko 0c561535e9 Update CHANGELOG.md 2017-03-29 18:09:37 +01:00
Radek Simko 75979afcb7 provider/aws: Fix ES Domain acceptance tests (#13160) 2017-03-29 18:07:11 +01:00
Radek Simko 4b8e235510 Update CHANGELOG.md 2017-03-29 18:06:51 +01:00
Radek Simko 261f5f8a76 provider/aws: Increase timeout for AMI registration (#13159) 2017-03-29 18:06:17 +01:00
Jake Champlin f9f1a50494 Merge pull request #13162 from hashicorp/provider-opc
Provider opc
2017-03-29 12:39:28 -04:00
Stephen Cross e7e815d2c6 Initial docs for Oracle Compute Cloud provider 2017-03-29 16:37:14 +00:00
Martin Atkins 51081678a4 Update CHANGELOG.md 2017-03-29 09:35:09 -07:00
Stephen Cross c5d1f8f88f Initial Oracle Compute Cloud provider 2017-03-29 16:30:08 +00:00
Martin Atkins 4ed0f76922 Update CHANGELOG.md 2017-03-29 09:28:12 -07:00
Martin Atkins 76dca009e0 Allow escaped interpolation-like sequences in variable defaults
The variable validator assumes that any AST node it gets from an
interpolation walk is an indicator of an interpolation. Unfortunately,
back in f223be15 we changed the interpolation walker to emit a LiteralNode
as a way to signal that the result is a literal but not identical to the
input due to escapes.

The existence of this issue suggests a bit of a design smell in that the
interpolation walker interface at first glance appears to skip over all
literals, but it actually emits them in this one situation. In the long
run we should perhaps think about whether the abstraction is right here,
but this is a shallow, tactical change that fixes #13001.
2017-03-29 09:25:57 -07:00
Paul Stack 3c296dc5d0 Update CHANGELOG.md 2017-03-29 18:55:47 +03:00
Tom Harvey 25da340543 Ignoring the case for NSG Protocol's in the state (#13153) 2017-03-29 18:55:20 +03:00
Radek Simko f1fba64926 docs/aws: Improve ElasticSearch Domain docs (#13157) 2017-03-29 16:47:42 +01:00
Martin Atkins 21cd5595e2 Update stringer-generated files to new boilerplate
golang/tools commit 23ca8a263 changed the format of the leading comment
to comply with some new standards discussed here:
https://golang.org/issue/13560

This is the result of running generate with the latest version of
stringer. Everyone working on Terraform will need to update stringer
after this is merged, to avoid reverting this:
    go get -u golang.org/x/tools/cmd/stringer
2017-03-29 08:07:06 -07:00
Tom Harvey 598fb682da Merge pull request #13154 from tombuildsstuff/tombuildsstuff-website
Adding @tombuildsstuff to the community page
2017-03-29 15:18:34 +02:00
tombuildsstuff e899ab8289 Adding myself to the community page 2017-03-29 12:39:03 +02:00
Paul Stack 0de008e07d docs/community: Removing @jen20 from the community page (#13150) 2017-03-29 13:32:17 +03:00
Radek Simko ed2338ed86 Update CHANGELOG.md 2017-03-29 11:24:58 +01:00
Radek Simko 9e7839b0ed provider/google: Mark GKE pass as sensitive (#13148) 2017-03-29 11:22:33 +01:00
Radek Simko 23f0475872 Update CHANGELOG.md 2017-03-29 11:19:58 +01:00
Radek Simko 5db819d852 provider/aws: Mark password fields as sensitive (#13147) 2017-03-29 11:15:22 +01:00
Paul Stack 55230c03df Update CHANGELOG.md 2017-03-29 12:45:13 +03:00
Paul Stack f44f0d8c86 provider/aws: Add Support for maintenance_window and back_window to rds_cluster_instance (#13134)
* provider/aws: Add Support for maintenance_window and back_window to rds_cluster_instance

Fixes: #9489

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSRDSClusterInstance_basic'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/03/28 23:08:45 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSRDSClusterInstance_basic -timeout 120m
=== RUN   TestAccAWSRDSClusterInstance_basic
--- PASS: TestAccAWSRDSClusterInstance_basic (1433.41s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	1433.438s
```

* Update rds_cluster_instance.html.markdown

* Update rds_cluster_instance.html.markdown
2017-03-29 12:44:44 +03:00
Paul Stack 6c967d95b9 Update CHANGELOG.md 2017-03-29 12:43:56 +03:00
Paul Stack bee2791286 provider/aws: Make alb_target_group_attachment port optional (#13139)
Fixes: #9460

```
% TF_LOG=1 make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSALBTargetGroupAttachment_' 2>~/tf.log
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSALBTargetGroupAttachment_ -timeout 120m
=== RUN   TestAccAWSALBTargetGroupAttachment_basic
--- PASS: TestAccAWSALBTargetGroupAttachment_basic (267.66s)
=== RUN   TestAccAWSALBTargetGroupAttachment_withoutPort
--- PASS: TestAccAWSALBTargetGroupAttachment_withoutPort (147.89s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	415.589s
```
2017-03-29 12:43:23 +03:00
Radek Simko 10f53e3471 Add links to details about sensitive data in state (#13145) 2017-03-29 10:37:36 +01:00
Tom Harvey 1a911dc694 Merge pull request #13119 from tombuildsstuff/azure-lb-docs
provider/azurerm: Removing Deprecated Location Fields
2017-03-29 09:22:30 +01:00
Tom Harvey 0dc45a2dfa Merge pull request #13144 from dtan4/remove-default-ssl-policy
Remove alb_listener ssl_policy restriction
2017-03-29 09:20:59 +01:00
Daisuke Fujita 1a6f766376 Remove alb_listener ssl_policy restriction 2017-03-29 11:56:44 +09:00
Paul Hinze 4619897f92
provider/aws: Don't set DBName on `aws_db_instance` from snapshot
It turns out if you're trying to write a config to conditionally restore
an instance from a snapshot, you end up painted into a corner with the
combination of `snapshot_identifier` and `name`.

You need `name` to be specified for DBs you're creating, but when
`snapshot_identifier` is populated you need it to be blank or else the
AWS API throws an error.

The logical next step is to drop a ternary in:

```tf
resource "aws_db_instance" "foo" {
 # ...
 snapshot_identifier = "${var.snap}"
 name = "${var.snap != "" ? "" : var.dbname}"
}
```

**BUT** the above config will _replace_ the DB on subsequent runs as the
config basically has `name = ""` which will trigger a ForceNew diff once
the `name` is populated from the snapshot restore.

**SO** we can get a workable solution by actively avoiding populating
DBName when we're using one of the engines the docs explicitly mention.

It does not look like there are any tests covering `snapshot_identifer`,
so I'll subject this to some manual tests and follow up with some
results.
2017-03-28 17:10:34 -05:00
= c06c17c914 Adds randomness to emr cluster tests 2017-03-28 16:08:08 -06:00