2022-02-03 11:30:56 -08:00
|
|
|
/**
|
|
|
|
* Copyright 2022 Google LLC
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2023-06-02 07:55:35 -07:00
|
|
|
variable "alert_config" {
|
|
|
|
description = "Configuration for monitoring alerts."
|
|
|
|
type = object({
|
|
|
|
vpn_tunnel_established = optional(object({
|
|
|
|
auto_close = optional(string, null)
|
|
|
|
duration = optional(string, "120s")
|
|
|
|
enabled = optional(bool, true)
|
|
|
|
notification_channels = optional(list(string), [])
|
|
|
|
user_labels = optional(map(string), {})
|
|
|
|
}))
|
|
|
|
vpn_tunnel_bandwidth = optional(object({
|
|
|
|
auto_close = optional(string, null)
|
|
|
|
duration = optional(string, "120s")
|
|
|
|
enabled = optional(bool, true)
|
|
|
|
notification_channels = optional(list(string), [])
|
|
|
|
threshold_mbys = optional(string, "187.5")
|
|
|
|
user_labels = optional(map(string), {})
|
|
|
|
}))
|
|
|
|
})
|
|
|
|
default = {
|
|
|
|
vpn_tunnel_established = {}
|
|
|
|
vpn_tunnel_bandwidth = {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-11 23:17:27 -07:00
|
|
|
variable "automation" {
|
FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052)
* rename stages
* remove support for external org billing, rename output files
* resman: make groups optional, align on new billing account variable
* bootstrap: multitenant outputs
* tenant bootstrap stage, untested
* fix folder name
* fix stage 0 output names
* optional creation for tag keys in organization module
* single tenant bootstrap minus tag
* rename output files, add tenant tag key
* fix organization module tag values output
* test skipping creation for tags in organization module
* single tenant bootstrap plan working
* multitenant bootstrap
* tfdoc
* fix check links error messages
* fix links
* tfdoc
* fix links
* rename fast tests, fix bootstrap tests
* multitenant stages have their own folder, simplify stage numbering
* stage renumbering
* wip
* rename tests
* exclude fast providers in fixture
* stage 0 tests
* stage 1 tests
* network stages tests
* stage tests
* tfdoc
* fix links
* tfdoc
* multitenant tests
* remove local files
* stage links command
* fix links script, TODO
* wip
* wip single tenant bootstrap
* working tenant bootstrap
* update gitignore
* remove local files
* tfdoc
* remove local files
* allow tests for tenant bootstrap stage
* tenant bootstrap proxies stage 1 tfvars
* stage 2 and 3 service accounts and IAM in tenant bootstrap
* wip
* wip
* wip
* drop multitenant bootstrap
* tfdoc
* add missing stage 2 SAs, fix org-level IAM condition
* wip
* wip
* optional tag value creation in organization module
* stage 1 working
* linting
* linting
* READMEs
* wip
* Make stage-links script work in old macos bash
* stage links command help
* fix output file names
* diagrams
* fix svg
* stage 0 skeleton and diagram
* test svg
* test svg
* test diagram
* diagram
* readme
* fix stage links script
* stage 0 readme
* README changes
* stage readmes
* fix outputs order
* fix link
* fix tests
* stage 1 test
* skip stage example
* boilerplate
* fix tftest skip
* default bootstrap stage log sinks to log buckets
* add logging to tenant bootstrap
* move iam variables out of tenant config
* fix cicd, reintroduce missing variable
* use optional in stage 1 cicd variable
* rename extras stage
* rename and move identity providers local, use optional for cicd variable
* tfdoc
* add support for wif pool and providers, ci/cd
* tfdoc
* fix links
* better handling of modules repository
* add missing role on logging project
* fix cicd pools in locals, test cicd
* fix workflow extension
* fix module source replacement
* allow tenant bootstrap cicd sa to impersonate resman sa
* tenant workflow templates fix for no providers file
* fix output files, push github workflow template to new repository
* remove try from outpout files
* align stage 1 cicd internals to stage 0
* tfdoc
* tests
* fix tests
* tests
* improve variable descriptions
* use optional in fast features
* actually create tenant log sinks, and allow the resman sa to do it
* test
* tests
* aaaand tests again
* fast features tenant override
* fast features tenant override
* fix wording
* add missing comment
* configure pf service accounts
* add missing comment
* tfdoc
* tests
* IAM docs
* update copyright
---------
Co-authored-by: Julio Castillo <jccb@google.com>
2023-02-04 06:00:45 -08:00
|
|
|
# tfdoc:variable:source 0-bootstrap
|
2022-04-11 23:17:27 -07:00
|
|
|
description = "Automation resources created by the bootstrap stage."
|
|
|
|
type = object({
|
|
|
|
outputs_bucket = string
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2022-02-15 23:07:58 -08:00
|
|
|
variable "billing_account" {
|
FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052)
* rename stages
* remove support for external org billing, rename output files
* resman: make groups optional, align on new billing account variable
* bootstrap: multitenant outputs
* tenant bootstrap stage, untested
* fix folder name
* fix stage 0 output names
* optional creation for tag keys in organization module
* single tenant bootstrap minus tag
* rename output files, add tenant tag key
* fix organization module tag values output
* test skipping creation for tags in organization module
* single tenant bootstrap plan working
* multitenant bootstrap
* tfdoc
* fix check links error messages
* fix links
* tfdoc
* fix links
* rename fast tests, fix bootstrap tests
* multitenant stages have their own folder, simplify stage numbering
* stage renumbering
* wip
* rename tests
* exclude fast providers in fixture
* stage 0 tests
* stage 1 tests
* network stages tests
* stage tests
* tfdoc
* fix links
* tfdoc
* multitenant tests
* remove local files
* stage links command
* fix links script, TODO
* wip
* wip single tenant bootstrap
* working tenant bootstrap
* update gitignore
* remove local files
* tfdoc
* remove local files
* allow tests for tenant bootstrap stage
* tenant bootstrap proxies stage 1 tfvars
* stage 2 and 3 service accounts and IAM in tenant bootstrap
* wip
* wip
* wip
* drop multitenant bootstrap
* tfdoc
* add missing stage 2 SAs, fix org-level IAM condition
* wip
* wip
* optional tag value creation in organization module
* stage 1 working
* linting
* linting
* READMEs
* wip
* Make stage-links script work in old macos bash
* stage links command help
* fix output file names
* diagrams
* fix svg
* stage 0 skeleton and diagram
* test svg
* test svg
* test diagram
* diagram
* readme
* fix stage links script
* stage 0 readme
* README changes
* stage readmes
* fix outputs order
* fix link
* fix tests
* stage 1 test
* skip stage example
* boilerplate
* fix tftest skip
* default bootstrap stage log sinks to log buckets
* add logging to tenant bootstrap
* move iam variables out of tenant config
* fix cicd, reintroduce missing variable
* use optional in stage 1 cicd variable
* rename extras stage
* rename and move identity providers local, use optional for cicd variable
* tfdoc
* add support for wif pool and providers, ci/cd
* tfdoc
* fix links
* better handling of modules repository
* add missing role on logging project
* fix cicd pools in locals, test cicd
* fix workflow extension
* fix module source replacement
* allow tenant bootstrap cicd sa to impersonate resman sa
* tenant workflow templates fix for no providers file
* fix output files, push github workflow template to new repository
* remove try from outpout files
* align stage 1 cicd internals to stage 0
* tfdoc
* tests
* fix tests
* tests
* improve variable descriptions
* use optional in fast features
* actually create tenant log sinks, and allow the resman sa to do it
* test
* tests
* aaaand tests again
* fast features tenant override
* fast features tenant override
* fix wording
* add missing comment
* configure pf service accounts
* add missing comment
* tfdoc
* tests
* IAM docs
* update copyright
---------
Co-authored-by: Julio Castillo <jccb@google.com>
2023-02-04 06:00:45 -08:00
|
|
|
# tfdoc:variable:source 0-bootstrap
|
|
|
|
description = "Billing account id. If billing account is not part of the same org set `is_org_level` to false."
|
2022-02-15 23:07:58 -08:00
|
|
|
type = object({
|
FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052)
* rename stages
* remove support for external org billing, rename output files
* resman: make groups optional, align on new billing account variable
* bootstrap: multitenant outputs
* tenant bootstrap stage, untested
* fix folder name
* fix stage 0 output names
* optional creation for tag keys in organization module
* single tenant bootstrap minus tag
* rename output files, add tenant tag key
* fix organization module tag values output
* test skipping creation for tags in organization module
* single tenant bootstrap plan working
* multitenant bootstrap
* tfdoc
* fix check links error messages
* fix links
* tfdoc
* fix links
* rename fast tests, fix bootstrap tests
* multitenant stages have their own folder, simplify stage numbering
* stage renumbering
* wip
* rename tests
* exclude fast providers in fixture
* stage 0 tests
* stage 1 tests
* network stages tests
* stage tests
* tfdoc
* fix links
* tfdoc
* multitenant tests
* remove local files
* stage links command
* fix links script, TODO
* wip
* wip single tenant bootstrap
* working tenant bootstrap
* update gitignore
* remove local files
* tfdoc
* remove local files
* allow tests for tenant bootstrap stage
* tenant bootstrap proxies stage 1 tfvars
* stage 2 and 3 service accounts and IAM in tenant bootstrap
* wip
* wip
* wip
* drop multitenant bootstrap
* tfdoc
* add missing stage 2 SAs, fix org-level IAM condition
* wip
* wip
* optional tag value creation in organization module
* stage 1 working
* linting
* linting
* READMEs
* wip
* Make stage-links script work in old macos bash
* stage links command help
* fix output file names
* diagrams
* fix svg
* stage 0 skeleton and diagram
* test svg
* test svg
* test diagram
* diagram
* readme
* fix stage links script
* stage 0 readme
* README changes
* stage readmes
* fix outputs order
* fix link
* fix tests
* stage 1 test
* skip stage example
* boilerplate
* fix tftest skip
* default bootstrap stage log sinks to log buckets
* add logging to tenant bootstrap
* move iam variables out of tenant config
* fix cicd, reintroduce missing variable
* use optional in stage 1 cicd variable
* rename extras stage
* rename and move identity providers local, use optional for cicd variable
* tfdoc
* add support for wif pool and providers, ci/cd
* tfdoc
* fix links
* better handling of modules repository
* add missing role on logging project
* fix cicd pools in locals, test cicd
* fix workflow extension
* fix module source replacement
* allow tenant bootstrap cicd sa to impersonate resman sa
* tenant workflow templates fix for no providers file
* fix output files, push github workflow template to new repository
* remove try from outpout files
* align stage 1 cicd internals to stage 0
* tfdoc
* tests
* fix tests
* tests
* improve variable descriptions
* use optional in fast features
* actually create tenant log sinks, and allow the resman sa to do it
* test
* tests
* aaaand tests again
* fast features tenant override
* fast features tenant override
* fix wording
* add missing comment
* configure pf service accounts
* add missing comment
* tfdoc
* tests
* IAM docs
* update copyright
---------
Co-authored-by: Julio Castillo <jccb@google.com>
2023-02-04 06:00:45 -08:00
|
|
|
id = string
|
|
|
|
is_org_level = optional(bool, true)
|
2022-02-15 23:07:58 -08:00
|
|
|
})
|
FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052)
* rename stages
* remove support for external org billing, rename output files
* resman: make groups optional, align on new billing account variable
* bootstrap: multitenant outputs
* tenant bootstrap stage, untested
* fix folder name
* fix stage 0 output names
* optional creation for tag keys in organization module
* single tenant bootstrap minus tag
* rename output files, add tenant tag key
* fix organization module tag values output
* test skipping creation for tags in organization module
* single tenant bootstrap plan working
* multitenant bootstrap
* tfdoc
* fix check links error messages
* fix links
* tfdoc
* fix links
* rename fast tests, fix bootstrap tests
* multitenant stages have their own folder, simplify stage numbering
* stage renumbering
* wip
* rename tests
* exclude fast providers in fixture
* stage 0 tests
* stage 1 tests
* network stages tests
* stage tests
* tfdoc
* fix links
* tfdoc
* multitenant tests
* remove local files
* stage links command
* fix links script, TODO
* wip
* wip single tenant bootstrap
* working tenant bootstrap
* update gitignore
* remove local files
* tfdoc
* remove local files
* allow tests for tenant bootstrap stage
* tenant bootstrap proxies stage 1 tfvars
* stage 2 and 3 service accounts and IAM in tenant bootstrap
* wip
* wip
* wip
* drop multitenant bootstrap
* tfdoc
* add missing stage 2 SAs, fix org-level IAM condition
* wip
* wip
* optional tag value creation in organization module
* stage 1 working
* linting
* linting
* READMEs
* wip
* Make stage-links script work in old macos bash
* stage links command help
* fix output file names
* diagrams
* fix svg
* stage 0 skeleton and diagram
* test svg
* test svg
* test diagram
* diagram
* readme
* fix stage links script
* stage 0 readme
* README changes
* stage readmes
* fix outputs order
* fix link
* fix tests
* stage 1 test
* skip stage example
* boilerplate
* fix tftest skip
* default bootstrap stage log sinks to log buckets
* add logging to tenant bootstrap
* move iam variables out of tenant config
* fix cicd, reintroduce missing variable
* use optional in stage 1 cicd variable
* rename extras stage
* rename and move identity providers local, use optional for cicd variable
* tfdoc
* add support for wif pool and providers, ci/cd
* tfdoc
* fix links
* better handling of modules repository
* add missing role on logging project
* fix cicd pools in locals, test cicd
* fix workflow extension
* fix module source replacement
* allow tenant bootstrap cicd sa to impersonate resman sa
* tenant workflow templates fix for no providers file
* fix output files, push github workflow template to new repository
* remove try from outpout files
* align stage 1 cicd internals to stage 0
* tfdoc
* tests
* fix tests
* tests
* improve variable descriptions
* use optional in fast features
* actually create tenant log sinks, and allow the resman sa to do it
* test
* tests
* aaaand tests again
* fast features tenant override
* fast features tenant override
* fix wording
* add missing comment
* configure pf service accounts
* add missing comment
* tfdoc
* tests
* IAM docs
* update copyright
---------
Co-authored-by: Julio Castillo <jccb@google.com>
2023-02-04 06:00:45 -08:00
|
|
|
validation {
|
|
|
|
condition = var.billing_account.is_org_level != null
|
|
|
|
error_message = "Invalid `null` value for `billing_account.is_org_level`."
|
|
|
|
}
|
2022-02-03 11:30:56 -08:00
|
|
|
}
|
|
|
|
|
2022-02-15 23:07:58 -08:00
|
|
|
variable "custom_roles" {
|
FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052)
* rename stages
* remove support for external org billing, rename output files
* resman: make groups optional, align on new billing account variable
* bootstrap: multitenant outputs
* tenant bootstrap stage, untested
* fix folder name
* fix stage 0 output names
* optional creation for tag keys in organization module
* single tenant bootstrap minus tag
* rename output files, add tenant tag key
* fix organization module tag values output
* test skipping creation for tags in organization module
* single tenant bootstrap plan working
* multitenant bootstrap
* tfdoc
* fix check links error messages
* fix links
* tfdoc
* fix links
* rename fast tests, fix bootstrap tests
* multitenant stages have their own folder, simplify stage numbering
* stage renumbering
* wip
* rename tests
* exclude fast providers in fixture
* stage 0 tests
* stage 1 tests
* network stages tests
* stage tests
* tfdoc
* fix links
* tfdoc
* multitenant tests
* remove local files
* stage links command
* fix links script, TODO
* wip
* wip single tenant bootstrap
* working tenant bootstrap
* update gitignore
* remove local files
* tfdoc
* remove local files
* allow tests for tenant bootstrap stage
* tenant bootstrap proxies stage 1 tfvars
* stage 2 and 3 service accounts and IAM in tenant bootstrap
* wip
* wip
* wip
* drop multitenant bootstrap
* tfdoc
* add missing stage 2 SAs, fix org-level IAM condition
* wip
* wip
* optional tag value creation in organization module
* stage 1 working
* linting
* linting
* READMEs
* wip
* Make stage-links script work in old macos bash
* stage links command help
* fix output file names
* diagrams
* fix svg
* stage 0 skeleton and diagram
* test svg
* test svg
* test diagram
* diagram
* readme
* fix stage links script
* stage 0 readme
* README changes
* stage readmes
* fix outputs order
* fix link
* fix tests
* stage 1 test
* skip stage example
* boilerplate
* fix tftest skip
* default bootstrap stage log sinks to log buckets
* add logging to tenant bootstrap
* move iam variables out of tenant config
* fix cicd, reintroduce missing variable
* use optional in stage 1 cicd variable
* rename extras stage
* rename and move identity providers local, use optional for cicd variable
* tfdoc
* add support for wif pool and providers, ci/cd
* tfdoc
* fix links
* better handling of modules repository
* add missing role on logging project
* fix cicd pools in locals, test cicd
* fix workflow extension
* fix module source replacement
* allow tenant bootstrap cicd sa to impersonate resman sa
* tenant workflow templates fix for no providers file
* fix output files, push github workflow template to new repository
* remove try from outpout files
* align stage 1 cicd internals to stage 0
* tfdoc
* tests
* fix tests
* tests
* improve variable descriptions
* use optional in fast features
* actually create tenant log sinks, and allow the resman sa to do it
* test
* tests
* aaaand tests again
* fast features tenant override
* fast features tenant override
* fix wording
* add missing comment
* configure pf service accounts
* add missing comment
* tfdoc
* tests
* IAM docs
* update copyright
---------
Co-authored-by: Julio Castillo <jccb@google.com>
2023-02-04 06:00:45 -08:00
|
|
|
# tfdoc:variable:source 0-bootstrap
|
2022-02-15 23:07:58 -08:00
|
|
|
description = "Custom roles defined at the org level, in key => id format."
|
|
|
|
type = object({
|
|
|
|
service_project_network_admin = string
|
|
|
|
})
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
2022-02-03 11:30:56 -08:00
|
|
|
variable "dns" {
|
2022-11-24 09:56:01 -08:00
|
|
|
description = "Onprem DNS resolvers."
|
2022-02-03 11:30:56 -08:00
|
|
|
type = map(list(string))
|
|
|
|
default = {
|
|
|
|
onprem = ["10.0.200.3"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-08 00:59:43 -08:00
|
|
|
variable "factories_config" {
|
|
|
|
description = "Configuration for network resource factories."
|
|
|
|
type = object({
|
2023-05-03 22:38:40 -07:00
|
|
|
data_dir = optional(string, "data")
|
|
|
|
dns_policy_rules_file = optional(string, "data/dns-policy-rules.yaml")
|
2023-08-21 23:55:56 -07:00
|
|
|
firewall_policy_name = optional(string, "net-default")
|
2023-02-08 00:59:43 -08:00
|
|
|
})
|
|
|
|
default = {
|
|
|
|
data_dir = "data"
|
|
|
|
}
|
|
|
|
nullable = false
|
|
|
|
validation {
|
|
|
|
condition = var.factories_config.data_dir != null
|
|
|
|
error_message = "Data folder needs to be non-null."
|
|
|
|
}
|
|
|
|
validation {
|
|
|
|
condition = var.factories_config.firewall_policy_name != null
|
|
|
|
error_message = "Firewall policy name needs to be non-null."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-04 07:06:56 -08:00
|
|
|
variable "folder_ids" {
|
FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052)
* rename stages
* remove support for external org billing, rename output files
* resman: make groups optional, align on new billing account variable
* bootstrap: multitenant outputs
* tenant bootstrap stage, untested
* fix folder name
* fix stage 0 output names
* optional creation for tag keys in organization module
* single tenant bootstrap minus tag
* rename output files, add tenant tag key
* fix organization module tag values output
* test skipping creation for tags in organization module
* single tenant bootstrap plan working
* multitenant bootstrap
* tfdoc
* fix check links error messages
* fix links
* tfdoc
* fix links
* rename fast tests, fix bootstrap tests
* multitenant stages have their own folder, simplify stage numbering
* stage renumbering
* wip
* rename tests
* exclude fast providers in fixture
* stage 0 tests
* stage 1 tests
* network stages tests
* stage tests
* tfdoc
* fix links
* tfdoc
* multitenant tests
* remove local files
* stage links command
* fix links script, TODO
* wip
* wip single tenant bootstrap
* working tenant bootstrap
* update gitignore
* remove local files
* tfdoc
* remove local files
* allow tests for tenant bootstrap stage
* tenant bootstrap proxies stage 1 tfvars
* stage 2 and 3 service accounts and IAM in tenant bootstrap
* wip
* wip
* wip
* drop multitenant bootstrap
* tfdoc
* add missing stage 2 SAs, fix org-level IAM condition
* wip
* wip
* optional tag value creation in organization module
* stage 1 working
* linting
* linting
* READMEs
* wip
* Make stage-links script work in old macos bash
* stage links command help
* fix output file names
* diagrams
* fix svg
* stage 0 skeleton and diagram
* test svg
* test svg
* test diagram
* diagram
* readme
* fix stage links script
* stage 0 readme
* README changes
* stage readmes
* fix outputs order
* fix link
* fix tests
* stage 1 test
* skip stage example
* boilerplate
* fix tftest skip
* default bootstrap stage log sinks to log buckets
* add logging to tenant bootstrap
* move iam variables out of tenant config
* fix cicd, reintroduce missing variable
* use optional in stage 1 cicd variable
* rename extras stage
* rename and move identity providers local, use optional for cicd variable
* tfdoc
* add support for wif pool and providers, ci/cd
* tfdoc
* fix links
* better handling of modules repository
* add missing role on logging project
* fix cicd pools in locals, test cicd
* fix workflow extension
* fix module source replacement
* allow tenant bootstrap cicd sa to impersonate resman sa
* tenant workflow templates fix for no providers file
* fix output files, push github workflow template to new repository
* remove try from outpout files
* align stage 1 cicd internals to stage 0
* tfdoc
* tests
* fix tests
* tests
* improve variable descriptions
* use optional in fast features
* actually create tenant log sinks, and allow the resman sa to do it
* test
* tests
* aaaand tests again
* fast features tenant override
* fast features tenant override
* fix wording
* add missing comment
* configure pf service accounts
* add missing comment
* tfdoc
* tests
* IAM docs
* update copyright
---------
Co-authored-by: Julio Castillo <jccb@google.com>
2023-02-04 06:00:45 -08:00
|
|
|
# tfdoc:variable:source 1-resman
|
2022-02-04 07:06:56 -08:00
|
|
|
description = "Folders to be used for the networking resources in folders/nnnnnnnnnnn format. If null, folder will be created."
|
2022-02-15 23:07:58 -08:00
|
|
|
type = object({
|
|
|
|
networking = string
|
|
|
|
networking-dev = string
|
|
|
|
networking-prod = string
|
|
|
|
})
|
2022-02-03 11:30:56 -08:00
|
|
|
}
|
|
|
|
|
2023-03-09 08:57:44 -08:00
|
|
|
variable "gcp_ranges" {
|
|
|
|
description = "GCP address ranges in name => range format."
|
|
|
|
type = map(string)
|
|
|
|
default = {
|
|
|
|
gcp_dev_primary = "10.128.128.0/19"
|
|
|
|
gcp_dev_secondary = "10.128.160.0/19"
|
|
|
|
gcp_landing_trusted_primary = "10.128.64.0/19"
|
|
|
|
gcp_landing_trusted_secondary = "10.128.96.0/19"
|
|
|
|
gcp_landing_untrusted_primary = "10.128.0.0/19"
|
|
|
|
gcp_landing_untrusted_secondary = "10.128.32.0/19"
|
|
|
|
gcp_prod_primary = "10.128.192.0/19"
|
|
|
|
gcp_prod_secondary = "10.128.224.0/19"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-03 11:30:56 -08:00
|
|
|
variable "onprem_cidr" {
|
|
|
|
description = "Onprem addresses in name => range format."
|
|
|
|
type = map(string)
|
|
|
|
default = {
|
|
|
|
main = "10.0.0.0/24"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "organization" {
|
FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052)
* rename stages
* remove support for external org billing, rename output files
* resman: make groups optional, align on new billing account variable
* bootstrap: multitenant outputs
* tenant bootstrap stage, untested
* fix folder name
* fix stage 0 output names
* optional creation for tag keys in organization module
* single tenant bootstrap minus tag
* rename output files, add tenant tag key
* fix organization module tag values output
* test skipping creation for tags in organization module
* single tenant bootstrap plan working
* multitenant bootstrap
* tfdoc
* fix check links error messages
* fix links
* tfdoc
* fix links
* rename fast tests, fix bootstrap tests
* multitenant stages have their own folder, simplify stage numbering
* stage renumbering
* wip
* rename tests
* exclude fast providers in fixture
* stage 0 tests
* stage 1 tests
* network stages tests
* stage tests
* tfdoc
* fix links
* tfdoc
* multitenant tests
* remove local files
* stage links command
* fix links script, TODO
* wip
* wip single tenant bootstrap
* working tenant bootstrap
* update gitignore
* remove local files
* tfdoc
* remove local files
* allow tests for tenant bootstrap stage
* tenant bootstrap proxies stage 1 tfvars
* stage 2 and 3 service accounts and IAM in tenant bootstrap
* wip
* wip
* wip
* drop multitenant bootstrap
* tfdoc
* add missing stage 2 SAs, fix org-level IAM condition
* wip
* wip
* optional tag value creation in organization module
* stage 1 working
* linting
* linting
* READMEs
* wip
* Make stage-links script work in old macos bash
* stage links command help
* fix output file names
* diagrams
* fix svg
* stage 0 skeleton and diagram
* test svg
* test svg
* test diagram
* diagram
* readme
* fix stage links script
* stage 0 readme
* README changes
* stage readmes
* fix outputs order
* fix link
* fix tests
* stage 1 test
* skip stage example
* boilerplate
* fix tftest skip
* default bootstrap stage log sinks to log buckets
* add logging to tenant bootstrap
* move iam variables out of tenant config
* fix cicd, reintroduce missing variable
* use optional in stage 1 cicd variable
* rename extras stage
* rename and move identity providers local, use optional for cicd variable
* tfdoc
* add support for wif pool and providers, ci/cd
* tfdoc
* fix links
* better handling of modules repository
* add missing role on logging project
* fix cicd pools in locals, test cicd
* fix workflow extension
* fix module source replacement
* allow tenant bootstrap cicd sa to impersonate resman sa
* tenant workflow templates fix for no providers file
* fix output files, push github workflow template to new repository
* remove try from outpout files
* align stage 1 cicd internals to stage 0
* tfdoc
* tests
* fix tests
* tests
* improve variable descriptions
* use optional in fast features
* actually create tenant log sinks, and allow the resman sa to do it
* test
* tests
* aaaand tests again
* fast features tenant override
* fast features tenant override
* fix wording
* add missing comment
* configure pf service accounts
* add missing comment
* tfdoc
* tests
* IAM docs
* update copyright
---------
Co-authored-by: Julio Castillo <jccb@google.com>
2023-02-04 06:00:45 -08:00
|
|
|
# tfdoc:variable:source 0-bootstrap
|
2022-02-03 11:30:56 -08:00
|
|
|
description = "Organization details."
|
|
|
|
type = object({
|
|
|
|
domain = string
|
|
|
|
id = number
|
|
|
|
customer_id = string
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "outputs_location" {
|
|
|
|
description = "Path where providers and tfvars files for the following stages are written. Leave empty to disable."
|
|
|
|
type = string
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "prefix" {
|
FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052)
* rename stages
* remove support for external org billing, rename output files
* resman: make groups optional, align on new billing account variable
* bootstrap: multitenant outputs
* tenant bootstrap stage, untested
* fix folder name
* fix stage 0 output names
* optional creation for tag keys in organization module
* single tenant bootstrap minus tag
* rename output files, add tenant tag key
* fix organization module tag values output
* test skipping creation for tags in organization module
* single tenant bootstrap plan working
* multitenant bootstrap
* tfdoc
* fix check links error messages
* fix links
* tfdoc
* fix links
* rename fast tests, fix bootstrap tests
* multitenant stages have their own folder, simplify stage numbering
* stage renumbering
* wip
* rename tests
* exclude fast providers in fixture
* stage 0 tests
* stage 1 tests
* network stages tests
* stage tests
* tfdoc
* fix links
* tfdoc
* multitenant tests
* remove local files
* stage links command
* fix links script, TODO
* wip
* wip single tenant bootstrap
* working tenant bootstrap
* update gitignore
* remove local files
* tfdoc
* remove local files
* allow tests for tenant bootstrap stage
* tenant bootstrap proxies stage 1 tfvars
* stage 2 and 3 service accounts and IAM in tenant bootstrap
* wip
* wip
* wip
* drop multitenant bootstrap
* tfdoc
* add missing stage 2 SAs, fix org-level IAM condition
* wip
* wip
* optional tag value creation in organization module
* stage 1 working
* linting
* linting
* READMEs
* wip
* Make stage-links script work in old macos bash
* stage links command help
* fix output file names
* diagrams
* fix svg
* stage 0 skeleton and diagram
* test svg
* test svg
* test diagram
* diagram
* readme
* fix stage links script
* stage 0 readme
* README changes
* stage readmes
* fix outputs order
* fix link
* fix tests
* stage 1 test
* skip stage example
* boilerplate
* fix tftest skip
* default bootstrap stage log sinks to log buckets
* add logging to tenant bootstrap
* move iam variables out of tenant config
* fix cicd, reintroduce missing variable
* use optional in stage 1 cicd variable
* rename extras stage
* rename and move identity providers local, use optional for cicd variable
* tfdoc
* add support for wif pool and providers, ci/cd
* tfdoc
* fix links
* better handling of modules repository
* add missing role on logging project
* fix cicd pools in locals, test cicd
* fix workflow extension
* fix module source replacement
* allow tenant bootstrap cicd sa to impersonate resman sa
* tenant workflow templates fix for no providers file
* fix output files, push github workflow template to new repository
* remove try from outpout files
* align stage 1 cicd internals to stage 0
* tfdoc
* tests
* fix tests
* tests
* improve variable descriptions
* use optional in fast features
* actually create tenant log sinks, and allow the resman sa to do it
* test
* tests
* aaaand tests again
* fast features tenant override
* fast features tenant override
* fix wording
* add missing comment
* configure pf service accounts
* add missing comment
* tfdoc
* tests
* IAM docs
* update copyright
---------
Co-authored-by: Julio Castillo <jccb@google.com>
2023-02-04 06:00:45 -08:00
|
|
|
# tfdoc:variable:source 0-bootstrap
|
2022-02-12 04:29:22 -08:00
|
|
|
description = "Prefix used for resources that need unique names. Use 9 characters or less."
|
2022-02-03 11:30:56 -08:00
|
|
|
type = string
|
2022-02-12 04:29:22 -08:00
|
|
|
|
|
|
|
validation {
|
|
|
|
condition = try(length(var.prefix), 0) < 10
|
|
|
|
error_message = "Use a maximum of 9 characters for prefix."
|
|
|
|
}
|
2022-02-03 11:30:56 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "psa_ranges" {
|
2023-02-08 00:59:43 -08:00
|
|
|
description = "IP ranges used for Private Service Access (e.g. CloudSQL). Ranges is in name => range format."
|
2022-03-17 03:09:02 -07:00
|
|
|
type = object({
|
2022-03-17 06:29:28 -07:00
|
|
|
dev = object({
|
2023-09-16 01:31:02 -07:00
|
|
|
ranges = map(string)
|
|
|
|
export_routes = optional(bool, false)
|
|
|
|
import_routes = optional(bool, false)
|
2022-03-17 06:29:28 -07:00
|
|
|
})
|
|
|
|
prod = object({
|
2023-09-16 01:31:02 -07:00
|
|
|
ranges = map(string)
|
|
|
|
export_routes = optional(bool, false)
|
|
|
|
import_routes = optional(bool, false)
|
2022-03-17 06:29:28 -07:00
|
|
|
})
|
2022-03-17 03:09:02 -07:00
|
|
|
})
|
2022-03-17 06:37:10 -07:00
|
|
|
default = null
|
2022-02-03 11:30:56 -08:00
|
|
|
}
|
|
|
|
|
2023-02-08 00:59:43 -08:00
|
|
|
variable "regions" {
|
|
|
|
description = "Region definitions."
|
|
|
|
type = object({
|
|
|
|
primary = string
|
|
|
|
secondary = string
|
|
|
|
})
|
2022-08-03 02:36:27 -07:00
|
|
|
default = {
|
2023-02-08 00:59:43 -08:00
|
|
|
primary = "europe-west1"
|
|
|
|
secondary = "europe-west4"
|
2022-08-03 02:36:27 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-15 23:07:58 -08:00
|
|
|
variable "service_accounts" {
|
FAST multitenant bootstrap and resource management, rename org-level FAST stages (#1052)
* rename stages
* remove support for external org billing, rename output files
* resman: make groups optional, align on new billing account variable
* bootstrap: multitenant outputs
* tenant bootstrap stage, untested
* fix folder name
* fix stage 0 output names
* optional creation for tag keys in organization module
* single tenant bootstrap minus tag
* rename output files, add tenant tag key
* fix organization module tag values output
* test skipping creation for tags in organization module
* single tenant bootstrap plan working
* multitenant bootstrap
* tfdoc
* fix check links error messages
* fix links
* tfdoc
* fix links
* rename fast tests, fix bootstrap tests
* multitenant stages have their own folder, simplify stage numbering
* stage renumbering
* wip
* rename tests
* exclude fast providers in fixture
* stage 0 tests
* stage 1 tests
* network stages tests
* stage tests
* tfdoc
* fix links
* tfdoc
* multitenant tests
* remove local files
* stage links command
* fix links script, TODO
* wip
* wip single tenant bootstrap
* working tenant bootstrap
* update gitignore
* remove local files
* tfdoc
* remove local files
* allow tests for tenant bootstrap stage
* tenant bootstrap proxies stage 1 tfvars
* stage 2 and 3 service accounts and IAM in tenant bootstrap
* wip
* wip
* wip
* drop multitenant bootstrap
* tfdoc
* add missing stage 2 SAs, fix org-level IAM condition
* wip
* wip
* optional tag value creation in organization module
* stage 1 working
* linting
* linting
* READMEs
* wip
* Make stage-links script work in old macos bash
* stage links command help
* fix output file names
* diagrams
* fix svg
* stage 0 skeleton and diagram
* test svg
* test svg
* test diagram
* diagram
* readme
* fix stage links script
* stage 0 readme
* README changes
* stage readmes
* fix outputs order
* fix link
* fix tests
* stage 1 test
* skip stage example
* boilerplate
* fix tftest skip
* default bootstrap stage log sinks to log buckets
* add logging to tenant bootstrap
* move iam variables out of tenant config
* fix cicd, reintroduce missing variable
* use optional in stage 1 cicd variable
* rename extras stage
* rename and move identity providers local, use optional for cicd variable
* tfdoc
* add support for wif pool and providers, ci/cd
* tfdoc
* fix links
* better handling of modules repository
* add missing role on logging project
* fix cicd pools in locals, test cicd
* fix workflow extension
* fix module source replacement
* allow tenant bootstrap cicd sa to impersonate resman sa
* tenant workflow templates fix for no providers file
* fix output files, push github workflow template to new repository
* remove try from outpout files
* align stage 1 cicd internals to stage 0
* tfdoc
* tests
* fix tests
* tests
* improve variable descriptions
* use optional in fast features
* actually create tenant log sinks, and allow the resman sa to do it
* test
* tests
* aaaand tests again
* fast features tenant override
* fast features tenant override
* fix wording
* add missing comment
* configure pf service accounts
* add missing comment
* tfdoc
* tests
* IAM docs
* update copyright
---------
Co-authored-by: Julio Castillo <jccb@google.com>
2023-02-04 06:00:45 -08:00
|
|
|
# tfdoc:variable:source 1-resman
|
2022-02-15 23:07:58 -08:00
|
|
|
description = "Automation service accounts in name => email format."
|
|
|
|
type = object({
|
2022-02-16 04:35:29 -08:00
|
|
|
data-platform-dev = string
|
|
|
|
data-platform-prod = string
|
2022-06-30 09:22:57 -07:00
|
|
|
gke-dev = string
|
|
|
|
gke-prod = string
|
2022-02-15 23:07:58 -08:00
|
|
|
project-factory-dev = string
|
|
|
|
project-factory-prod = string
|
|
|
|
})
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
2023-03-09 08:57:44 -08:00
|
|
|
variable "vpn_onprem_primary_config" {
|
|
|
|
description = "VPN gateway configuration for onprem interconnection in the primary region."
|
|
|
|
type = object({
|
|
|
|
peer_external_gateways = map(object({
|
|
|
|
redundancy_type = string
|
|
|
|
interfaces = list(string)
|
|
|
|
}))
|
|
|
|
router_config = object({
|
|
|
|
create = optional(bool, true)
|
|
|
|
asn = number
|
|
|
|
name = optional(string)
|
|
|
|
keepalive = optional(number)
|
|
|
|
custom_advertise = optional(object({
|
|
|
|
all_subnets = bool
|
|
|
|
ip_ranges = map(string)
|
|
|
|
}))
|
2022-02-03 11:30:56 -08:00
|
|
|
})
|
2023-03-09 08:57:44 -08:00
|
|
|
tunnels = map(object({
|
|
|
|
bgp_peer = object({
|
|
|
|
address = string
|
|
|
|
asn = number
|
|
|
|
route_priority = optional(number, 1000)
|
|
|
|
custom_advertise = optional(object({
|
|
|
|
all_subnets = bool
|
|
|
|
all_vpc_subnets = bool
|
|
|
|
all_peer_vpc_subnets = bool
|
|
|
|
ip_ranges = map(string)
|
|
|
|
}))
|
|
|
|
})
|
|
|
|
# each BGP session on the same Cloud Router must use a unique /30 CIDR
|
|
|
|
# from the 169.254.0.0/16 block.
|
|
|
|
bgp_session_range = string
|
|
|
|
ike_version = optional(number, 2)
|
|
|
|
peer_external_gateway_interface = optional(number)
|
|
|
|
peer_gateway = optional(string, "default")
|
|
|
|
router = optional(string)
|
|
|
|
shared_secret = optional(string)
|
|
|
|
vpn_gateway_interface = number
|
|
|
|
}))
|
|
|
|
})
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "vpn_onprem_secondary_config" {
|
|
|
|
description = "VPN gateway configuration for onprem interconnection in the secondary region."
|
|
|
|
type = object({
|
|
|
|
peer_external_gateways = map(object({
|
2022-02-03 11:30:56 -08:00
|
|
|
redundancy_type = string
|
2022-11-30 01:50:00 -08:00
|
|
|
interfaces = list(string)
|
2023-03-09 08:57:44 -08:00
|
|
|
}))
|
|
|
|
router_config = object({
|
|
|
|
create = optional(bool, true)
|
|
|
|
asn = number
|
|
|
|
name = optional(string)
|
|
|
|
keepalive = optional(number)
|
|
|
|
custom_advertise = optional(object({
|
|
|
|
all_subnets = bool
|
|
|
|
ip_ranges = map(string)
|
|
|
|
}))
|
2022-02-03 11:30:56 -08:00
|
|
|
})
|
2023-03-09 08:57:44 -08:00
|
|
|
tunnels = map(object({
|
|
|
|
bgp_peer = object({
|
|
|
|
address = string
|
|
|
|
asn = number
|
|
|
|
route_priority = optional(number, 1000)
|
|
|
|
custom_advertise = optional(object({
|
|
|
|
all_subnets = bool
|
|
|
|
all_vpc_subnets = bool
|
|
|
|
all_peer_vpc_subnets = bool
|
|
|
|
ip_ranges = map(string)
|
|
|
|
}))
|
|
|
|
})
|
|
|
|
# each BGP session on the same Cloud Router must use a unique /30 CIDR
|
|
|
|
# from the 169.254.0.0/16 block.
|
|
|
|
bgp_session_range = string
|
|
|
|
ike_version = optional(number, 2)
|
|
|
|
peer_external_gateway_interface = optional(number)
|
|
|
|
peer_gateway = optional(string, "default")
|
|
|
|
router = optional(string)
|
|
|
|
shared_secret = optional(string)
|
2022-02-03 11:30:56 -08:00
|
|
|
vpn_gateway_interface = number
|
|
|
|
}))
|
2023-03-09 08:57:44 -08:00
|
|
|
})
|
|
|
|
default = null
|
2023-08-21 23:55:56 -07:00
|
|
|
}
|