replace module refs in 02-sec

This commit is contained in:
Ludovico Magnocavallo 2022-01-17 11:29:01 +01:00
parent bc50e9368a
commit c7a884f658
4 changed files with 11 additions and 6 deletions

View File

@ -8,4 +8,9 @@ TODO before merging
- [ ] proper docstring on new tools
- [x] modify github actions for different fast tfdoc usage
- [ ] add roadmap to top-level fast README
- [ ] update modules references to local paths (ludo:0+2sec, julio:1, simo:2net+3)
- [ ] update modules references to local paths
- [x] stage 00 (ludo)
- [ ] stage 01 (julio)
- [ ] stage 02-net (simo)
- [x] stage 02-sec (ludo)
- [ ] stage 03-pf (simo)

View File

@ -15,7 +15,7 @@
*/
module "dev-sec-project" {
source = "github.com/terraform-google-modules/cloud-foundation-fabric//modules/project?ref=v12.0.0"
source = "../../../modules/project"
name = "dev-sec-core-0"
parent = var.folder_id
prefix = var.prefix
@ -29,7 +29,7 @@ module "dev-sec-project" {
module "dev-sec-kms" {
for_each = toset(local.kms_locations)
source = "github.com/terraform-google-modules/cloud-foundation-fabric//modules/kms?ref=v12.0.0"
source = "../../../modules/kms"
project_id = module.dev-sec-project.project_id
keyring = {
location = each.key

View File

@ -15,7 +15,7 @@
*/
module "prod-sec-project" {
source = "github.com/terraform-google-modules/cloud-foundation-fabric//modules/project?ref=v12.0.0"
source = "../../../modules/project"
name = "prod-sec-core-0"
parent = var.folder_id
prefix = var.prefix
@ -29,7 +29,7 @@ module "prod-sec-project" {
module "prod-sec-kms" {
for_each = toset(local.kms_locations)
source = "github.com/terraform-google-modules/cloud-foundation-fabric//modules/kms?ref=v12.0.0"
source = "../../../modules/kms"
project_id = module.prod-sec-project.project_id
keyring = {
location = each.key

View File

@ -44,7 +44,7 @@ locals {
}
module "vpc-sc" {
source = "github.com/terraform-google-modules/cloud-foundation-fabric//modules/vpc-sc?ref=ea17e65"
source = "../../../modules/vpc-sc"
# only enable if we have projects defined for perimeters
count = anytrue([for k, v in local.vpc_sc_counts : v > 0]) ? 1 : 0
access_policy = null