Commit Graph

758 Commits

Author SHA1 Message Date
Julio Castillo ace43b75c5 Update requirements for tests 2022-12-06 00:06:29 +01:00
Julio Castillo b88f0cf8de Bring back parallel tests 2022-12-06 00:06:29 +01:00
Julio Castillo 61d5758f06 New test example for a module 2022-12-06 00:06:29 +01:00
Julio Castillo dc1fda0fd8 First tests using fast 2022-12-06 00:06:29 +01:00
Julio Castillo cc1b9fb00b New fixtures 2022-12-06 00:06:29 +01:00
Julio Castillo 8c43b72dd4 Remove stale xmark from parellel testing attempt 2022-12-06 00:06:29 +01:00
Julio Castillo 798d3a4136 Update VPN-HA module to tf1.3 (wip) 2022-11-30 10:52:24 +01:00
g-greatdevaks 1e72599986 Add test fixture for Apigee PAYG Env Node Config
Added test fixture for Apigee PAYG Environment
Node Config.

Changes committed:
- modified:   `tests/modules/apigee/fixture/test.env_only.tfvars`
2022-11-29 22:41:14 +05:30
g-greatdevaks 3037a4f519 FIX APIGEE PAYG ENVIRONMENT NODE CONFIG
Fixed the Node Configuration for Apigee PAYG
specific Environments.

Removed current_aggregate_node_count as it
is a read-only field and cannot be taken
as an input for the Apigee Environment Terraform
resource.

