2022-01-19 05:17:20 -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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
locals {
|
Add Data Platform to FAST (#510)
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* merge tools changes
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* add bolierplate to validate_schema
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
* stage 02-security
* Import Fast from dev repository.
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Copy FAST top level README
* Copy FAST top level README
* TODO list
* TODO list
* fix linting action to account for fast
* remove providers file
* add missing boilerplate
* update factory README
* align examples tfdoc
* fast readmes tfdoc
* disable markdown link check
* really disable markdown link check
* update TODO
* switch to local module refs in stage0
* replace module refs in 02-sec
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* merge tools changes
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* add bolierplate to validate_schema
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* stage 02-security
* Import Fast from dev repository.
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Copy FAST top level README
* Copy FAST top level README
* TODO list
* TODO list
* fix linting action to account for fast
* remove providers file
* add missing boilerplate
* update factory README
* align examples tfdoc
* fast readmes tfdoc
* disable markdown link check
* really disable markdown link check
* update TODO
* switch to local module refs in stage0
* replace module refs in 02-sec
* Move first draft to fast branch
* Fix roles and variables. Add e2e DAG example!
* Fix example
* Fix KMS
* First draft: README
* Update README
* Add DLP, update README
* Update Readme
* README
* Add todos
* Merge master
* Merge master
* Merge master
* Fix and test KMS, Fix and test existing prj (it works also with single prj), Update README
* Fix READM and Demo
* add on TF files
* Remove block comments
* simplify service_encryption_keys logic
* fix README
* Fix TODOs
* fix tfdoc description
* fix demo README
* fix sample files
* rename tf files
* Fix outputs file name, fix README, remove dependeces on composer resource
* Add test.
* Fix README.
* Initial README update
* README review
* Fix issues & readme
* Fix README
* Fix README
* Fix test error
* Fix test error
* Add datacatalog
* Fix test, for real? :-)
* fix readme
* support policy_boolean
* split Cloud NAT flag
* Fix README.
* Fix Shared VPC, first try :-)
* Fix tests and resource name
* fix tests
* fix tests
* README refactor
* Fix secondary range logic
* First commit
* Replace existing data platform
* Fix secondary range logic
* Fix README
* Replace DP example tests with the new one.
* Fix test module location.
* Fix test module location, for real.
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* Add PubSub encryption
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* Update READMEs
* Update README
* Fix composer roles and README.
* Fix test.
* Fixes.
* Add DLP documentation link.
* Temp commit with errors
* Refactor variables
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* rebase
* rebase
* rebase
* Rebase
* rebase
* Update READMEs
* Fixes.
* Fix new variables
* Fix misconfiguration and tests.
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* rebase
* rebase
* rebase
* Rebase
* rebase
* Update READMEs
* Fixes.
* Rebase - Fix secondary range logic
* Rebase - First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Initial fix for KMS
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Fix module path
* Initial fix for KMS
* Update READMEs
* Fixes.
* Fix new variables
* Revert VPC-SC logic
* Fix variable typos
* README fixes
* Fix Project Name logic
* Fix Linting
* READEME
* update READEME
* update READEME
* update README
* mandatory project creation, refactor
* formatting
* add TODO for service accounts descriptive name
* use project module to assign shared vpc roles
* Fix shared-vpc-project module
* Fix vpc name and tests
* README
* update to newer version
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
Co-authored-by: Julio Castillo <jccb@google.com>
2022-02-11 08:32:16 -08:00
|
|
|
_data_platform_sas = {
|
|
|
|
dev = module.branch-dp-dev-sa.iam_email
|
|
|
|
prod = module.branch-dp-prod-sa.iam_email
|
|
|
|
}
|
2022-01-19 05:17:20 -08:00
|
|
|
_project_factory_sas = {
|
|
|
|
dev = module.branch-teams-dev-projectfactory-sa.iam_email
|
|
|
|
prod = module.branch-teams-prod-projectfactory-sa.iam_email
|
|
|
|
}
|
|
|
|
providers = {
|
|
|
|
"02-networking" = templatefile("${path.module}/../../assets/templates/providers.tpl", {
|
|
|
|
bucket = module.branch-network-gcs.name
|
|
|
|
name = "networking"
|
|
|
|
sa = module.branch-network-sa.email
|
|
|
|
})
|
|
|
|
"02-security" = templatefile("${path.module}/../../assets/templates/providers.tpl", {
|
|
|
|
bucket = module.branch-security-gcs.name
|
|
|
|
name = "security"
|
|
|
|
sa = module.branch-security-sa.email
|
|
|
|
})
|
Add Data Platform to FAST (#510)
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* merge tools changes
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* add bolierplate to validate_schema
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
* stage 02-security
* Import Fast from dev repository.
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Copy FAST top level README
* Copy FAST top level README
* TODO list
* TODO list
* fix linting action to account for fast
* remove providers file
* add missing boilerplate
* update factory README
* align examples tfdoc
* fast readmes tfdoc
* disable markdown link check
* really disable markdown link check
* update TODO
* switch to local module refs in stage0
* replace module refs in 02-sec
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* merge tools changes
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* add bolierplate to validate_schema
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* stage 02-security
* Import Fast from dev repository.
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Copy FAST top level README
* Copy FAST top level README
* TODO list
* TODO list
* fix linting action to account for fast
* remove providers file
* add missing boilerplate
* update factory README
* align examples tfdoc
* fast readmes tfdoc
* disable markdown link check
* really disable markdown link check
* update TODO
* switch to local module refs in stage0
* replace module refs in 02-sec
* Move first draft to fast branch
* Fix roles and variables. Add e2e DAG example!
* Fix example
* Fix KMS
* First draft: README
* Update README
* Add DLP, update README
* Update Readme
* README
* Add todos
* Merge master
* Merge master
* Merge master
* Fix and test KMS, Fix and test existing prj (it works also with single prj), Update README
* Fix READM and Demo
* add on TF files
* Remove block comments
* simplify service_encryption_keys logic
* fix README
* Fix TODOs
* fix tfdoc description
* fix demo README
* fix sample files
* rename tf files
* Fix outputs file name, fix README, remove dependeces on composer resource
* Add test.
* Fix README.
* Initial README update
* README review
* Fix issues & readme
* Fix README
* Fix README
* Fix test error
* Fix test error
* Add datacatalog
* Fix test, for real? :-)
* fix readme
* support policy_boolean
* split Cloud NAT flag
* Fix README.
* Fix Shared VPC, first try :-)
* Fix tests and resource name
* fix tests
* fix tests
* README refactor
* Fix secondary range logic
* First commit
* Replace existing data platform
* Fix secondary range logic
* Fix README
* Replace DP example tests with the new one.
* Fix test module location.
* Fix test module location, for real.
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* Add PubSub encryption
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* Update READMEs
* Update README
* Fix composer roles and README.
* Fix test.
* Fixes.
* Add DLP documentation link.
* Temp commit with errors
* Refactor variables
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* rebase
* rebase
* rebase
* Rebase
* rebase
* Update READMEs
* Fixes.
* Fix new variables
* Fix misconfiguration and tests.
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* rebase
* rebase
* rebase
* Rebase
* rebase
* Update READMEs
* Fixes.
* Rebase - Fix secondary range logic
* Rebase - First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Initial fix for KMS
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Fix module path
* Initial fix for KMS
* Update READMEs
* Fixes.
* Fix new variables
* Revert VPC-SC logic
* Fix variable typos
* README fixes
* Fix Project Name logic
* Fix Linting
* READEME
* update READEME
* update READEME
* update README
* mandatory project creation, refactor
* formatting
* add TODO for service accounts descriptive name
* use project module to assign shared vpc roles
* Fix shared-vpc-project module
* Fix vpc name and tests
* README
* update to newer version
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
Co-authored-by: Julio Castillo <jccb@google.com>
2022-02-11 08:32:16 -08:00
|
|
|
"03-data-platform-dev" = templatefile("${path.module}/../../assets/templates/providers.tpl", {
|
|
|
|
bucket = module.branch-dp-dev-gcs.name
|
|
|
|
name = "dp-dev"
|
|
|
|
sa = module.branch-dp-dev-sa.email
|
|
|
|
})
|
|
|
|
"03-data-platform-prod" = templatefile("${path.module}/../../assets/templates/providers.tpl", {
|
|
|
|
bucket = module.branch-dp-prod-gcs.name
|
|
|
|
name = "dp-prod"
|
|
|
|
sa = module.branch-dp-prod-sa.email
|
|
|
|
})
|
2022-01-19 05:17:20 -08:00
|
|
|
"03-project-factory-dev" = templatefile("${path.module}/../../assets/templates/providers.tpl", {
|
|
|
|
bucket = module.branch-teams-dev-projectfactory-gcs.name
|
|
|
|
name = "team-dev"
|
|
|
|
sa = module.branch-teams-dev-projectfactory-sa.email
|
|
|
|
})
|
|
|
|
"03-project-factory-prod" = templatefile("${path.module}/../../assets/templates/providers.tpl", {
|
|
|
|
bucket = module.branch-teams-prod-projectfactory-gcs.name
|
|
|
|
name = "team-prod"
|
|
|
|
sa = module.branch-teams-prod-projectfactory-sa.email
|
|
|
|
})
|
2022-02-03 22:42:56 -08:00
|
|
|
"99-sandbox" = templatefile("${path.module}/../../assets/templates/providers.tpl", {
|
|
|
|
bucket = module.branch-sandbox-gcs.name
|
|
|
|
name = "sandbox"
|
|
|
|
sa = module.branch-sandbox-sa.email
|
|
|
|
})
|
2022-01-19 05:17:20 -08:00
|
|
|
}
|
|
|
|
tfvars = {
|
|
|
|
"02-networking" = jsonencode({
|
Add Data Platform to FAST (#510)
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* merge tools changes
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* add bolierplate to validate_schema
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
* stage 02-security
* Import Fast from dev repository.
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Copy FAST top level README
* Copy FAST top level README
* TODO list
* TODO list
* fix linting action to account for fast
* remove providers file
* add missing boilerplate
* update factory README
* align examples tfdoc
* fast readmes tfdoc
* disable markdown link check
* really disable markdown link check
* update TODO
* switch to local module refs in stage0
* replace module refs in 02-sec
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* merge tools changes
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* add bolierplate to validate_schema
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* stage 02-security
* Import Fast from dev repository.
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Copy FAST top level README
* Copy FAST top level README
* TODO list
* TODO list
* fix linting action to account for fast
* remove providers file
* add missing boilerplate
* update factory README
* align examples tfdoc
* fast readmes tfdoc
* disable markdown link check
* really disable markdown link check
* update TODO
* switch to local module refs in stage0
* replace module refs in 02-sec
* Move first draft to fast branch
* Fix roles and variables. Add e2e DAG example!
* Fix example
* Fix KMS
* First draft: README
* Update README
* Add DLP, update README
* Update Readme
* README
* Add todos
* Merge master
* Merge master
* Merge master
* Fix and test KMS, Fix and test existing prj (it works also with single prj), Update README
* Fix READM and Demo
* add on TF files
* Remove block comments
* simplify service_encryption_keys logic
* fix README
* Fix TODOs
* fix tfdoc description
* fix demo README
* fix sample files
* rename tf files
* Fix outputs file name, fix README, remove dependeces on composer resource
* Add test.
* Fix README.
* Initial README update
* README review
* Fix issues & readme
* Fix README
* Fix README
* Fix test error
* Fix test error
* Add datacatalog
* Fix test, for real? :-)
* fix readme
* support policy_boolean
* split Cloud NAT flag
* Fix README.
* Fix Shared VPC, first try :-)
* Fix tests and resource name
* fix tests
* fix tests
* README refactor
* Fix secondary range logic
* First commit
* Replace existing data platform
* Fix secondary range logic
* Fix README
* Replace DP example tests with the new one.
* Fix test module location.
* Fix test module location, for real.
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* Add PubSub encryption
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* Update READMEs
* Update README
* Fix composer roles and README.
* Fix test.
* Fixes.
* Add DLP documentation link.
* Temp commit with errors
* Refactor variables
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* rebase
* rebase
* rebase
* Rebase
* rebase
* Update READMEs
* Fixes.
* Fix new variables
* Fix misconfiguration and tests.
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* rebase
* rebase
* rebase
* Rebase
* rebase
* Update READMEs
* Fixes.
* Rebase - Fix secondary range logic
* Rebase - First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Initial fix for KMS
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Fix module path
* Initial fix for KMS
* Update READMEs
* Fixes.
* Fix new variables
* Revert VPC-SC logic
* Fix variable typos
* README fixes
* Fix Project Name logic
* Fix Linting
* READEME
* update READEME
* update READEME
* update README
* mandatory project creation, refactor
* formatting
* add TODO for service accounts descriptive name
* use project module to assign shared vpc roles
* Fix shared-vpc-project module
* Fix vpc name and tests
* README
* update to newer version
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
Co-authored-by: Julio Castillo <jccb@google.com>
2022-02-11 08:32:16 -08:00
|
|
|
data_platform_sa = local._data_platform_sas
|
2022-02-04 06:50:05 -08:00
|
|
|
folder_ids = {
|
|
|
|
networking = module.branch-network-folder.id
|
|
|
|
networking-dev = module.branch-network-dev-folder.id
|
|
|
|
networking-prod = module.branch-network-prod-folder.id
|
|
|
|
}
|
2022-01-19 05:17:20 -08:00
|
|
|
project_factory_sa = local._project_factory_sas
|
Add Data Platform to FAST (#510)
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* merge tools changes
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* add bolierplate to validate_schema
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
* stage 02-security
* Import Fast from dev repository.
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Copy FAST top level README
* Copy FAST top level README
* TODO list
* TODO list
* fix linting action to account for fast
* remove providers file
* add missing boilerplate
* update factory README
* align examples tfdoc
* fast readmes tfdoc
* disable markdown link check
* really disable markdown link check
* update TODO
* switch to local module refs in stage0
* replace module refs in 02-sec
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* merge tools changes
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* add bolierplate to validate_schema
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* stage 02-security
* Import Fast from dev repository.
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Copy FAST top level README
* Copy FAST top level README
* TODO list
* TODO list
* fix linting action to account for fast
* remove providers file
* add missing boilerplate
* update factory README
* align examples tfdoc
* fast readmes tfdoc
* disable markdown link check
* really disable markdown link check
* update TODO
* switch to local module refs in stage0
* replace module refs in 02-sec
* Move first draft to fast branch
* Fix roles and variables. Add e2e DAG example!
* Fix example
* Fix KMS
* First draft: README
* Update README
* Add DLP, update README
* Update Readme
* README
* Add todos
* Merge master
* Merge master
* Merge master
* Fix and test KMS, Fix and test existing prj (it works also with single prj), Update README
* Fix READM and Demo
* add on TF files
* Remove block comments
* simplify service_encryption_keys logic
* fix README
* Fix TODOs
* fix tfdoc description
* fix demo README
* fix sample files
* rename tf files
* Fix outputs file name, fix README, remove dependeces on composer resource
* Add test.
* Fix README.
* Initial README update
* README review
* Fix issues & readme
* Fix README
* Fix README
* Fix test error
* Fix test error
* Add datacatalog
* Fix test, for real? :-)
* fix readme
* support policy_boolean
* split Cloud NAT flag
* Fix README.
* Fix Shared VPC, first try :-)
* Fix tests and resource name
* fix tests
* fix tests
* README refactor
* Fix secondary range logic
* First commit
* Replace existing data platform
* Fix secondary range logic
* Fix README
* Replace DP example tests with the new one.
* Fix test module location.
* Fix test module location, for real.
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* Add PubSub encryption
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* Update READMEs
* Update README
* Fix composer roles and README.
* Fix test.
* Fixes.
* Add DLP documentation link.
* Temp commit with errors
* Refactor variables
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* rebase
* rebase
* rebase
* Rebase
* rebase
* Update READMEs
* Fixes.
* Fix new variables
* Fix misconfiguration and tests.
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* rebase
* rebase
* rebase
* Rebase
* rebase
* Update READMEs
* Fixes.
* Rebase - Fix secondary range logic
* Rebase - First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Initial fix for KMS
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Fix module path
* Initial fix for KMS
* Update READMEs
* Fixes.
* Fix new variables
* Revert VPC-SC logic
* Fix variable typos
* README fixes
* Fix Project Name logic
* Fix Linting
* READEME
* update READEME
* update READEME
* update README
* mandatory project creation, refactor
* formatting
* add TODO for service accounts descriptive name
* use project module to assign shared vpc roles
* Fix shared-vpc-project module
* Fix vpc name and tests
* README
* update to newer version
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
Co-authored-by: Julio Castillo <jccb@google.com>
2022-02-11 08:32:16 -08:00
|
|
|
data_platform_sa = local._data_platform_sas
|
2022-01-19 05:17:20 -08:00
|
|
|
})
|
|
|
|
"02-security" = jsonencode({
|
|
|
|
folder_id = module.branch-security-folder.id
|
|
|
|
kms_restricted_admins = {
|
|
|
|
for k, v in local._project_factory_sas : k => [v]
|
|
|
|
}
|
|
|
|
})
|
Add Data Platform to FAST (#510)
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* merge tools changes
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* add bolierplate to validate_schema
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
* stage 02-security
* Import Fast from dev repository.
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Copy FAST top level README
* Copy FAST top level README
* TODO list
* TODO list
* fix linting action to account for fast
* remove providers file
* add missing boilerplate
* update factory README
* align examples tfdoc
* fast readmes tfdoc
* disable markdown link check
* really disable markdown link check
* update TODO
* switch to local module refs in stage0
* replace module refs in 02-sec
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* merge tools changes
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* add bolierplate to validate_schema
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
* Import Fast from dev repository.
>
>
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* stage 02-security
* Import Fast from dev repository.
Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
* Copy FAST top level README
* Copy FAST top level README
* TODO list
* TODO list
* fix linting action to account for fast
* remove providers file
* add missing boilerplate
* update factory README
* align examples tfdoc
* fast readmes tfdoc
* disable markdown link check
* really disable markdown link check
* update TODO
* switch to local module refs in stage0
* replace module refs in 02-sec
* Move first draft to fast branch
* Fix roles and variables. Add e2e DAG example!
* Fix example
* Fix KMS
* First draft: README
* Update README
* Add DLP, update README
* Update Readme
* README
* Add todos
* Merge master
* Merge master
* Merge master
* Fix and test KMS, Fix and test existing prj (it works also with single prj), Update README
* Fix READM and Demo
* add on TF files
* Remove block comments
* simplify service_encryption_keys logic
* fix README
* Fix TODOs
* fix tfdoc description
* fix demo README
* fix sample files
* rename tf files
* Fix outputs file name, fix README, remove dependeces on composer resource
* Add test.
* Fix README.
* Initial README update
* README review
* Fix issues & readme
* Fix README
* Fix README
* Fix test error
* Fix test error
* Add datacatalog
* Fix test, for real? :-)
* fix readme
* support policy_boolean
* split Cloud NAT flag
* Fix README.
* Fix Shared VPC, first try :-)
* Fix tests and resource name
* fix tests
* fix tests
* README refactor
* Fix secondary range logic
* First commit
* Replace existing data platform
* Fix secondary range logic
* Fix README
* Replace DP example tests with the new one.
* Fix test module location.
* Fix test module location, for real.
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* Add PubSub encryption
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* Update READMEs
* Update README
* Fix composer roles and README.
* Fix test.
* Fixes.
* Add DLP documentation link.
* Temp commit with errors
* Refactor variables
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* rebase
* rebase
* rebase
* Rebase
* rebase
* Update READMEs
* Fixes.
* Fix new variables
* Fix misconfiguration and tests.
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Add TODO, VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Add TODO
* Fix module path
* Initial fix for KMS
* rebase
* rebase
* rebase
* Rebase
* rebase
* Update READMEs
* Fixes.
* Rebase - Fix secondary range logic
* Rebase - First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Possible improvement to handle VPC-SC perimeter projects with folder as variable
* Initial fix for KMS
* Fix secondary range logic
* First commit
* Support DataPlatform project in VPC-SC
* Fix VPC-SC
* Fix module path
* Initial fix for KMS
* Update READMEs
* Fixes.
* Fix new variables
* Revert VPC-SC logic
* Fix variable typos
* README fixes
* Fix Project Name logic
* Fix Linting
* READEME
* update READEME
* update READEME
* update README
* mandatory project creation, refactor
* formatting
* add TODO for service accounts descriptive name
* use project module to assign shared vpc roles
* Fix shared-vpc-project module
* Fix vpc name and tests
* README
* update to newer version
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
Co-authored-by: Simone Ruffilli <sruffilli@google.com>
Co-authored-by: Julio Castillo <juliocc@users.noreply.github.com>
Co-authored-by: Julio Castillo <jccb@google.com>
2022-02-11 08:32:16 -08:00
|
|
|
"03-data-platform-dev" = jsonencode({
|
|
|
|
folder_id = module.branch-dp-dev-folder.id
|
|
|
|
date_platform_sa = module.branch-dp-dev-sa.iam_email
|
|
|
|
})
|
|
|
|
"03-data-platform-prod" = jsonencode({
|
|
|
|
folder_id = module.branch-dp-dev-folder.id
|
|
|
|
date_platform_sa = module.branch-dp-dev-sa.iam_email
|
|
|
|
})
|
2022-01-19 05:17:20 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# optionally generate providers and tfvars files for subsequent stages
|
|
|
|
|
|
|
|
resource "local_file" "providers" {
|
|
|
|
for_each = var.outputs_location == null ? {} : local.providers
|
2022-02-06 09:34:32 -08:00
|
|
|
filename = "${pathexpand(var.outputs_location)}/${each.key}/providers.tf"
|
2022-01-19 05:17:20 -08:00
|
|
|
content = each.value
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "local_file" "tfvars" {
|
|
|
|
for_each = var.outputs_location == null ? {} : local.tfvars
|
2022-02-06 09:34:32 -08:00
|
|
|
filename = "${pathexpand(var.outputs_location)}/${each.key}/terraform-resman.auto.tfvars.json"
|
2022-01-19 05:17:20 -08:00
|
|
|
content = each.value
|
|
|
|
}
|
|
|
|
|
|
|
|
# outputs
|
|
|
|
|
|
|
|
output "networking" {
|
|
|
|
# tfdoc:output:consumers 02-networking
|
|
|
|
description = "Data for the networking stage."
|
|
|
|
value = {
|
|
|
|
folder = module.branch-network-folder.id
|
|
|
|
gcs_bucket = module.branch-network-gcs.name
|
|
|
|
service_account = module.branch-network-sa.iam_email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "project_factories" {
|
|
|
|
# tfdoc:output:consumers xx-teams
|
|
|
|
description = "Data for the project factories stage."
|
|
|
|
value = {
|
|
|
|
dev = {
|
|
|
|
bucket = module.branch-teams-dev-projectfactory-gcs.name
|
|
|
|
sa = module.branch-teams-dev-projectfactory-sa.email
|
|
|
|
}
|
|
|
|
prod = {
|
|
|
|
bucket = module.branch-teams-prod-projectfactory-gcs.name
|
|
|
|
sa = module.branch-teams-prod-projectfactory-sa.email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# ready to use provider configurations for subsequent stages
|
|
|
|
|
|
|
|
output "providers" {
|
|
|
|
# tfdoc:output:consumers 02-networking 02-security xx-sandbox xx-teams
|
|
|
|
description = "Terraform provider files for this stage and dependent stages."
|
|
|
|
sensitive = true
|
|
|
|
value = local.providers
|
|
|
|
}
|
|
|
|
|
|
|
|
output "sandbox" {
|
|
|
|
# tfdoc:output:consumers xx-sandbox
|
|
|
|
description = "Data for the sandbox stage."
|
|
|
|
value = {
|
|
|
|
folder = module.branch-sandbox-folder.id
|
|
|
|
gcs_bucket = module.branch-sandbox-gcs.name
|
|
|
|
service_account = module.branch-sandbox-sa.email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "security" {
|
|
|
|
# tfdoc:output:consumers 02-security
|
|
|
|
description = "Data for the networking stage."
|
|
|
|
value = {
|
|
|
|
folder = module.branch-security-folder.id
|
|
|
|
gcs_bucket = module.branch-security-gcs.name
|
|
|
|
service_account = module.branch-security-sa.iam_email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "teams" {
|
|
|
|
description = "Data for the teams stage."
|
|
|
|
value = {
|
|
|
|
for k, v in module.branch-teams-team-folder : k => {
|
|
|
|
folder = v.id
|
|
|
|
gcs_bucket = module.branch-teams-team-gcs[k].name
|
|
|
|
service_account = module.branch-teams-team-sa[k].email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# ready to use variable values for subsequent stages
|
|
|
|
|
|
|
|
output "tfvars" {
|
|
|
|
description = "Terraform variable files for the following stages."
|
|
|
|
sensitive = true
|
|
|
|
value = local.tfvars
|
|
|
|
}
|