Commit Graph

1794 Commits

Author SHA1 Message Date
Nathan McKinley
d2611d4ce3
New data source: compute region instance group (#851)
* Add new data source: compute region instance group manager's groups.
* Add documentation for wait_for_instances and for the timeout mechanism in resourceComputeRegionInstanceGroupManagerCreate.
2017-12-14 13:35:39 -08:00
Vincent Roseberry
086b9e9f00
Update CHANGELOG.md 2017-12-13 17:04:30 -08:00
Vincent Roseberry
d2289c2ca1
Add configurable timeouts to google_compute_instance (#856) 2017-12-13 17:03:15 -08:00
Vincent Roseberry
6d8294c8df
Update CHANGELOG.md 2017-12-13 16:48:18 -08:00
Vincent Roseberry
433fdcc49f
Storage bucket doesn't remove lifecycle rules properly (#850)
* Update storage client

* Read lifecycle from API and improve acceptance tests
2017-12-13 16:46:48 -08:00
Vincent Roseberry
5585b14069
Import test refactoring for some resources. (#854)
* Improve import tests for folder, org iam custom roles and org policies

* improve import test for google project
2017-12-13 16:45:52 -08:00
Vincent Roseberry
e4516341ad
Update CHANGELOG.md 2017-12-13 16:43:48 -08:00
Vincent Roseberry
982f4d1c0b
Fix storage object detect md5 hash for dynamic content (#848) 2017-12-13 16:41:07 -08:00
Nathan McKinley
bea8642a1b
Bugfix: add read back in to the KMS crypto key read method. (#853)
* Bugfix: add read back in to the KMS crypto key read method.
Impact of this bug: if a user deleted a crypto key outside terraform and then reran `apply`, the old key would stay in the plan.

* Fix panic in validate method.
* Make import test confirm validity of reads.
2017-12-13 13:08:35 -08:00
Vincent Roseberry
6bbd97fe93
Update CHANGELOG.md 2017-12-12 11:30:40 -08:00
Michael Parker
606103afb6 Add support for compute network routing mode (#838)
* Add ability to specify compute network routing mode
* Update docs
2017-12-12 11:29:49 -08:00
Nathan McKinley
5766f2b107
Remove all instances of GOOGLE_XPN_HOST_PROJECT environment variable. (#815)
Remove all instances of GOOGLE_XPN_HOST_PROJECT environment variable.

Instead of GOOGLE_XPN_HOST_PROJECT being required to run some tests, I added the ability to create and tear down the necessary project structure.
This allows us to remove one environment variable, and use two others which are already widely-required: org and billing ID.
2017-12-11 14:07:52 -08:00
Nathan McKinley
72e97befe5
Update CHANGELOG.md 2017-12-11 10:49:29 -08:00
Nathan McKinley
ced8cb506c
Consistent IAM resource imports. (#835)
Add consistency for for IAM imports.
- Adds imports for projects, folders, crypto keys, organizations, and key rings.
- Anything else with IAM can implement a simple method and begin working immediately.
- Add tests for all the IAM imports.
- Import documentation for IAM resources.
2017-12-11 10:24:53 -08:00
Kit Ewbank
bf235ebc04 Correct 'sidebar_current' value (#834) 2017-12-11 09:57:19 -08:00
tf-release-bot
fb70d74ab9 Cleanup after v1.4.0 release 2017-12-11 17:56:43 +00:00
tf-release-bot
323c7d823f
v1.4.0 2017-12-11 17:52:49 +00:00
Vincent Roseberry
a41b8c470f
Add IAP documentation (#839) 2017-12-11 09:43:27 -08:00
Paddy
355d4f27c2
Update CHANGELOG.md 2017-12-08 14:31:05 -08:00
Paddy
e57ab59208
Update CHANGELOG.md 2017-12-08 14:30:31 -08:00
Paddy
792fa311c7
Merge pull request #832 from terraform-providers/paddy_creds_file_or_path
Fix our provider validation to allow file paths.
2017-12-08 14:28:46 -08:00
Paddy
2829f109af
Update CHANGELOG.md 2017-12-08 14:13:37 -08:00
Paddy
f5a835141d
Merge pull request #833 from terraform-providers/paddy_compute_image_ds
Add compute image data source
2017-12-08 14:11:47 -08:00
Paddy
26c53f0be7 Tweak image data source docs. 2017-12-08 14:03:33 -08:00
Paddy
f18607b849 Fix our provider validation to allow file paths.
Previously, provider credentials were _supposed_ to be able to be
specified as the file contents or the path to the file. We even had a
test for the code for this!

Then we updated the validation for the provider, and forgot to validate
filepaths as ok. So provider validation failed. And because our test
only tested the config validation, and not the provider validation, our
tests thought this was just fine still.

This fixes that oversight, accepting filepaths as valid. It also adds
tests to ensure that provider validation allows both file paths and
contents.
2017-12-08 13:57:55 -08:00
koenw
4da0e984f6 Implement in-place updates of secondary IP ranges (#811) 2017-12-08 13:11:09 -08:00
Vincent Roseberry
13eb96cf6a
Update CHANGELOG.md 2017-12-08 11:17:05 -08:00
Kit Ewbank
a4dc6cc072 Correct 'google_organization_iam_policy' to 'google_folder_organization_policy' (#830) 2017-12-08 11:16:02 -08:00
Vincent Roseberry
b88561b44f
Robust id parsing for big query table (#828) 2017-12-08 11:13:53 -08:00
Paddy
2142ea4bea
Update CHANGELOG.md 2017-12-07 14:57:31 -08:00
Vincent Roseberry
4cb7ce7d22
Update CHANGELOG.md 2017-12-07 13:13:39 -08:00
Vincent Roseberry
3bceb8f951
Add IAM support for storage bucket (#822)
* Add IAM support for storage bucket
* Add documentation
* Test multiple roles
2017-12-07 13:12:25 -08:00
Nathan McKinley
2772416b18
Update CHANGELOG.md 2017-12-06 14:59:11 -08:00
Nathan McKinley
0f53c4532f
Update CHANGELOG.md 2017-12-06 14:55:16 -08:00
Nathan McKinley
f7bdcde1c4
Add an example of use of shared VPC networking. (#810)
Brings up four projects:
  - one to host the VPC
  - two to use the VPC
  - one which is outside the VPC

This is based on the diagram in https://cloud.google.com/vpc/docs/shared-vpc and uses the names there where possible for clarity.

On one of the machines, a page is generated demonstrating that the networking is working the way you'd expect.  That machine's public IP is output by `terraform apply`.
2017-12-06 14:52:48 -08:00
Vincent Roseberry
a2b3666551
Rename kms iam test file (#827) 2017-12-06 14:39:29 -08:00
Nathan McKinley
a907d37dca
Update CHANGELOG.md 2017-12-06 14:34:18 -08:00
Nathan McKinley
114b646fae
Enable 'zone' to be specified at the provider level instead of per-resource. (#816)
- Fetch Zone attribute any place where it *was* being fetched from the schema by
	combination schema / provider-level attribute.
- Allow region to be unspecified if zone is specified.
- Switch one example to using provider-level zone as an example.
- Make provider-level zone optional.  (Individual resources will fail if they can't find a zone.)
- Add tests for getZone and getRegion.
2017-12-06 14:30:04 -08:00
Vincent Roseberry
9bebdd02f5
Make network name unique between each test run (#826)
* Make network name unique between each test run

* make fmt
2017-12-06 12:36:00 -08:00
Paddy
e8cd017aac
Merge pull request #825 from terraform-providers/paddy_fix_db_sweeper
Fix the database sweeper.
2017-12-06 12:26:23 -08:00
Paddy
04fb54a8fc I'm on a roll.
How do program.
2017-12-06 12:01:30 -08:00
Paddy
f717f878e7 Actually check if an instance is running.
Forgot the most important part of the fix!
2017-12-06 11:59:45 -08:00
Paddy
4f9687e457 Fix the database sweeper.
It's getting hung up on a database replica instance that's not running,
so it can't stop it.

To resolve, we're only trying to stop replica instances that are in a
running state. Also, I noticed a bug that we'd try to delete replicas
twice, so I fixed that, as well.
2017-12-06 11:56:17 -08:00
Philip Cristiano
54ea8bb732 examples: Fix credentials key (#821)
This is out of date and now uses `credentials` as the key
2017-12-06 10:15:42 -08:00
Vincent Roseberry
d4e297ec44
Add google_kms_key_ring_iam_policy resource and improve iam docs (#814)
* Add google_kms_key_ring_iam_policy resource and improve iam docs
* Delete iam_binding and iam_member specific doc page for key ring
2017-12-06 09:33:21 -08:00
Daniel Compton
7f703c954e Explain that compute_url_map needs self link for test.service (#818) 2017-12-05 11:26:45 -08:00
thomas jouannic
0120a84491 Include the "compute_image" datasource doc into the sidebar 2017-12-05 00:40:44 +01:00
thomas jouannic
867a9794cd Add documentation about the "compute_image" datasource 2017-12-05 00:40:44 +01:00
thomas jouannic
af3dcfde4c Include the "compute_image" datasource in the provider 2017-12-05 00:09:20 +01:00
thomas jouannic
81bb36333e Add tests for the "compute_image" datasource 2017-12-05 00:09:20 +01:00