Changes committed:
modified:   blueprints/cloud-operations/apigee/README.md
modified:   blueprints/cloud-operations/apigee/variables.tf
modified:   modules/apigee/README.md
modified:   modules/apigee/main.tf
modified:   modules/apigee/variables.tf
modified:   tests/blueprints/cloud_operations/apigee/fixture/variables.tf
modified:   tests/modules/apigee/fixture/variables.tf
2022-11-29 17:02:24 +05:30
Miren Esnaola 8d827b692c Added endpoint attachments to Apigee module 2022-11-28 17:27:00 +01:00
apichick 48c6733615
Merge branch 'master' into adfs-fixes 2022-11-28 13:30:12 +01:00
apichick 1c1f3b714e
Merge branch 'master' into adfs-fixes 2022-11-28 12:40:07 +01:00
apichick ba17e10ebd
Merge branch 'master' into binauthz-fixes 2022-11-28 12:33:34 +01:00
Daniel Strebel 158df4c873 fix(apigee): Apigee instance doc examples 2022-11-28 09:55:51 +01:00
lcaggio d1cc0519d8
Merge branch 'master' into lcaggio/fix-20221123 2022-11-24 16:07:33 +01:00
lcaggio b1430232b8 Fix tests 2022-11-24 15:50:26 +01:00
Sebastian Kunze e4fc47a063
Normalize prefix handling in blueprints (#1003) 2022-11-23 11:09:00 +01:00
Miren Esnaola 67be16f94e ADFS blueprint fixes 2022-11-22 12:47:12 +01:00
Miren Esnaola 5ba65b99ed Binauthz blueprint fixes related to project creation 2022-11-22 12:45:43 +01:00
Julio Castillo 2cd74823b1 Generate files based on readme contents 2022-11-18 17:48:52 +01:00
Julio Castillo b2510ea4cf Fix org policies factories 2022-11-18 17:48:52 +01:00
Julio Castillo a3767cdfe2 Fix boilerplate check 2022-11-18 17:48:52 +01:00
Julio Castillo 5cfa1062cc Ensure inline README file match fixture files 2022-11-18 17:48:52 +01:00
Julio Castillo 7be3288cc7 Add tests for factory examples 2022-11-18 17:48:52 +01:00
Luca Prete 4124ef41fc
Add network tags support to the organization module (#979) 2022-11-18 15:56:28 +01:00
apichick dcfc4a18be
Merge branch 'master' into apigee 2022-11-17 16:58:00 +01:00
Julio Castillo ed84bcb631 Merge cloud function v1 and v2 tests 2022-11-17 10:32:56 +01:00
Julio Castillo bb8c62c6ec
Merge branch 'master' into apigee 2022-11-17 00:47:05 +01:00
Miren Esnaola 3501d20785 Apigee module and blueprint 2022-11-16 19:49:26 +01:00
Wiktor Niesiobędzki 5b0b1af2f6 Fix tests refering to wrong IAM resource 2022-11-16 16:44:01 +01:00
Sebastian Kunze df539b5e18
Have Squid log to /dev/stdout to stream logs to Cloud Logging (#980) 2022-11-16 14:41:26 +01:00
Ludovico Magnocavallo 5f710f21dc
Add support for serverless NEGs to ILB L7 module (#983)
* refactor neg variable for serverless

* cloudrun negs

* cloudrun negs

* serverless neg test

* re-enable forwarding rule output
2022-11-16 14:14:05 +01:00
Ludovico Magnocavallo 40a37e9328
Refactor net-ilb-l7 module for Terraform 1.3 (#974)
* wip

* wip

* minimal example test

* wip

* instance group example

* neg examples

* example tests

* tfdoc

* readme

* tested

* example

* default urlmap value, remove stale variable

* tests
2022-11-14 14:39:00 +01:00
Julio Castillo c83a7de076 Remove as_logging_destination 2022-11-12 19:24:41 +01:00
Julio Castillo c7fe6da12e Update READMEs 2022-11-11 19:28:02 +01:00
Julio Castillo 486d398c7d Update logging sink to tf1.3 in resman modules 2022-11-11 19:22:05 +01:00
Julio Castillo 61e047d95a Update folder and project org policy tests 2022-11-11 17:49:18 +01:00
Sebastian Kunze ef38d238b4
Add filtering-proxy-psc blueprint (#962) 2022-11-11 11:24:37 +01:00
Ludovico Magnocavallo a9c47681d8
Refactor vps-sc module for Terraform 1.3 (#963)
* wip

* example tests

* module tests

* streamline example

* fast

* tfdoc

* use collections.Counter in tests
2022-11-10 19:34:45 +01:00
Aleksandr Averbukh aae6ab132c Add tests for org policy custom constraints 2022-11-08 18:13:49 +01:00
Ludo 0d55de6ca9 switch to tfvars based tests 2022-11-06 08:44:13 +01:00
Ludo 6e4d8a46a1 remove redundant extra_files parameter in tfvars tests 2022-11-06 08:39:53 +01:00
Wiktor Niesiobędzki 0d80ad3f29
cloud-functions v2 - fix reference to bucket_name (#951)
* Fix reference to bucket when no bucket_config is provided

* Copy tests to check v2 cloud-functions
2022-11-06 08:32:38 +01:00
Ludovico Magnocavallo d655833c0c
Add a pytest fixture to convert tfvars to yaml (#950)
* wip

* conftest and tests

* backport cross-module implementation test
2022-11-04 18:37:23 +01:00
Ludovico Magnocavallo fae5654e33
Refactor VPC firewall module for Terraform 1.3 (#949)
* module and module tests/examples

* align blueprints and fast

* fix null ranges

* make ports optional

* tfdoc

* make rules optional defaulting to all protocols

* review comments

* last round of comments

* invert precedence of template variables

* add option to disable all default rules

* add option to disable all default rules

* split egress/ingress

* tests

* fix tests
2022-11-04 13:56:07 +01:00
Julio Castillo d91a0835f7 Remove organization-policy module (now included in the resman modules) 2022-11-03 12:35:50 +01:00
Julio Castillo ecda25d2bc Update test requirements 2022-11-03 12:20:26 +01:00
Julio Castillo 5211466816 Bring back deleted assert 2022-11-03 12:18:37 +01:00
Julio Castillo 3e18575fad Add factory support for new org policies 2022-11-03 11:41:53 +01:00
Julio Castillo 8564fbcb93 Bump tftest and improve dns tests 2022-11-02 18:22:36 +01:00
Ludovico Magnocavallo 0563260678
Refactor ILB module for Terraform 1.3 (#941)
* wip

* wip

* wip

* backport health check to compute-mig

* align blueprints and fast

* fix blueprints

* tfdoc
2022-11-02 18:05:20 +01:00
Julio Castillo 38e761c3a8 Add test that ensures the implementation of org policies is consistent 2022-11-02 10:41:38 +01:00
Ludovico Magnocavallo 8c51a2a386
Enable org policy service and add README notice to modules (#936)
* enable org policy service and add README notice to modules

* fix tests
2022-11-01 14:25:07 +01:00
Ludovico Magnocavallo a30c186f1f
Refactor compute-mig module for Terraform 1.3 (#931)
* wip: autoscaler

* wip: fix autoscaler

* wip: health check

* wip: untested

* wip: tests and examples missing

* wip: examples

* wip: consumers

* blueprint tests

* fast
2022-11-01 09:38:59 +01:00
Julio Castillo 5b9b6b7739 Remove debugging libraries 2022-10-28 18:10:28 +02:00
Julio Castillo f44f4a74dc Fix module tests 2022-10-28 17:49:44 +02:00
Julio Castillo 798fd6cc54
Merge branch 'master' into kmucha555/f_apigee_env_deployment 2022-10-27 21:46:31 +02:00
Krzysztof Mucha 74b17703cd Add support for deployment type and api proxy type for Apigee organization 2022-10-27 21:04:50 +02:00
Ludovico Magnocavallo e20de3b86a
fix service account create (#923) 2022-10-27 15:12:04 +00:00
Ludovico Magnocavallo ed9fd6b08d
Align documentation, move glb blueprint (#921)
* aling documentation, move glb blueprint

* modules README, sort modules

* reorder modules

* fix bp links

* fix moved blueprint test

* use a single cloud shell image in the repo
2022-10-26 14:31:04 +02:00
apichick d9ccf04221
Added managed_prometheus to features (#906)
* Added managed_prometheus monitoring_config

* fix module

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-10-25 21:18:50 +00:00
Aleksandr Averbukh fbbded31e9 Merge branch 'master' into averbuks-tfe-oidc 2022-10-25 20:54:54 +02:00
Julio Castillo 19db273963 Add tests for dns routing policies 2022-10-25 15:35:29 +02:00
Aleksandr Averbukh a837e4361a Fix tests 2022-10-25 13:20:56 +02:00
Aleksandr Averbukh cadaba8cac Add missing newlines 2022-10-25 13:07:05 +02:00
Aleksandr Averbukh 991cd1324d feat: TFE OIDC with GCP WIF blueprint added. 2022-10-25 13:04:27 +02:00
Ludovico Magnocavallo fc7bf40e69
Initial replacement for CI/CD stage (#903)
* github extra stage

* remove original cicd stage

* allow setting commit attributes via variabes

* remove reference to deleted stage

* optional repo creation, documentation
2022-10-23 19:52:45 +02:00
marcjwo 5ef93e2829
Marcwo/bqfactory (#884)
* adding the bq factory

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-10-18 17:07:15 +02:00
Giovanni Baratta ca1dc3659a
Add auto_delete and instance_redistribution_type to compute-vm and compute-mig modules. (#890)
* Add auto_delete parameter to compute-vm module

* Add instance_redistribution_type in compute-mig module
2022-10-16 21:19:46 +02:00
Ludovico Magnocavallo b39abd2389
Revert "Improve handling of tf plugin cache in tests (#885)" (#886)
This reverts commit af447e34e6.
2022-10-14 19:35:30 +02:00
Ludovico Magnocavallo af447e34e6
Improve handling of tf plugin cache in tests (#885)
* disable tf cache in CI

* re-enable cache

* try a different approach
2022-10-14 19:14:47 +02:00
Ludovico Magnocavallo 4b798fb34d
Run tests in parallel using `pytest-xdist` (#881)
* test terraform cache

* try pytest-xdist

* revert cache changes

* extend to other jobs

* change dist, bump processes to 4

* revert

* mark tests

* run init to prime providers cache

* prime providers cache

* prime providers cache for all jobs

* add local provider to versions

* remove leftover code
2022-10-14 14:56:16 +02:00
Ludovico Magnocavallo 4fa1dc431d
Refactor net-vpc module for Terraform 1.3 (#880)
* module tests pass

* doc examples

* refactor blueprints

* fast stages

* fix comment typo

* fix module factory test
2022-10-14 11:02:33 +02:00
Ludovico Magnocavallo bc8f0c90b7
fix autoscaling block (#877)
* fix autoscaling block

* invert autoscaling block condition

* add autoscaling test
2022-10-12 16:44:47 +02:00
Ludovico Magnocavallo e8056577ce
Refactor GKE nodepool and blueprints (#875)
* first shot, untested

* example tests working

* module tests

* work on gke blueprints

* multitenant fleet doc examples

* fix gke hub doc examples

* blueprint tests

* move master range to vpc config

* fast stage 3 gke test

* tfdoc

* bump provider versions

* and bump provider again to latest
2022-10-12 12:59:36 +02:00
Simone Ruffilli 24c3ffe66b
FAST: Separate network environment (#566) 2022-10-10 11:50:07 +02:00
Ludovico Magnocavallo 16822e94ab
Refactor GKE module for Terraform 1.3 (#868)
* wip

* module and module tests

* doc examples

* gke-hub doc examples

* gke blueprints

* hub and spoke peering blueprint

* Rename some keys of some optional objects

* Fix readme

Co-authored-by: Julio Castillo <jccb@google.com>
2022-10-10 09:38:21 +02:00
Ludovico Magnocavallo 78d1a09aeb
Enable FAST 00-cicd provider test (#865)
* enable fast 00-cicd provider test

* don't overwrite version files in CI

* change provider pinning for all tests in CI file
2022-10-07 13:20:56 +02:00
Ludovico Magnocavallo a0171b2c49
Bump terraform required version (#864)
* bump terraform required version

* fix test

* debug test

* debug test

* disable test

* fix CI file, bump terraform action version
2022-10-07 12:51:56 +02:00
Ludovico Magnocavallo e66340c4db
Refactor compute-vm for Terraform 1.3 (#860)
* refactor compute-vm for Terraform 1.3

* bump Terraform version in CI tests config

* fix optional null handling (ht jccb)

* tfdoc

* update blueprints

* align fast

* align README examples
2022-10-07 10:53:53 +02:00
Ludovico Magnocavallo fcf71b983e
refactor net-address modules for 1.3 (#840) 2022-09-28 14:10:05 +02:00
Julio Castillo ac835b6d50 Update terraform version 2022-09-28 11:28:05 +02:00
lcaggio bf5f30e0bd Fix test. 2022-09-27 12:55:26 +02:00
lcaggio 78d54d13ba
Merge branch 'master' into lcaggio/composer-2 2022-09-26 14:30:33 +02:00
Krzysiek Mucha 6e90af2bc3
Add support for service_label property in internal load balancer (#834)
Co-authored-by: Krzysztof Mucha <kmuch@softserveinc.com>
2022-09-21 23:30:35 +02:00
lcaggio 9177c151ec
Merge branch 'master' into lcaggio/composer-2 2022-09-21 15:05:07 +02:00
Natalia Strelkova d6c6ae943e regional MySQL DBs - automatic backup conf 2022-09-21 08:14:24 +00:00
lcaggio 0704a0ad30 Fixes based on comments. 2022-09-20 12:26:57 +02:00
lcaggio a88447d10f Merge branch 'master' into lcaggio/composer-2 2022-09-20 11:49:20 +02:00
lcaggio f28dc5cb04 Fix tests 2022-09-20 10:51:11 +02:00
lcaggio 495a5bbfff Add Artifact registry Service Identity SA creation. 2022-09-20 10:36:12 +02:00
lcaggio 5968661e8d First commit 2022-09-19 10:34:46 +02:00
Julio Castillo 7a4298783a Removed old and unused modules 2022-09-15 16:50:11 +02:00
Ludovico Magnocavallo 9400eed2bf
Add documentation example test for pf (#813)
* Add documentation example test for pf

* skip tmpdir for examples
2022-09-14 14:34:30 +02:00
Julio Castillo 7e9173d35d Create fully recursive e2e test runner 2022-09-12 13:58:11 +02:00
Ludovico Magnocavallo d6482c7b38 addmissing boilerplate 2022-09-12 11:59:30 +02:00
Ludovico Magnocavallo 5cdcc2a767 add gke multitenant test 2022-09-12 11:58:00 +02:00
Ludovico Magnocavallo aea24f24f8 fix blueprint tests 2022-09-12 11:54:18 +02:00
Julio Castillo 72da12e377 Rename gke-serverless to gke and add test for fast gke stage 2022-09-12 09:56:25 +02:00
Julio Castillo 269894e92b Update all internal links examples -> blueprints 2022-09-09 16:39:01 +02:00
Julio Castillo a248602827 Rename examples folder to blueprints 2022-09-09 16:38:43 +02:00
Ludovico Magnocavallo 4d0edefe41
Merge branch 'master' into lcaggio/cloudsql-shared 2022-09-09 07:44:25 +01:00
lcaggio b712628151 Merge branch 'master' into lcaggio/cloudsql-shared 2022-09-08 17:47:58 +02:00
lcaggio 4da440bc4f First commit. 2022-09-08 17:47:20 +02:00
Julio Castillo 3ffdd0dd43 More examples for multitenant-fleet example 2022-09-07 16:31:42 +02:00
Julio Castillo 5e1974b9c7 Merge branch 'master' into fast/gke2 2022-09-07 13:39:17 +02:00
Julio Castillo 70b03b50c8 Remove duplicate path component from doc_examples test names. 2022-09-07 11:24:11 +02:00
Julio Castillo a866182161 Test documentation examples in the examples/ folder 2022-09-06 17:46:09 +02:00
lcaggio 49baa5da30 Fix YAML 2022-08-31 16:54:30 +02:00
lcaggio 7509752caf First commit. 2022-08-31 16:25:29 +02:00
lcaggio a253446406 First commit 2022-08-31 11:14:18 +02:00
Julio Castillo 0e65021802 Merge remote-tracking branch 'origin/master' into fast/gke2 2022-08-30 20:06:47 +02:00
Taneli Leppä c798625868
net-glb: Added support for regional external HTTP(s) load balancing. (#775) 2022-08-27 22:58:11 +02:00
Julio Castillo 52e7e0517a Merge branch 'master' into fast/gke2 2022-08-24 15:37:15 +02:00
Stefan Tomm 5b7f6ab91a
fix data-platform-dev folder in stage 03-data-platform (#774) 2022-08-16 09:36:24 +02:00
Ludovico Magnocavallo ea72c5bc29
Merge branch 'master' into fast/gke2 2022-08-10 17:18:49 +02:00
lcaggio c0e17f4732
Improve Data Playground example (#738)
* First commit

* Fix README

* Improve READMEs

* Implement PR comments.

* Fix

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-08-09 15:56:39 +02:00
Ludovico Magnocavallo ed4d59a8b1
refactor cloud run module (#773) 2022-08-09 14:06:30 +02:00
Ludovico Magnocavallo 86d73ee686 Merge remote-tracking branch 'origin/master' into fast/gke2 2022-08-09 14:04:46 +02:00
Alef Reis 97104c0098
Add support to a public access to cloudsql-instance (#754)
* feat: add support to a public access to cloudsql-instance

* doc: update cloudsql-instance doc changing the ipv4_enabled parameter description

* test: fix assertion test to ipv4_enabled
2022-08-09 13:42:42 +02:00
Miren Esnaola 5c9f336441 Example of a multi-cluster mesh on GKE configuring managed control plane using the Fleet API 2022-08-08 16:32:52 +02:00
Ludovico Magnocavallo 7374c82dd6
Merge branch 'master' into fast/gke2 2022-08-06 08:57:53 +00:00
Ludovico Magnocavallo 03bf8b6e32
Allow interpolating SAs in project factory subnet IAM bindings (#767) 2022-08-04 10:39:28 +02:00
Ludovico Magnocavallo 0bec03b0a0 Merge remote-tracking branch 'origin/master' into fast/gke2 2022-08-03 20:42:09 +02:00
Ludovico Magnocavallo 9b6262de41
FAST: move region trigrams to a variable in network stages (#765)
* add region trigram variable

* debug check documentation

* fix linting
2022-08-03 11:36:27 +02:00
Ludovico Magnocavallo 531acf3476 Merge remote-tracking branch 'origin/master' into fast/gke2 2022-08-02 19:15:07 +02:00
Miren Esnaola 0920ac3877 Shared vpc service fixes 2022-08-02 18:21:08 +02:00
Ludovico Magnocavallo 45517045a2
Merge branch 'master' into fast/gke2 2022-07-30 13:53:48 +00:00
Ludovico Magnocavallo 3778d37d18
Fix gke hub module features condition (#761)
* fix features condition

* remove test output

* fix example tests

* fix module tests
2022-07-30 15:53:05 +02:00
Ludovico Magnocavallo 366f28a519 Merge remote-tracking branch 'origin/master' into fast/gke2 2022-07-29 10:57:25 +02:00
Ludovico Magnocavallo b20ab65756
GKE hub module refactor (#760)
GKE hub module refactor 
Co-authored-by: Daniel Marzini <danielmarzini@users.noreply.github.com>
Co-authored-by: Miren Esnaola <mirene@google.com>
2022-07-29 08:39:25 +02:00
Ludovico Magnocavallo 5e0ab57f3a
Add support for IAM bindings on service accounts to project factory (#753)
* Fix #748

* fix linting

* remove trailing whitespace

* update FAST pf
2022-07-21 15:13:39 +02:00
Miren Esnaola f153ab4614 Added dependency on google_compute_shared_vpc_host_project.shared_vpc_host to project_id output and modified tests 2022-07-21 14:11:21 +02:00
Miren Esnaola 824353a42b Added servicemesh feature to GKE hub and included fleet robot service account in projectmodule 2022-07-15 17:58:39 +02:00
Julio Castillo 07c5da4283 Fix tests 2022-07-12 12:39:00 +02:00
Julio Castillo 93acd595fe Merge branch 'master' into fast/gke2 2022-07-12 12:20:06 +02:00
Julio Castillo 25955b158a Merge branch 'master' into fast/gke2 2022-07-12 12:16:04 +02:00
Ludovico Magnocavallo 1abfdacd56
Avoid setting empty IAM binding in subnet factory (#731)
* avoid setting empty IAM binding in subnet factory

* fix tests
2022-07-11 21:11:52 +02:00
Miren Esnaola 68e56058ab AD FS example 2022-07-11 09:52:35 +02:00
Ludovico Magnocavallo 263cf96d81
fix #728 (#729) 2022-07-10 11:34:41 +02:00
Ayman Farhat 54d805dac0
New example for a data playground Terraform setup (#655)
* Initial commit for adding a sample data playground

* Update README

* Add license boilerplate to variables.tf

* Apply linting rules

* rename var to ptoject_id, create prefix var, remove extra zone var

* Adds the option for using an existing project by default

* Bundles all VPC related variables in a single vpc_config variable of type object

* Add encryption_key usage example + policy_boolean

* Add tests, apply linting and todos for upcoming PRs

* Update variables in readme

* Fix formatting via fmt

* Rename test dir to fix module conflict issue

* Add high level diagram and sort vars/outputs by alphabetical

* Modify diagram and update main README under data examples with link / summary

* Line break

* Use png in diagram

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-07-10 09:27:18 +02:00
Aleksandr Averbukh 9c942a68d6 More experimental definition to a separate file, so CICD does not rewrite it with default-versions.tf 2022-07-08 15:19:47 +02:00
Aleksandr Averbukh b8fae0fbf0 Update fixtures variable type to follow the module experimental feature. 2022-07-08 14:55:28 +02:00
Aleksandr Averbukh 9d7ce78df2 Enable experimental feature for the test fixture 2022-07-08 12:47:05 +02:00
Aleksandr Averbukh 63ac142005 Simplified module interface, proper data structure for policies 2022-07-08 12:24:18 +02:00
Aleksandr Averbukh a34983b2e9 OrgPolicy module (factory) using new org-policy API, #698 2022-07-06 19:41:18 +02:00
Ludovico Magnocavallo ee7a615a58 Merge remote-tracking branch 'origin/master' into fast/gke2 2022-06-29 17:06:55 +02:00
Julio Castillo cf76744f95 Fix addons for autopilot clusters, add tests for gke-cluster.
Fixes second part of #702
2022-06-28 12:24:17 +02:00
Julio Castillo b6f0c1ae2b Add `consumer_accept_list` to `apigee-x-instance`
Fixes #701
2022-06-27 10:01:31 +02:00
Ludovico Magnocavallo dfb447a2c4
Merge branch 'master' into fast/gke2 2022-06-23 13:50:28 +02:00
Ludovico Magnocavallo ed4b301a17 align subnets between vpn and peering network stages 2022-06-23 09:05:20 +02:00
Ludovico Magnocavallo 666d8a469c
Merge branch 'master' into fast/gke2 2022-06-23 08:34:09 +02:00
Lorenzo Caggioni ceb611bb81 Remove custom role and rely on conditions. 2022-06-23 07:04:35 +02:00
lcaggio 5c653638bc
Merge branch 'master' into lcaggio/data-p-200622 2022-06-22 16:13:28 +02:00
Ludovico Magnocavallo 4f05d2748e
Merge branch 'master' into lcaggio/fix-readme-20220620 2022-06-21 06:55:59 +02:00
Lorenzo Caggioni bcfa324825 Fix test 2022-06-20 22:39:29 +02:00
Lorenzo Caggioni 7625773dea Fix tests 2022-06-20 22:05:22 +02:00
Lorenzo Caggioni 41d8847a60 Fix test 2022-06-20 17:56:36 +02:00
Ludovico Magnocavallo 3227bd13ce
Merge branch 'master' into binauthz 2022-06-18 08:54:16 +02:00
Miren Esnaola 2e9fdea1a4 Binary authorization module and example 2022-06-17 16:09:12 +02:00
Ludovico Magnocavallo 943d6d431e
Revert "Binary authorization module and example" (#686) 2022-06-17 12:32:42 +02:00
Julio Castillo 4c72ee701b
Merge branch 'master' into binauthz 2022-06-17 11:17:36 +02:00
Ludovico Magnocavallo 528219bbf3 fix stage1 tests 2022-06-16 22:03:08 +02:00
Miren Esnaola 073196c56e Binary authorization module and example 2022-06-16 12:29:26 +02:00
Julio Castillo f9b808b4bc Fix permissions and update NVA and peering net stages for gke 2022-06-08 11:42:04 +02:00
Julio Castillo 96b01cf68c Fix networking-vpn tests 2022-06-08 11:42:04 +02:00
Ludovico Magnocavallo 44ae2671b0
CI/CD support for Source Repository and Cloud Build (#669)
* add id to outputs

* initial cloud build implementation for stage 0

* comments

* stage 0

* stage 1, untested

* add support for IAM and CB triggers to source repository module

* refactor stage 0 to use sourcerepo module

* refactor stage 1 to use sourcerepo module

* file descriptions

* fix gitlab pipeline
2022-06-08 11:34:08 +02:00
Miren Esnaola 9f5d59748d Added example with GLB and Cloud Armor 2022-05-26 15:32:11 +02:00
Ludovico Magnocavallo ff25809020
Fix tfdoc parsing on newllines in outputs (#649)
* fix

* use the right (ugly) Python formatter

* boilerplate on new file

* and do the actual tfdoc run on the original outputs file
2022-05-05 14:43:38 +02:00
Julio Castillo 4e83b5003b
Merge branch 'master' into sql-multi-region 2022-05-03 17:46:18 +02:00
Ludovico Magnocavallo 4114f9995f
Change hub and spoke VPN example to use VPN HA (#643)
* missing outputs and diagram

* fix names and outputs, update diagram

* fix vm name in example

* tfdoc files on

* fix test

* address comments
2022-05-02 09:01:05 +02:00
Lorenzo Caggioni 04bc505b70 Fix roles 2022-04-13 16:05:54 +02:00
Lorenzo Caggioni 15e5904966 Add example test 2022-04-13 15:08:37 +02:00
Julio Castillo 952e18d0f1 Add sqladmin to project jit_si and fix some documentation 2022-04-13 11:05:55 +02:00
Julio Castillo 1f254880b9 Add sqladmin to project jit_si and fix some documentation 2022-04-13 00:22:54 +02:00
Ludovico Magnocavallo 725f7effce
Initial MVP for CI/CD (#608)
* preliminary support for wif in stage 0

* IAM wif role

* IAM wif role TODO

* add support for external SA IAM to SA module

* add name output to SA module

* separate cicd SA

* tfdoc

* GITLAB principal (untested)

* make GCS name output static

* outputs bucket

* fix stage 1 test

* tweak outputs

* tfdoc

* move wif_pool to automation variable

* add support for top-level and repository providers

* add missing boilerplate

* fix branchless principal

* initial workflow

* symlink provider template in stages

* remove service accounts from stage 0 cicd tfvars

* add cicd interface variable to resman stage

* fix cicd variable in resman stage

* better condition on outputs_location

* fix last change

* change outputs_location type

* revert outputs_location change

* split outputs in stage 0

* update ci/cd temporary notes

* rename additive IAM resource in SA module

* split outputs in stage 1

* remove unused locals

* fix stage 1 tests

* tfdoc

* Upload action files to outputs_bucket

* Fix tests and README

* rename template, streamline outputs

* local templates and gcs output for all stage 2

* add workflows to local output files

* Use lowercase WIF providers everywhere

* Bring back suffix for workflow files

* Remove unused files

* Update READMEs

* preliminary CI/CD implementation for stage 1

* fix stage 1

* stage 1 cicd

* tfdoc

* fix tests

* readme and links for cicd and wif

* refactor wif providers

* refactor cicd for stage 1

* fix stage 1

* wif org policies

* split identity provider configuration from cicd

* add type attribute to cicd repositories

* valid cicd repositories have a workflow template

* refactor stage 01

* fix stage 01 tests

* minimal CI/CD documentation

* better check_links error reporting

* fix links

* Added Gitlab specific configurations

Set the default issuer_uri for Gitlab. Added allowed audiences to OIDC configuration.

* Fixed TF formatting in identity providers.

* Changing identity provider audience to null

Changing identity provider audience to default to null.

* add instructions for renaming workflows

* address Julio's comments

Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: alexmeissner <alexmeissner@google.com>
2022-04-12 08:17:27 +02:00
Taneli Leppä d79dd7ab28 Added example of SQL Server always on groups. 2022-04-07 17:38:08 +02:00
Daniel Strebel 63097dd224 Allow multiple CIDR blocks in the ip_range parameter and rely on the Google API for validation 2022-04-07 15:08:24 +02:00
Julio Castillo 60e7da8614 Silence linter 2022-04-05 15:38:44 +02:00
Julio Castillo 5cbde0a32e Allow tests to run from root directory 2022-04-05 14:30:26 +02:00
Luca Prete cd0f09b748
[#593] Add HTTP ILB module (net-ilb-l7) 2022-04-05 08:58:55 +02:00
lcaggio ec3832760d
Merge branch 'master' into lcaggio/dp-dc-policy-tag 2022-04-04 15:38:52 +02:00
Lorenzo Caggioni 67b1715ecc Fix data_eng_principals logging role. 2022-04-04 09:16:55 +02:00
Lorenzo Caggioni 3d8c9a4b52 Fix test. 2022-04-01 18:52:30 +02:00
Lorenzo Caggioni 98a9ba2c82 Fix example test 2022-04-01 18:46:51 +02:00
Daniel Strebel 59bb09b03e Add billing_type for Apigee Organization Module 2022-03-31 08:47:34 +02:00
Ludovico Magnocavallo fa84a888c2 rename new cloud ops tests 2022-03-17 16:41:11 +01:00
Ludovico Magnocavallo fef3ed8c93
Fix missing service networking identity in project, PSA (#585)
* test

* test

* test

* fix

* tfdoc

* fix tests

* fix tests
2022-03-17 14:29:28 +01:00
Ludovico Magnocavallo a22cf80b60
Fix PSA (#584)
* Fix PSA

* fix typo

* fix vpn/peering diff

* output filename on failed checksum test
2022-03-17 11:09:02 +01:00
averbukh 6c2c9a3833 Fix tests 2022-03-16 00:57:05 +01:00
averbukh e98de6c453 Unmanaged GCE instances TCP healthchecker 2022-03-15 23:50:57 +01:00
Luca Prete 7c3d9beced
[#576] net-vpc - Add the ability to export/import custom routes throu… (#577) 2022-03-11 14:40:44 +01:00
Ludovico Magnocavallo ecadebe90b
Add support for IAM additive to folder module (#580) 2022-03-11 09:46:32 +01:00
Aleksandr Averbukh 7f2d8c85f2 Fix interconnect_attachment_direct tests 2022-03-08 09:36:27 +01:00
Aleksandr Averbukh 96416995c2 Fix interconnect_attachment_direct tests 2022-03-08 09:34:47 +01:00
Aleksandr Averbukh d598e14d3f Fix interconnect_attachment_direct tests 2022-03-08 09:24:37 +01:00
Aleksandr Averbukh a9981d6949 Remove module tests, datasource based module cannot be tested with TFplan 2022-03-07 22:49:54 +01:00
Aleksandr Averbukh 8e1beb0938 Add module for retrieving all projects/folders under a specific parent (recursively). 2022-03-07 22:02:18 +01:00
Julio Castillo a988107006 Compare md5 sums too 2022-03-01 14:36:40 +01:00
Julio Castillo a8dd5ae7cc Add test to ensure parity between 02-networking-[vpn/peering] 2022-03-01 14:36:40 +01:00
Daniel Marzini e372b50d19
Add GKE Hub module to fabric (#540)
* GKE Hub initial PR commit

* variable management adjust

* comments, fixes and alphabetically ordered variables

* Update README.md

* Update README.md

* Update README.md

* fix test

* resources vs modules

still needs some love

* remove modules usage

* comments, readme update and output

* adjusting outputs and README

* fix README.md

* fix README

* adjusted based on comments

still need some love in the google_gke_hub_feature_membership variables management

* types and variable management

* optionally enable required api

* Update README.md

* reorder locals and use standard formatting

* Don't enable services from modules

* Use self links for member clusters

* Update readme

* members_clusters back to map

@juliocc let's talk about this cause we saw it together in our call and if I change it to a list than the other resources are not going to work, they need location there too.

* Forcing null feature to false due to a bug in provider

If a block is set to null the provider will crash with a "panic: interface conversion: interface {} is nil, not map[string]interface {}" a PR will follow

* Readme update

* Readme.md update

* Update README.md

* bring back tolist, WIP

* Update main.tf

* Readme.md update

* Update README.md

* Update main.tf

* Update main.tf

* Add id and self_links output to gke-cluster

* Use try and make all member feature blocks dynamic/optional

* Change member clusters to map

* Add gke-hub tests

* Address PR comments

* Update gke-hub readme

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Julio Castillo <jccb@google.com>
2022-02-28 12:40:48 +01:00
Simone Ruffilli fb90500adc
FAST: add 02-networking-peering stage. (#561)
* Networking with peering - initial commit

* README and tests

* Linter fixes

* Linter fixes

* Linter fixes

* Update README.md

* split out vpn/peering in separate files so the rest is identical

* fix dns for vpn and peering

* update tfdoc to support multiple outputs/variables files

* add peering variables

* update tfdoc for modules

* make it easier to spot errored docs

* fix doc

* yapf

* fix permadiff in firewall module source ranges

* FAST: Networking: DNS Fixes

* FAST: ability to toggle on-prem vpn creation

* FAST: fix outputs

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-02-28 12:27:27 +01:00
Simone Ruffilli 0d08c7d56a Re-aligning PF vars post varpocalypse 2022-02-27 19:04:47 +01:00
Julio Castillo 4194cae448 Fix resman tests 2022-02-25 12:29:11 +01:00
Simone Ruffilli dc3a2ad7be Fix tests on stages 2022-02-24 15:05:18 +01:00
apichick 00473fda64 API gateway module and example that creates a multi-region deployment for API gateway 2022-02-22 12:00:44 +01:00
Ludovico Magnocavallo 0b5ed8b7ef
Add support for resource management tags and tag bindings (#552)
* organization module

* folder module

* project module

* fix project binding

* use id instead of name for references

* kms module

* compute-vm

* fix compute-vm
2022-02-20 11:14:18 +01:00
Lorenzo Caggioni ed844cdedf Add tests 2022-02-18 00:58:14 +01:00
Simone Ruffilli 1d187ddd23
FAST: PF example implementation changed to dev. Tests updated (#544)
* FAST: PF example implementation changed to dev. Tests updated
* FAST: simplified teams folder names
2022-02-15 12:22:08 +01:00
Ludovico Magnocavallo c91802f501
Change psa type in net-vpc, fix psa in fast net stages (#545)
* change psn type in net-vpc, fix psa in fast net stages

* fix doc examples

* psn ---> psa
2022-02-15 09:24:27 +01:00
Lorenzo Caggioni bd1461ed61 Fix roles and tests. 2022-02-12 15:52:34 +01:00
Lorenzo Caggioni eb2e510518 Fix IAM and tests 2022-02-12 10:10:05 +01:00
Lorenzo Caggioni 2d9d52fd8d Fix vpc name and tests 2022-02-10 09:48:51 +01:00
Ludovico Magnocavallo a64e7a8e41
Merge branch 'master' into fast-dev-dp 2022-02-09 14:37:28 +01:00
Ludovico Magnocavallo f4ef54da34
Avoid nested tmp dirs in doc example tests (#528) 2022-02-09 12:53:17 +01:00
Ludovico Magnocavallo 40cb46e1cc
Add support for Shared VPC service IAM to project module (#525)
* project module changes

* fix examples

* add comments in module code

* re-enable nullable on svpc variables

* project factory

* Tests still failing (#526)

* fix pf

* tfdoc

* pf test boilerplate

Co-authored-by: Simone Ruffilli <sruffilli@google.com>
2022-02-09 11:06:51 +01:00
lcaggio 042266f28c
Merge branch 'master' into fast-dev-dp 2022-02-08 09:02:48 +01:00
Ludovico Magnocavallo c2a2b799b9
Remove older GCS to BQ example (#523)
* remove older GCS to BQ example

* remove tests
2022-02-08 07:30:03 +01:00
Lorenzo Caggioni 97b9dae7e1 Fix misconfiguration and tests. 2022-02-07 23:16:47 +01:00
Lorenzo Caggioni 072fa3d9fd Fix test. 2022-02-07 08:25:16 +01:00
Lorenzo Caggioni d692c57f20 Fix test module location, for real. 2022-02-05 09:30:40 +01:00
Lorenzo Caggioni 1c3f6270fb Fix test module location. 2022-02-05 09:23:14 +01:00
Lorenzo Caggioni 30b18374fb Replace DP example tests with the new one. 2022-02-05 09:11:03 +01:00
lcaggio 16a36b2452
Merge branch 'master' into fast-dev-dp 2022-02-04 13:55:20 +01:00
Simone Ruffilli 0cef15301b
Rename 02-networking to 02-networking-vpn (#492) 2022-02-04 11:03:37 +01:00
lcaggio c5df7f260a
Merge branch 'master' into fast-dev-dp 2022-02-03 23:22:36 +01:00
Luca Prete 9d81e29be7
FAST - Add 02-networking-nva stage 2022-02-03 20:30:56 +01:00
Lorenzo Caggioni 93fdcbf335 fix tests 2022-02-03 17:52:02 +01:00
Lorenzo Caggioni fb851a5afa fix tests 2022-02-03 17:45:33 +01:00
Ludovico Magnocavallo dd32f2f211
Merge branch 'master' into fast-dev-dp 2022-02-02 19:32:55 +01:00
Saurabh Shivgunde 4e86fbcd04
Add ip_range variable to apigee-x-instance module (#485)
* Add ip_range variable for apigee-x-instance module

* Add variable definition and validation for ip_range

* Update the validation rule for ip_range variable
2022-02-02 19:32:26 +01:00
lcaggio fafbe5c1c8
Merge branch 'master' into fast-dev-dp 2022-02-02 16:58:18 +01:00
Lorenzo Caggioni b2cb55a58f Fix test, for real? :-) 2022-02-02 16:55:19 +01:00
Lorenzo Caggioni a597679349 Fix test error 2022-02-02 16:41:28 +01:00
Elia e279818b55
M4CE (v5) Examples (#413)
* M4CE (v5) Examples

* vm-migration new parent folder

* New vm-migration section

* Updated variables description

* Updated variables description

* Fixed broken link

* Updated variables description

* Fix lines spacing

* Added output variable

* Updated Variables description

* New variables layout

* fixed new line

* M4CE (v5) Examples

* vm-migration new parent folder

* New vm-migration section

* Updated variables description

* Updated variables description

* Fixed broken link

* Updated variables description

* Fix lines spacing

* Added output variable

* Updated Variables description

* New variables layout

* fixed new line

* added test

* move test on new folder

* Updated variables order and description

* Added output file

* vm-migration example tests

* Updated output description

* Updated output description

* Fixed Typo

Co-authored-by: Simone Ruffilli <sruffilli@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-02-02 15:21:10 +01:00
Julio Castillo 5396735bc6
Changes to gcs to bq least privilege example (#447)
* Changes to gcs to bq least privilege example

* Fix 'try' on encryption variables

* Fix roles

* Fix tests

* Use templatefile in output variables

* Remove FIXME

* Fix tests

* Changes to gcs to bq least privilege example

* Fix 'try' on encryption variables

* Fix roles

* Fix tests

* Use templatefile in output variables

* Remove FIXME

* Fix tests

* Merge branch 'jccb/gcs-to-bq-changes' of https://github.com/GoogleCloudPlatform/cloud-foundation-fabric into jccb/gcs-to-bq-changes

* fix readme and template

* fix readme

* Update FIXME.

Co-authored-by: Lorenzo Caggioni <lorenzo.caggioni@gmail.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-02-02 08:32:59 +01:00
Lorenzo Caggioni a193dcc0b4 Add test. 2022-02-01 10:41:27 +01:00
Simone Ruffilli abb6b50a46
Add periods at the end of each description field where missing (#478) 2022-01-31 10:45:34 +01:00
Julio Castillo e2abd772f2
Update resman modules (#475)
* Make logging sinks in different resources use the same API

* Split resman modules in multiple files. Add nullables where applicable
2022-01-29 19:35:33 +01:00
Julio Castillo 56da26620a Give meaningful names to tests derived from examples. 2022-01-28 21:34:15 +01:00
Julio Castillo cf423998f0 Align tftest syntax with tdoc
This commit changes the token separator for inline examples from a
semicolon to a space
2022-01-28 21:34:15 +01:00
Luca Prete c30d29bf9b
[#455] net-glb: add support for null health_checks_config_defaults (#456) 2022-01-25 14:06:02 +01:00
lcaggio a97c606253
Support service dependencies for crypto key bindings in project module (#443)
* Support services that require crypto/decrypt role on robot service accounts

* delete test and upload refactored implementation

* fix duplicate key on dependent services, add tests

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-01-22 08:32:13 +01:00
Julio Castillo 3f798d3032
Fix failing tests (#442)
* Fix failing tests

* useless try

* try using job dependencies

* retry

* revert

* disable concurrency, try general config/env

* use in-job config

* don't use home var

* individual configs

* remove multiline

* useless tests

* one more try to figure it out

* use the right home path

* multiline

* fix typo

* remove unused files, revert conftest changes

* Move plugin init to separate action

* Remove parallel tests

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-01-21 17:25:16 +01:00
Julio Castillo 43270247bf
Delete README.md 2022-01-19 19:15:33 +01:00
Ludovico Magnocavallo e866db2c88 Merge Fabric FAST (#435)
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
Co-authored-by: Julio Castillo <jccb@google.com>
2022-01-19 14:19:39 +01:00
Lorenzo Caggioni 33ce60cf00 fix tests 2022-01-14 18:39:22 +01:00
Ludovico Magnocavallo 5d7adc4bf2
Merge branch 'master' into gcs2bq-least-privileges 2022-01-14 18:04:36 +01:00
Lorenzo Caggioni 3eb1f93f4b Move tests 2022-01-14 18:02:08 +01:00
Julio Castillo fcd6be9733 Fix gcs_to_bq_with_dataflow tests 2022-01-14 16:53:15 +01:00
Luca Prete 4f79e12365
Rename net-xlb module to net-glb (#433) 2022-01-14 16:52:03 +01:00
Luca Prete ca82d5157a
GLB - Module tests and fixes (#431)
* GLB - Module tests and fixes

* Fixing linting

* Fix ssl cert id vs self_link

* Simplify syntax
2022-01-14 16:05:10 +01:00
lcaggio 93ebf713a1 Add gcs2bq with least privileges example 2022-01-14 09:32:23 +01:00
Simone Ruffilli baa31e82d9
Resource Factory update (#430)
* Resource Factory update

* Pleasing the linting gods

* Poking the linting gods

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-01-14 08:30:06 +01:00
Luca Prete 36651e40a0
Fix gcs_to_bq_with_dataflow test failing (#428) 2022-01-13 14:09:55 +01:00
Julio Castillo f0773d4883 Simplify tests by figuring out fixture dir automatically
We always use the same directory for terraform fixtures, so it's quite
easy to figure out its path from a pytest fixture by inspecting the
stack. This commit implements this functionality and decreases the
amount of boilerplate needed to write a test.

(Ported from fast)
2022-01-11 11:54:13 +01:00
Julio Castillo 144e841ce4 Allow tftest fixtures to run tests in parallel 2022-01-11 11:53:19 +01:00
Julio Castillo 8df9ef9035 New folder structure 2022-01-11 11:53:19 +01:00
Julio Castillo b2fe01c4fb Fix vpc subnet factory for yamls with different shapes. 2022-01-11 11:16:16 +01:00
Ludovico Magnocavallo 91b40dc9c3
Interpolate access levels by key in vpc sc module (#414)
* interpolate access levels by key

* fix access level reference

* fix num resources in last README test
2022-01-04 13:02:38 +01:00
yuryninog a3da60bc71
Merge branch 'master' into yuryninog-patch-1 2022-01-03 10:47:27 -05:00
Simone Ruffilli ee25965c89
Copyright bump (#410) 2022-01-01 15:52:31 +01:00
Ludovico Magnocavallo 2c7dab3bb2
New vpc-sc module implementation (#406)
* first implementation

* minimal output

* split service perimeters in regular and bridge

* tests and fixes

* new vpc-sc implementation

* remove providers file used for testing

* remove provider used during development
2021-12-31 13:29:22 +01:00
Julio Castillo f78902aee8 Update hierarchical firewall resource
This replaces all the `google_compute_organization_security_*`
resources with the newer `google_compute_firewall_*` resources.
2021-12-31 13:06:35 +01:00
arsenyspb 63bd79df31
Merge branch 'master' into feature/saiebq-file-exporter 2021-12-23 23:16:14 +08:00
Arseny Chernov 6717abf0e1 Add count to toggle optional modules 2021-12-23 22:07:14 +08:00
Simone Ruffilli eeaca4023d net-address: Added support for PSA ranges 2021-12-16 18:11:40 +01:00
Arseny Chernov 9bbae283ba Update test_plan and README 2021-12-16 21:27:51 +08:00
Arseny Chernov b36688ec78 Add optional BQ table as a file export config 2021-12-16 17:54:38 +08:00
Arseny Chernov 976fabdf86 Add bq_table_overwrite handling 2021-12-16 15:39:49 +08:00
Aleksandr Averbukh 9d54e5a073
Merge branch 'master' into sa-upload-crt 2021-12-15 18:22:04 +01:00
Julio Castillo a22169dcd2
Merge branch 'master' into yuryninog-patch-1 2021-12-15 15:27:26 +01:00
Julio Castillo 36b277222d Bump tftest version
Bump tftest version to 1.6.1 and ensure test runners can update
providers if needed and available.
2021-12-15 15:12:43 +01:00
Stenio Ferreira 601ebd028e
Added support for Stateful Managed Instance Groups (#367)
* First iteration updates

* All tests passing

* Updated README and var descriptions

* Updated README

* Updated example README

* Consolidated stateful vars

* consolidated stateful vars

* Updated README

* Requested changes to try

* Fixed README examples and try

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2021-12-15 14:56:53 +01:00
Julio Castillo 71a51b04f7
Merge branch 'master' into yuryninog-patch-1 2021-12-15 14:19:27 +01:00
arsenyspb 5beba11058
Add target_node and minor fixes (#389)
* Add separate BQ tables per asset type

* Add missing BQ location

* Add missing CF region

* Change Scheduler job to non-generic

* Add target_node, pass tests

* Do tfdoc.py

* Do terraform fmt

* Do terraform fmt -recursive for tests' fixtures

* Fix typo in test's variables
2021-12-15 14:07:48 +01:00
Julio Castillo d2859a295f
Merge branch 'master' into yuryninog-patch-1 2021-12-15 11:46:46 +01:00
Aleksandr Averbukh aab78ece8b
Merge branch 'master' into sa-upload-crt 2021-12-13 22:50:13 +01:00
averbukh ae4d8e0611 Add basic test for onprem-sa-mgmt example 2021-12-13 22:48:18 +01:00
Ludovico Magnocavallo 174de3a087
Organization module refactor, in-module firewall policy factory for organization and folder (#385)
* move iam and logging to separate files, minimal refactoring

* update README

* fix example

* factory

* tfdoc

* boilerplate

* remove data_folder variable

* tfdoc

* fix default factory name

* add firewall policy to folder module

* add factory example
2021-12-13 08:41:02 +01:00
Yury Nino 63019316e1 Remove location from local.prefix 2021-12-12 16:15:21 -05:00
Ludovico Magnocavallo 3758c8f3b0
Improve PSN support in net-vpc module (#384)
* improve PSN support

* fix variable order

* fix example test

* fix cloudsql example
2021-12-09 17:26:37 +01:00
lcaggio 546385d3ee
Add support for partitioned tables on Organization sinks (#380)
* Add support for partioned tables on Organization sinks

* Update changelog

* Fix lint

* Fix lint

* Use simple bool instead of block

* fix README

* Fix Readme

* Rename variable

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2021-12-09 09:55:47 +01:00
Simone Ruffilli 28d84c120a Tests for net-vpc-firewall module 2021-12-07 14:40:23 +01:00
Simone Ruffilli 3b79b79d92 Added license boilerplate to subnet yaml data in tests 2021-12-07 09:37:51 +01:00
Simone Ruffilli 8a2ad25a45 Updated README.md. Added tests. 2021-12-07 09:35:24 +01:00
Andras Gyomrey d2ef4c3277 Allow using gVNIC in compute-vm (#211) 2021-11-08 11:18:15 +00:00
Andras Gyomrey 4d278d62e4 Default for output_file_mode 2021-11-07 13:20:00 +00:00
Andras Gyomrey 1da5bde47b Support for consistent function bundles 2021-11-07 10:27:10 +00:00
apichick 731688a782 parent 871dd3f5c0
author apichick <apichick@google.com> 1635979681 +0100
committer apichick <apichick@google.com> 1635980891 +0100

parent 871dd3f5c0
author apichick <apichick@google.com> 1635979681 +0100
committer apichick <apichick@google.com> 1635980849 +0100

update vpc connector variables and added options variable to containers

Updated iam variable description

Included tests for examples in README

Fixed linting
2021-11-04 00:09:28 +01:00
apichick 7f5f5a460f Added cloud-run module 2021-11-03 23:50:07 +01:00
Ludovico Magnocavallo f6775aca1b
Use the same versions file everywhere, pin to tf 1.0+ provider 4.0+ (#355)
* add default versions file, remove old providers and versions

* use default versions file everywhere

* fix kms module

* re-add provider configuration for data platform step 2

* update kms module outputs sorting

* update kms documentation

* fix data solutions tests

* fix GKE workload identity attribute name

* work around firewall provider issue in datafusion example
2021-11-03 15:05:43 +01:00
Ludovico Magnocavallo 923ba819d1 bigquery-dataset 2021-10-19 21:09:16 +02:00
caiotavaresdito c65afde6b0 Included new variables fixture test plan 2021-10-18 11:13:53 -04:00
Simone Ruffilli 0836433e55 hierarchical-policies updated with new resources 2021-10-15 12:16:13 +02:00
Simone Ruffilli b3838cfdb4 Fixed tab size on tests 2021-10-14 19:10:03 +02:00
sruffilli a67ddf9bec
Update test_plan.py 2021-10-14 19:04:09 +02:00
Simone Ruffilli 89f045d3db Boilerplates 2021-10-14 18:01:32 +02:00
Simone Ruffilli 36fb785ea9 Resource factories 2021-10-14 17:00:04 +02:00
Julio Castillo cd4917f2f2 README and test fixes 2021-10-07 21:50:16 +02:00
Julio Castillo 1378efde6e New module for Cloud SQL instances 2021-10-07 18:20:07 +02:00
Ludovico Magnocavallo a45814f41c
Naming convention module (#318)
* naming convention module

* tfdoc

* lint fixture

* add optional separator, variable descriptions

* add output descriptions

* fix example tests
2021-10-05 12:21:12 +02:00
Ludovico Magnocavallo 5001eb49a4
Make dns module resilient to dynamic values (#317)
* refactor module and fix tests

* account for wildcard records

* account for empty recordset names

* align tests

* align networking end to end examples

* fix behaviour with wildcard and empty names

* Update main.tf

* fix dumb online edit :)
2021-10-04 18:59:14 +02:00
Mikołaj Stefaniak 65fd32c4c0
Introduced packer image builder example (#313) 2021-10-04 17:10:19 +02:00
Ludovico Magnocavallo 262f823464
Refactor compute-vm to remove multiple instance support (#314)
* first iteration, largely untested

* basic tests pass

* basic tests pass

* nic test

* disk tests, refactor

* fix tests

* update README

* update gcs to bq example

* fix README examples, do not create disks for template

* fix data solutions examples

* update cloud operations examples

* update networking examples, mig and ilb modules examples

* update default image to debian 11

* update README table
2021-10-04 10:46:44 +02:00
javiergp 15b2736a7c
Bugfixing Data Foundations (#310)
* Bugfixing Data Foundations and impersonation support
- Fixed SA permissions
- Usage of impersonation to avoid SA private key export
- Fixed required API enablement
- Added FW rules required by dataflow
- Added provider for sa impersonation
2021-09-28 17:13:18 +02:00
Julio Castillo 50d6105bf0
Prefix 'iam' to delegated role grants example (#307)
* Prefix 'iam' to  delegated role grants example

* Update CHANGELOG
2021-09-22 10:39:18 +02:00
Julio Castillo e99514e9f1 Add tests to delegated role grants example 2021-09-21 15:42:01 +02:00
lcaggio 8a177b395f Update changelog and fix tests. 2021-09-01 11:25:45 +02:00
Julio Castillo 1b80085c9b Create email notification channels automatically 2021-08-13 12:02:46 +02:00
Julio Castillo 3a8a040ff3 Billing budget module 2021-08-13 12:01:00 +02:00
Julio Castillo cb7c65135e
Update CI processes (#296)
- Upgrade to latest terraform version (1.0.4)
- Remove tflint from linting pipeline (was not doing anything)
- Add terraform fmt check to linting pipeline
- Pass all code through terraform fmt
2021-08-12 17:30:53 +02:00
Daniel Strebel ed6ebc0c82 pytests for apigee modules 2021-08-05 15:47:00 +02:00
Ludovico Magnocavallo 202892b344
Add support for lifecycle_rule in gcs module (#288) (#289)
* Add support for lifecycle_rule in gcs module (#288)

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>

* fix docs

* rename unrelated interconnect module tests

* fix doc example test

Co-authored-by: iury <1934268+IuryAlves@users.noreply.github.com>
2021-07-30 12:07:17 +02:00
averbukh 3a83423554 Cleaning up test for decentralized fwl 2021-07-28 22:25:26 +02:00
averbukh 7792b91364 Add basic tests for decentralized firewall example 2021-07-28 22:14:14 +02:00
averbukh 830e464e2e Update firewall-yaml test fixture 2021-07-26 09:50:33 +02:00
Ludovico Magnocavallo 813ea55d0d
Simplify new CF from onprem via PSC example (#280)
* add support for PSC addresses to net-address module

* simplify PSC CF example

* update diagram
2021-07-20 15:05:48 +02:00
Andrea Gandolfi c96abf7270 Networking examples: Fix tests "private cloud function from onprem" 2021-07-20 10:28:00 +02:00
Andrea Gandolfi 898fd7379f Networking examples: Rename test folder "private cloud function from onprem" 2021-07-20 10:11:58 +02:00
Andrea Gandolfi 7f5328fe6e Networking examples: Add test to "private cloud function from onprem" 2021-07-20 10:10:34 +02:00
Ludovico Magnocavallo 4fb953d83f
Update ILBaNH example (all protocols, symmetric hashing, multi-zone) (#277)
* update ILBaNH example (all protocols, symmetric hashing, multi-zone)

* update variables/outputs table in README

* update test
2021-07-19 19:28:39 +02:00
Julio Castillo 0ce81743f2
Update CAI example (#274)
* Add Asset Inventory API to project module

* Create feed from terraform in CAI example

* Fix tests

* sort services

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2021-07-08 08:57:27 +02:00
Lorenzo Caggioni d760959999 fix tests 2021-07-05 07:15:04 +02:00
Lorenzo Caggioni d181199647 fix tests 2021-06-28 12:29:30 +02:00
Lorenzo Caggioni 889c456458 fix test 2021-06-25 13:10:28 +02:00
lcaggio 3d84897b4b
Create pubsub service identity if service is enabled (#270)
* Create  service identity if service is enabled

* remove dry run mode

* fix tests

* Improve for_each logic
2021-06-25 09:26:33 +02:00
dsiviglia 1781d7c6bc
Interconnect (#268)
* module for VLAN attachment+cloud router+bgp

* fix vlan attachments review comments

* run terraform fmt

* fix code review comment and build errors

* fix for code review comments

* code review changes

* changes after review

* changes after code review

* changes after code review

* test net-interconnect-attachment-direct
2021-06-22 15:31:40 +02:00
lcaggio 381b532c0c
Merge pull request #242 from terraform-google-modules/add-data-platform-foundations
Add data platform foundations
2021-06-15 17:39:53 +02:00
Yoram Ben-Yaacov 39b4fb4cf9 folders rename 2021-06-15 16:28:44 +03:00
Ludovico Magnocavallo 9a31eccf9e data fondations test 2021-06-15 14:54:57 +02:00
Lorenzo Caggioni 0a02ffa853 Fix tests 2021-06-14 18:52:25 +02:00
Julio Castillo 6df43f3b12 Fix PSN tests 2021-04-23 15:36:56 +02:00
Julio Castillo 140378f2f5 Add support for private service connect 2021-04-21 13:55:00 +02:00
Ludovico Magnocavallo f8413cc98e
Add support for group-based IAM to resource management modules (#229)
* group_iam support for organization

* group_iam support for folder

* fix typo in variable description

* add group_iam to project module

* update project module README
2021-04-11 14:48:16 +02:00
Luca Prete 7154e2cee6
[#223] Remove unused IAM policies from shared-vpc-gke example (#224) 2021-04-09 19:35:47 +02:00
Ludovico Magnocavallo 3597769e8e
Support one group per zone in compute-vm (#218)
* support multiple groups per zone in compute-vm

* fix ilb as next hop example
2021-04-01 08:27:38 +02:00
Ludovico Magnocavallo 5149795bec
Allow using a non-suffixed name in compute-vm (#217)
* allow using a non-suffixed name in compute-vm

* update README
2021-03-31 20:01:10 +02:00
Julio Castillo 7ca2e60399 Fix tests 2021-03-31 10:45:35 +02:00
Ludovico Magnocavallo 7052cfdb08
allow DNS zones with no vpcs (#214) 2021-03-27 09:08:54 +01:00
lcaggio de5a9d747a
Add VPC-SC support for Regions, device policy and access policy dependency (#210)
* Add VPC-SC support for Regions, device policy and access policy dependency.

* fix compute mig module test

* Fixes

* Fix example

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2021-03-18 13:04:37 +01:00
averbukh 162be115e0 Delete file with wrong extention 2021-03-15 09:39:00 +01:00
averbukh 569252b637 Add boilerplate, formatting 2021-03-15 09:32:03 +01:00
averbukh 07cf386427 Add basic tests for nwt-vpc-firewall-yaml module 2021-03-14 19:49:07 +01:00
Julio Castillo ad68fc4dfa Support for cloud logging buckets 2021-03-03 14:23:59 +01:00
Julio Castillo d229fd5c6d Fix tests 2021-02-16 13:34:20 +01:00
Julio Castillo 077e881406 Add tests to proxy example 2021-02-15 19:08:00 +01:00
Julio Castillo 1e11c670f5 Update copyright to 2021 2021-02-15 09:38:10 +01:00
Julio Castillo be8c61ac2c
Cloud Identity Group module (#182)
* New Cloud Identity module

* Add tests to cloud-identity-group module

* Fix boilerplate

* Fix outputs

* Remove support for creating managers and admins

* Update cloud-identity-group README

* Small fix to cloud-identity-group README
2021-02-13 06:55:22 +01:00
Ludovico Magnocavallo 2ab64446a9
Update hub and spoke peering to optionally create project (#195)
* optionally create project, add vm in hub, export routes to gke peering

* fix typo in unrelated module

* update README

* update README

* update unrelated README for lint

* fix test
2021-02-04 12:12:56 +01:00