From 913740b86e5fd8dcd3c69eceb944c7b86273535f Mon Sep 17 00:00:00 2001 From: Salim Afiune Date: Fri, 10 Jun 2022 07:40:04 -0700 Subject: [PATCH] chore(lwgenerate): bump GCP config module to ~> 2.0 (#814) Signed-off-by: Salim Afiune Maya --- lwgenerate/constants.go | 2 +- lwgenerate/gcp/gcp_test.go | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/lwgenerate/constants.go b/lwgenerate/constants.go index 5864510b6..59d08ed35 100644 --- a/lwgenerate/constants.go +++ b/lwgenerate/constants.go @@ -22,7 +22,7 @@ const ( HashAzureRMProviderVersion = "~> 2.91.0" GcpConfigSource = "lacework/config/gcp" - GcpConfigVersion = "~> 1.0" + GcpConfigVersion = "~> 2.0" GcpAuditLogSource = "lacework/audit-log/gcp" GcpAuditLogVersion = "~> 2.0" ) diff --git a/lwgenerate/gcp/gcp_test.go b/lwgenerate/gcp/gcp_test.go index 8cc3fc4d6..ec1f2c71d 100644 --- a/lwgenerate/gcp/gcp_test.go +++ b/lwgenerate/gcp/gcp_test.go @@ -515,7 +515,6 @@ var moduleImportOrganizationLevelAuditLogWithoutConfiguration = `module "gcp_org organization_id = "123456789" } ` - var moduleImportOrganizationLevelAuditLogCustomIntegrationName = `module "gcp_organization_level_audit_log" { source = "lacework/audit-log/gcp" version = "~> 2.0" @@ -527,13 +526,13 @@ var moduleImportOrganizationLevelAuditLogCustomIntegrationName = `module "gcp_or var moduleImportProjectLevelConfiguration = `module "gcp_project_level_config" { source = "lacework/config/gcp" - version = "~> 1.0" + version = "~> 2.0" } ` var moduleImportProjectLevelConfigurationExistingSA = `module "gcp_project_level_config" { source = "lacework/config/gcp" - version = "~> 1.0" + version = "~> 2.0" service_account_name = "foo" service_account_private_key = "123456789" use_existing_service_account = true @@ -542,14 +541,14 @@ var moduleImportProjectLevelConfigurationExistingSA = `module "gcp_project_level var moduleImportProjectLevelConfigurationCustomIntegrationName = `module "gcp_project_level_config" { source = "lacework/config/gcp" - version = "~> 1.0" + version = "~> 2.0" lacework_integration_name = "custom_integration_name" } ` var moduleImportOrganizationLevelConfiguration = `module "gcp_organization_level_config" { source = "lacework/config/gcp" - version = "~> 1.0" + version = "~> 2.0" org_integration = true organization_id = "123456789" } @@ -557,7 +556,7 @@ var moduleImportOrganizationLevelConfiguration = `module "gcp_organization_level var moduleImportOrganizationLevelConfigurationExistingSA = `module "gcp_organization_level_config" { source = "lacework/config/gcp" - version = "~> 1.0" + version = "~> 2.0" org_integration = true organization_id = "123456789" service_account_name = "foo" @@ -568,7 +567,7 @@ var moduleImportOrganizationLevelConfigurationExistingSA = `module "gcp_organiza var moduleImportOrganizationLevelConfigurationCustomIntegrationName = `module "gcp_organization_level_config" { source = "lacework/config/gcp" - version = "~> 1.0" + version = "~> 2.0" lacework_integration_name = "custom_integration_name" org_integration = true organization_id = "123456789"