Commit Graph

987 Commits

Author SHA1 Message Date
Ludovico Magnocavallo 89787a42f4
fix default_rules_config description (#1031) 2022-12-01 10:04:13 +01:00
Julio Castillo 70b93164f0 Update READMEs 2022-11-30 16:02:26 +01:00
Julio Castillo fa63e9d5d0 Remove optional stuff 2022-11-30 16:00:53 +01:00
Julio Castillo fcb697c935 Bring back vpn_gateway_create var in net-vpn-ha 2022-11-30 15:22:42 +01:00
Julio Castillo e976d71428 Update rest of vpn modules to tf1.3 2022-11-30 15:19:49 +01:00
Julio Castillo ef4a4b02af Fix linting 2022-11-30 11:36:58 +01:00
Julio Castillo 9aa1c49adf Revert locals 2022-11-30 11:00:45 +01:00
Julio Castillo efa9d928e1 Fix vpn_gateway local 2022-11-30 10:58:55 +01:00
Julio Castillo 798d3a4136 Update VPN-HA module to tf1.3 (wip) 2022-11-30 10:52:24 +01:00
g-greatdevaks e8a6867fa7 add lifecycle ignore_changes for apigee payg env
Added lifecycle `ignore_changes` rule for
Apigee PAYG Environment Node Config's
`current_aggregate_node_count`.

Changes committed:
- modified:   `modules/apigee/main.tf`
2022-11-30 11:05:15 +05:30
g-greatdevaks b38c05e3d7 Fix Apigee PAYG Node Config Dynamic Block
Fixed attribute reference issues for the
`node_config` dynamic block.

Changes committed:
- modified:   `modules/apigee/main.tf`
2022-11-29 21:00: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
Daniel Strebel 158df4c873 fix(apigee): Apigee instance doc examples 2022-11-28 09:55:51 +01:00
Joe Heaton.dev 9fa381f5ed
Fix memory typo (#1016) 2022-11-27 18:29:25 +01:00
Ludovico Magnocavallo f3788fcd27
fix tag outputs (#1012) 2022-11-25 13:06:31 +00:00
Julio Castillo 612d7283e8 Enforce nonempty descriptions ending in a colon 2022-11-24 18:56:01 +01:00
Israel Herraiz 5d38e312c8 Set 1 num_nodes as default value, ignore num_nodes if autoscaling is set 2022-11-24 16:45:13 +01:00
Israel Herraiz 59e1d1313a Some more remarks in the documentation about num_nodes and autoscaling 2022-11-23 15:18:42 +01:00
Israel Herraiz e05dec98e0 Improve documentation 2022-11-23 15:16:41 +01:00
Israel Herraiz 11e6717133 storage_target is an optional setting 2022-11-23 15:08:22 +01:00
Israel Herraiz d86813e72f Update README.md with new option settings 2022-11-23 14:30:08 +01:00
Israel Herraiz 00a26d8e98 Add settings for autoscaling to Bigtable module. 2022-11-23 14:26:54 +01:00
astianseb 345cb4b7fa
Default nodepool creation fix (#999)
* Default nodepool creation fix

* Removed comments and fixded formatting with fmt

* Refactored per PR comment

Co-authored-by: Astian Seb <sgrabski@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-11-22 19:17:57 +01:00
Julio Castillo e629a997d1 Only set partitioned table when sink type is bigquery
Fixes 990
2022-11-22 15:48:48 +01:00
Israel Herraiz e692eac867 Add BigQuery subcriptions to Pubsub module.
Pubsub can now have subscriptions that write directly to BigQuery.
 * https://cloud.google.com/pubsub/docs/bigquery

In the Google Terraform provider, this is configured using an additional block
inside a `google_pubsub_subscription` resource.
 * https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/pubsub_subscription#nested_bigquery_config

This PR adds a new input variable to the `pubsub` module, to optionally add this
block to some of the subscriptions defined in the module.
2022-11-21 17:43:17 +01:00
Julio Castillo 882a3ebf78 Fix pubsub sorting 2022-11-21 13:47:24 +01:00
Julio Castillo d41dc678e6 Fix organization module 2022-11-21 13:17:55 +01:00
Julio Castillo 826ff14ef9 Sort variables and outputs 2022-11-21 13:17:55 +01:00
Julio Castillo 2e700db8a7 Fix variable/output sort check 2022-11-21 13:17:55 +01:00
Israel Herraiz 06750e7236 1 + 1 = 2 2022-11-20 16:56:23 +01:00
Israel Herraiz 5fa9b5e0b0 Fix example code for topic with schemas 2022-11-20 16:36:36 +01:00
Israel Herraiz 2a23df6bd3 Fix variables/outputs table after removing duplicated code. 2022-11-20 16:35:08 +01:00
Israel Herraiz 7b799bc076 Remove duplicated code 2022-11-20 16:34:33 +01:00
Israel Herraiz 3f4fa74729 Address reviewer comments. 2022-11-20 16:32:37 +01:00
Israel Herraiz 54e9738c39 Add schemas to Pubsub topic module.
Pubsub topics can now have
schemas (https://cloud.google.com/pubsub/docs/admin#schemas). This PR adds an
option to set the schema settings and create a new optional resource of type
`google_pubsub_schema` attached to the `google_pubsub_topic`.
2022-11-20 13:26:33 +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 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
Ludovico Magnocavallo 002ba4eef7
Allow cross-project backend services in ILB L7 module (#991)
* wip

* neg, README

* fix neg variable

* fix neg project id, enable global access, add service directory
2022-11-18 08:48:41 +00: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 01218060e8 Simplify service_account_email expression 2022-11-16 16:44:38 +01:00
Wiktor Niesiobędzki 4947ac5028 Simplify trigger_service_account_email variable expression 2022-11-16 16:44:38 +01:00
Wiktor Niesiobędzki bce8e2b082 Re-enable tests 2022-11-16 16:44:38 +01:00
Wiktor Niesiobędzki 97c6a25b90 Use hungarian notation.
As per: https://cloud.google.com/apis/design/naming_convention#quantities
2022-11-16 16:44:24 +01:00
Wiktor Niesiobędzki de2bea16a4 Make trigger_config non-nullable and simplify expressions 2022-11-16 16:44:01 +01:00
Wiktor Niesiobędzki 4e6e67293b Move comparision outside of try 2022-11-16 16:44:01 +01:00
Wiktor Niesiobędzki 755ff7b1d2 Add trigger service account creation 2022-11-16 16:44:01 +01:00
Wiktor Niesiobędzki 9e37a915c8 Review fixes.
* Refactor trigger_config and trigger_config_v2 into one structure
* bump default python version to 3.10
* typo fixes
2022-11-16 16:44:01 +01:00
Wiktor Niesiobędzki 303b51a0a9 Add triggers to cloud functions v2
* add `trigger_config_v2` for v2 functions
* add optional for objects in variables.tf
* make examples in README runnable
* add example for Cloud Function v2
* add exapmle for trigger for Cloud Function v2
* remove optional variables from examples with `null` value
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 ea360072b8
Update README.md 2022-11-16 14:14:43 +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
Maurizio Noseda Pedraglio b2bd0009b9 restored tfskip 2022-11-15 16:21:23 +01:00
Maurizio Noseda Pedraglio a47726741d enablid tests 2022-11-15 15:42:10 +01:00
Maurizio Noseda Pedraglio 4cbf0272f9 linting 2022-11-15 15:12:50 +01:00
Maurizio Noseda Pedraglio 7c874660a8 restored validation 2022-11-15 15:10:42 +01:00
maunope 09fba581a8
Update README.md
fix
2022-11-15 14:49:16 +01:00
maunope f514ab0371
Update README.md
restored sample
2022-11-15 14:48:48 +01:00
maunope fbfbb93783
Update README.md
linting fix
2022-11-15 14:47:11 +01:00
maunope a199214970
Update variables.tf
fixed test
2022-11-15 14:42:19 +01:00
maunope 7f9c29c4ba
Merge branch 'master' into maunope/cf_module_update 2022-11-15 13:53:31 +01:00
maunope 099ac6ea7e
Update main.tf
removed comment
2022-11-15 13:52:52 +01:00
Sebastian Kunze 5125a5ad03
Replace Docker's `gcplogs` driver with the GCP COS logging agent (#977) 2022-11-15 13:19:52 +01:00
maunope a661dad67c
Update variables.tf
added worker pool variable
2022-11-15 12:24:59 +01:00
maunope f00c7da926
Update main.tf
added worker pool parameter
2022-11-15 12:24:19 +01:00
maunope fc0c8bd175
Update README.md
added sample
2022-11-15 12:23:44 +01:00
maunope 251703c63c
Update README.md
md file update
2022-11-15 12:18:00 +01:00
Ludovico Magnocavallo e957797aa6
add validation for health check port specification (#975) 2022-11-14 15:20:01 +00: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 4a25129765 Update readme 2022-11-12 19:25:41 +01:00
Julio Castillo c83a7de076 Remove as_logging_destination 2022-11-12 19:24:41 +01:00
Julio Castillo b37ef3a90a Update folder readme 2022-11-12 12:22:09 +01:00
Julio Castillo daf0fef7cd Fix folder variables 2022-11-12 12:07:48 +01:00
Julio Castillo 8fe19ad7c2 Rename bigquery_use_partitioned_table 2022-11-12 11:30:34 +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
Natalia Strelkova d96f95c2b6 cannot instead of can not 2022-11-11 11:56:47 +00:00
Natalia Strelkova c640695e1a
Merge branch 'master' into nstrelkova-prefix-consistency 2022-11-11 07:41:31 +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
Natalia Strelkova d5d1d9eb34 terraform formatting fixed 2022-11-10 15:11:38 +00:00
Natalia Strelkova 68c3b13d6a prefix variable consistency across modules 2022-11-10 15:05:53 +00:00
Aleksandr Averbukh b04cfbf980
Merge branch 'master' into org-policy-custom 2022-11-09 08:53:38 +01:00
Valerio Ponza 8282b6c0e2
Fix README typo in firewall module (#960)
* fixing readme in firewall module

* fix typo

Co-authored-by: Valerio Ponza <vponza@google.com>
Co-authored-by: Ludovico Magnocavallo <ludo@qix.it>
2022-11-09 00:25:34 +01:00
Aleksandr Averbukh 1419a04147 Update module readme 2022-11-08 18:17:05 +01:00
Aleksandr Averbukh aae6ab132c Add tests for org policy custom constraints 2022-11-08 18:13:49 +01:00
Aleksandr Averbukh 3bd2e1c0ea
Merge branch 'master' into org-policy-custom 2022-11-08 09:37:23 +01:00
Aleksandr Averbukh 3562c52520 Add support for org policy custom constraints 2022-11-08 09:34:38 +01:00
Catalin Muresan 4e2762098f Updated README.md 2022-11-07 12:47:35 +00:00
Catalin Muresan 31bb4476d1 Added IAM Additive and converted some outputs to static 2022-11-07 12:41:41 +00: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 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 649bedc291
Update README.md 2022-11-03 13:19:02 +01:00
Julio Castillo e29957c394
Update README.md 2022-11-03 13:18:21 +01:00
Julio Castillo 4b278a1533 Update variable description 2022-11-03 12:35:50 +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 5b1873775a Fix internal links 2022-11-03 12:14:47 +01:00
Julio Castillo f64c43e893 Add org policy factory example 2022-11-03 12:12:50 +01:00
Julio Castillo 3e18575fad Add factory support for new org policies 2022-11-03 11:41:53 +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 b6c40dcdb3 Update readmes 2022-10-28 17:49:44 +02:00
Julio Castillo b56b57b974 Fix more copy/past badness 2022-10-28 17:49:44 +02:00
Julio Castillo c1fe477f88 Remove bad copy/paste 2022-10-28 17:49:44 +02:00
Julio Castillo c714952f39 Fix tests 2022-10-28 17:49:44 +02:00
Julio Castillo ad420138ad Fix readme examples 2022-10-28 17:49:44 +02:00
Julio Castillo f44f4a74dc Fix module tests 2022-10-28 17:49:44 +02:00
Julio Castillo b23d07b0c6 Update project/folder/module to use new org policies API and tf1.3 optionals. 2022-10-28 17:49:44 +02:00
Ludovico Magnocavallo 29cde275f0
fix backwards compatibility for vpc subnet descriptions (#926) 2022-10-28 08:13:04 +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
Julio Castillo 6242607e1b
Merge branch 'master' into ludo/gke-autopilot-datapath 2022-10-25 23:24:20 +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
Julio Castillo b1dfbe29c2
Merge branch 'master' into ludo/gke-autopilot-datapath 2022-10-25 23:07:28 +02:00
Simone Ruffilli 384756a8a7 SimpleNVA: updated example 2022-10-25 18:09:31 +02:00
Simone Ruffilli 0611d66be7 SimpleNVA: add the option to create additional files 2022-10-25 18:07:38 +02:00
Julio Castillo 9e03ddbf6e Update README 2022-10-25 16:08:17 +02:00
Julio Castillo d759ac2ff1 Make dnssec not nullable 2022-10-25 15:47:18 +02:00
Julio Castillo 442f87e60e Rename local for consistency 2022-10-25 15:08:55 +02:00
Julio Castillo b5cee10dca Remove useless dynamic blocks 2022-10-25 15:07:56 +02:00
Julio Castillo 6340286fa4 DRY up resource name for recordsets 2022-10-25 15:07:56 +02:00
Julio Castillo 8bacd8f5d5 Add support for DNS routing policies 2022-10-25 15:07:56 +02:00
Simone Ruffilli c4d599f321
Fix race condition (#918)
The cloud-init runcmd had a race condition where the script could run before the network interfaces were ready.
Changed the script to a systemd unit and added a dependency on network ready.
2022-10-25 15:04:38 +02:00
Julio Castillo 1a3bb25917 Update provider version (needed for dns logging support). 2022-10-25 12:15:02 +02:00
Julio Castillo a676c0f64c Update readme 2022-10-25 12:11:07 +02:00
Julio Castillo 3b89d370a1 Simplify DNSSEC config 2022-10-25 12:11:07 +02:00
Julio Castillo ab11920bee Add cloud logging option 2022-10-25 12:11:07 +02:00
Julio Castillo 625eeb4d7f Make dns ttl optional 2022-10-25 12:11:07 +02:00
Ludovico Magnocavallo 68f5719036
gke module datapath for autopilot 2022-10-25 07:23:38 +02:00
Julio Castillo 341ad5ef87
Update README.md 2022-10-24 12:55:32 +02:00
dsbutler101 3c40fc8fce
Add missing description field
Important so we can flag these groups are TF managed and must not be manually updated.
2022-10-21 15:38:07 +01:00
Luca Prete 9aea79fd31
Add internal_ips output to compute-vm module 2022-10-21 10:38:25 +02:00
Ludovico Magnocavallo d0ccd9ac31
Update README.md 2022-10-17 16:31:16 +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
Daniel Marzini 49d5e21a4b
Fix csi-driver, logging and monitoring default values when autopilot … (#883)
* Fix csi-driver, logging and monitoring default values when autopilot is used
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2022-10-14 17:30:54 +02:00
Ludovico Magnocavallo 41c416b55e
make mtu default explicit in variable description 2022-10-14 11:13:48 +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
Somnath Shukla a12da693a3
added support 2nd generation cloud function (#872)
* added support 2nd generation cloud function

* changed function_version to a simple boolean v2
removed memory_2ndGen

* will use the var.v2 to add the invoker role

* removed the list uisng compact and formated the code

* formated the code and added conditional feature

* formated the code

* added formating

* resolved the merge conflict

* Update readme

* Create local function object

* added secret_volumes
and secret_environment_variables for CF V2

Co-authored-by: Julio Castillo <jccb@google.com>
2022-10-13 08:09:00 +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
Ludovico Magnocavallo f080794167
Merge branch 'master' into tmp_revert_to_1.3.1 2022-10-10 11:21:26 +02:00
Natalia Strelkova 5dbc61cb8c temporary revert to Terraform 1.3.1 to support Cloud Shell 2022-10-10 09:19:55 +00:00
Julio Castillo 08b1dfdb8e Fix optionals for resource_usage_export field in `gke-cluster` 2022-10-10 10:47:51 +02:00