Commit Graph

40 Commits

Author SHA1 Message Date
The Magician
f0941f7138 Remove 'Set' from fields where it doesn't do anything (#3364)
<!-- This change is generated by MagicModules. -->
Original Author: @chrisst
2019-04-02 13:58:53 -07:00
The Magician
e12b5c2a04 Terraform - AccessContextManager autogenerated operations (#3338)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-03-28 15:47:57 -07:00
The Magician
de5448d919 Add a method for converting structs -> maps when bridging MM -> TF (#3223)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-03-13 08:45:54 -07:00
The Magician
ead3dc9928 Revert "[Terraform] Autogen resource manager operations" (#3224)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-03-12 10:18:45 -07:00
The Magician
7a91ac0205 [Terraform] Autogen resource manager operations (#3071)
<!-- This change is generated by MagicModules. -->
/cc @rambleraptor
2019-03-11 14:27:03 -07:00
The Magician
fedf04325b Generate google_compute_network using Magic Modules (#3203)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2019-03-08 08:34:57 -08:00
The Magician
29c665d865 Various linter cleanups (conversions, unused, misspellings) (#2681)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
c605b0bc4b [Terraform]: Apply gofmt -s to all files managed by MM (#2676)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
The Magician
ed18fb9ea0 Remove google_project.app_engine (#2386)
<!-- This change is generated by MagicModules. -->
/cc @rileykarson
2018-12-20 17:22:22 -08:00
Dana Hoffman
8f35c8285f set app engine to empty if api not enabled 2018-10-10 13:07:10 -07:00
Paddy Carver
8f6d256f51 Fix Dana's comments, round two! 2018-10-02 23:41:31 -07:00
Paddy Carver
9ceb644460 Add google_app_engine_application resource.
Deprecate the app_engine sub-block of google_project, and create a
google_app_engine_application resource instead. Also, add some tests for
its behaviour, as well as some documentation for it.

Note that this is largely an implementation of the ideas discussed in
 #2118, except we're not using CustomizeDiff to reject deletions without
our special flag set, because CustomizeDiff apparently doesn't run on
Delete. Who knew? This leaves us rejecting the deletion at apply time,
which is less than ideal, but the only other option I see is to silently
not delete the resource, and that's... not ideal, either.

This also stops the app_engine sub-block on google_project from forcing
new when it's removed, and sets it to computed, so users can safely move
from using the sub-block to using the resource without state surgery or
deleting their entire project. This does mean it's impossible to delete
an App Engine application from a sub-block now, but seeing as that was
the same situation before, and we just papered over it by making the
project recreate itself in that situation, and people Were Not Fans of
that, I'm considering that an acceptable casualty.
2018-10-02 02:59:17 -07:00
Riley Karson
3f0088515a Add a detailed error message to google_project Create when lacking permissions. (#1910) 2018-08-21 12:42:03 -07:00
Landon Spear
f604f3eac2 Add us-west2 to app engine locations (#1867) 2018-08-13 14:23:10 -07:00
Dana Hoffman
080f6fe2e1
don't call full read when updating billing acct (#1795) 2018-07-19 13:32:29 -07:00
Paddy
6910d8277e SetPartial on app_engine. 2018-06-07 18:11:07 -07:00
Paddy
4999637399 Remove unnecessary CustomizeDiff function. 2018-06-07 18:09:51 -07:00
Paddy
16ab5bb14b Reorder fields. 2018-06-07 18:09:14 -07:00
Paddy Carver
6d040db9d8 Really fix location_id force new. 2018-06-07 15:37:30 -07:00
Paddy Carver
9ebeeda1d2 Fix forcenew for location_id. 2018-06-05 15:31:52 -07:00
Paddy Carver
d0a6b2b5b5 Make App Engine applications updatable.
No longer ForceNew when adding an App Engine application to a project,
when modifying the auth domain, modifying the serving status, or
modifying the feature settings.
2018-05-31 14:26:24 -07:00
Paddy Carver
4c40febd4b Ignore API not enabled errors when reading project
When reading a project, both App Engine and Billing would fail if
_neither_ the default project the provider was configured with nor the
project being targeted had the App Engine Admin or Billing APIs
(respectively) enabled. We didn't catch this because our source project
obviously has both enabled.

This fixes the matter by checking the error returned from each of those,
and if it looks like an API not enabled error, logging it at warning
level instead of returning it as an error, which will let the read
proceed as usual.
2018-05-22 16:59:33 -07:00
Tenorio Orta JM
9ac7acc164 Added name and project_id regex validations (#1498) (#1519) 2018-05-22 12:45:28 -07:00
Paddy
cd7364d649
Merge pull request #1503 from terraform-providers/paddy_app_engine_app
Add App Engine Application support
2018-05-18 17:12:34 -07:00
Paddy Carver
98b6323342 Fix suggestions from @ndmckinley. 2018-05-18 17:01:40 -07:00
Paddy
f78de6b76e Drop the resources we can't support.
IAP has no reasonable support policy, because PATCH is broken, and IAP
must be configured with an OAuth2 client ID and secret that belongs to
the project the app is associated with. There's no programmatic way to
create Clients. But we create the project and the app at the same time,
and we can't update because PATCH is broken. So this just drops IAP. It
also forces all our updates to ForceNew, because we can't update.

Also, adds more test coverage and docs, and fixes import by not relying
on the config for setting app engine info in state.
2018-05-17 14:47:34 -07:00
Paddy Carver
02a4259c39 Add basic test and fix bugs.
Add a test case that exercises the obvious path, and fix the some of the
bugs it exposed.
2018-05-13 22:49:26 -07:00
Paddy Carver
765d9af0a3 Beginnings of App Engine app support.
This should have all the code, but who really knows if it works or not,
tbh.
2018-05-10 15:01:22 -07:00
Nathan McKinley
11c8a52d35
Modify resourcemanager API to be more consistent with compute API. (#1454) 2018-05-08 15:49:57 -07:00
Vincent Roseberry
135f5c4144
Allow setting folder_id to empty string on google_project (#1425)
* Allow setting folder_id to empty string on google_project

* Simplify logic

* Update Changelog
2018-05-03 09:53:22 -07:00
Nathan McKinley
470d44c2ff
Wait for the billing account to be set up correctly. (#1345) 2018-04-16 14:25:01 -07:00
Vincent Roseberry
49191c5d91
Fix auto-delete default network in google_project. (#1336)
* Use projectId and enable required compute API

* Delete firewall rules before deleting default network
2018-04-16 10:25:49 -07:00
Nathan McKinley
98dbf7a758
Delete the default network created by the project. (#1316) 2018-04-10 15:23:04 -07:00
Kit Ewbank
31bc09279d
Fix nil pointer dereference updating project labels. 2018-01-27 16:55:39 -05:00
Radek Simko
c3da024d7e
Remove 'id' fields from schemas 2017-10-31 16:27:36 +00:00
Vincent Roseberry
ace5dffcc8 Remove project if it has been deleted from outside of Terraform (#466) 2017-09-26 16:55:32 -07:00
Manoj Srivastava
c1d0e716d9 Folder support: Assign/Reassign a google project to a folder. (#438)
+ Make the org_id optional when creating a project. Closes #131
+ Mark org_id as computed to allow for GCP automatically assigning the org.
+ Add an acceptance test for project creation without an organization.
+ Skip TestAccGoogleProject_createWithoutOrg if GOOGLE_ORG is set.
+ Add a folder_id to the google_project resource, optionally
  specifying the ID of the GCP folder in which the GCP project should
  live.
+ Document how one can provision a project into a folder, and added a
  sample configuration to create a project into an existing folder.
* Skip test without org if service account is used
* Support folders/* or id only for the folder id field
2017-09-22 13:03:08 -05:00
Raúl Naveiras
eee011fc99 Add support for setting labels to google_project (#383) 2017-09-14 10:39:21 -07:00
Stefan Schmidt
e6e91ecbed Allow unlinking of billing account. (#138)
* Allow unlinking of billing account. Closes #133

* Add acceptance test for unlinking the billing account.

* Just apply the resource definition without the billing account instead of setting an empty billing account.
2017-07-12 16:05:14 -07:00
Jake Champlin
66029ac431
Transfer google provider 2017-06-06 11:58:51 -04:00