From b011b02addadc52b99f0c746037c6cf42aaf4904 Mon Sep 17 00:00:00 2001 From: Pengyuan Zhao Date: Thu, 7 Nov 2024 17:26:49 -0800 Subject: [PATCH 1/3] fix: bump lacework provider version to 2.0 --- lwgenerate/aws/aws_test.go | 12 ++++++------ lwgenerate/aws_controltower/aws_controltower_test.go | 4 ++-- lwgenerate/aws_eks_audit/aws_eks_audit_test.go | 2 +- .../test-data/activity-log-with-all-subscriptions.tf | 2 +- .../test-data/activity-log-with-existing-storage.tf | 2 +- .../test-data/activity-log-with-lacework-profile.tf | 2 +- .../activity-log-with-list-subscriptions.tf | 2 +- .../azure/test-data/activity-log-with-location.tf | 2 +- .../azure/test-data/activity_log_with_config.tf | 2 +- .../activity_log_with_config_azureadprovider_args.tf | 2 +- .../test-data/activity_log_with_config_extra.tf | 2 +- .../activity_log_with_config_provider_args.tf | 2 +- .../activity_log_with_config_root_blocks.tf | 2 +- .../azure/test-data/activity_log_without_config.tf | 2 +- .../test-data/config-log-with-list-subscriptions.tf | 2 +- .../azure/test-data/config-with-all-subscriptions.tf | 2 +- .../test-data/config-with-azurerm-subscription.tf | 2 +- .../azure/test-data/config-with-management-group.tf | 2 +- .../azure/test-data/config_without_activity_log.tf | 2 +- lwgenerate/azure/test-data/customer-ad-details.tf | 2 +- ...-activity-log-event-hub-location-and-partition.tf | 2 +- .../entra-id-activity-log-existing-ad-app.tf | 2 +- .../entra-id-activity-log-existing-event-hub-ns.tf | 2 +- .../entra-id-activity-log-no-custom-input.tf | 2 +- lwgenerate/azure/test-data/renamed_activity_log.tf | 2 +- lwgenerate/azure/test-data/renamed_config.tf | 2 +- .../test-data/renamed_config_and_activity_log.tf | 2 +- lwgenerate/constants.go | 2 +- lwgenerate/gcp/gcp_test.go | 4 ++-- lwgenerate/oci/oci.go | 2 +- lwgenerate/oci/oci_test.go | 2 +- 31 files changed, 38 insertions(+), 38 deletions(-) diff --git a/lwgenerate/aws/aws_test.go b/lwgenerate/aws/aws_test.go index 414958d66..d64c5a855 100644 --- a/lwgenerate/aws/aws_test.go +++ b/lwgenerate/aws/aws_test.go @@ -424,7 +424,7 @@ var requiredProvidersWithCustomBlock = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } backend "s3" { @@ -436,7 +436,7 @@ var requiredProviders = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -569,7 +569,7 @@ var moduleImportAgentless = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -613,7 +613,7 @@ var moduleImportAgentlessOrganization = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -740,7 +740,7 @@ var moduleImportConfigWithProviderTags = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -787,7 +787,7 @@ var moduleImportConfigWithMultipleAccounts = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/aws_controltower/aws_controltower_test.go b/lwgenerate/aws_controltower/aws_controltower_test.go index fbb9c41bf..fdd076054 100644 --- a/lwgenerate/aws_controltower/aws_controltower_test.go +++ b/lwgenerate/aws_controltower/aws_controltower_test.go @@ -85,7 +85,7 @@ var moduleCloudtrailControlTowerBasic = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -123,7 +123,7 @@ var moduleCloudtrailControlTowerWithAccountMappings = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/aws_eks_audit/aws_eks_audit_test.go b/lwgenerate/aws_eks_audit/aws_eks_audit_test.go index 2f47e14dd..57f51b2f4 100644 --- a/lwgenerate/aws_eks_audit/aws_eks_audit_test.go +++ b/lwgenerate/aws_eks_audit/aws_eks_audit_test.go @@ -445,7 +445,7 @@ var requiredProviders = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/activity-log-with-all-subscriptions.tf b/lwgenerate/azure/test-data/activity-log-with-all-subscriptions.tf index b2824b126..b3e8a17ae 100644 --- a/lwgenerate/azure/test-data/activity-log-with-all-subscriptions.tf +++ b/lwgenerate/azure/test-data/activity-log-with-all-subscriptions.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/activity-log-with-existing-storage.tf b/lwgenerate/azure/test-data/activity-log-with-existing-storage.tf index 6e4c69b64..635b17375 100644 --- a/lwgenerate/azure/test-data/activity-log-with-existing-storage.tf +++ b/lwgenerate/azure/test-data/activity-log-with-existing-storage.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/activity-log-with-lacework-profile.tf b/lwgenerate/azure/test-data/activity-log-with-lacework-profile.tf index 081c4f8e8..52d9fcb8f 100644 --- a/lwgenerate/azure/test-data/activity-log-with-lacework-profile.tf +++ b/lwgenerate/azure/test-data/activity-log-with-lacework-profile.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/activity-log-with-list-subscriptions.tf b/lwgenerate/azure/test-data/activity-log-with-list-subscriptions.tf index 5be3576d6..23e76c036 100644 --- a/lwgenerate/azure/test-data/activity-log-with-list-subscriptions.tf +++ b/lwgenerate/azure/test-data/activity-log-with-list-subscriptions.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/activity-log-with-location.tf b/lwgenerate/azure/test-data/activity-log-with-location.tf index a0d53d41c..4efceb7df 100644 --- a/lwgenerate/azure/test-data/activity-log-with-location.tf +++ b/lwgenerate/azure/test-data/activity-log-with-location.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/activity_log_with_config.tf b/lwgenerate/azure/test-data/activity_log_with_config.tf index d378b9136..0d2da8275 100644 --- a/lwgenerate/azure/test-data/activity_log_with_config.tf +++ b/lwgenerate/azure/test-data/activity_log_with_config.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/activity_log_with_config_azureadprovider_args.tf b/lwgenerate/azure/test-data/activity_log_with_config_azureadprovider_args.tf index 5946ac6a5..2a9caf799 100644 --- a/lwgenerate/azure/test-data/activity_log_with_config_azureadprovider_args.tf +++ b/lwgenerate/azure/test-data/activity_log_with_config_azureadprovider_args.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/activity_log_with_config_extra.tf b/lwgenerate/azure/test-data/activity_log_with_config_extra.tf index b74600c90..47468987c 100644 --- a/lwgenerate/azure/test-data/activity_log_with_config_extra.tf +++ b/lwgenerate/azure/test-data/activity_log_with_config_extra.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/activity_log_with_config_provider_args.tf b/lwgenerate/azure/test-data/activity_log_with_config_provider_args.tf index bc22ff32a..f4cdff9df 100644 --- a/lwgenerate/azure/test-data/activity_log_with_config_provider_args.tf +++ b/lwgenerate/azure/test-data/activity_log_with_config_provider_args.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/activity_log_with_config_root_blocks.tf b/lwgenerate/azure/test-data/activity_log_with_config_root_blocks.tf index 15f5c3b5e..3ca92a39f 100644 --- a/lwgenerate/azure/test-data/activity_log_with_config_root_blocks.tf +++ b/lwgenerate/azure/test-data/activity_log_with_config_root_blocks.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } backend "s3" { diff --git a/lwgenerate/azure/test-data/activity_log_without_config.tf b/lwgenerate/azure/test-data/activity_log_without_config.tf index 9329b4a3c..0b528094e 100644 --- a/lwgenerate/azure/test-data/activity_log_without_config.tf +++ b/lwgenerate/azure/test-data/activity_log_without_config.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/config-log-with-list-subscriptions.tf b/lwgenerate/azure/test-data/config-log-with-list-subscriptions.tf index 66158b743..d7741da60 100644 --- a/lwgenerate/azure/test-data/config-log-with-list-subscriptions.tf +++ b/lwgenerate/azure/test-data/config-log-with-list-subscriptions.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/config-with-all-subscriptions.tf b/lwgenerate/azure/test-data/config-with-all-subscriptions.tf index 648ba67d7..4cca1a9db 100644 --- a/lwgenerate/azure/test-data/config-with-all-subscriptions.tf +++ b/lwgenerate/azure/test-data/config-with-all-subscriptions.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/config-with-azurerm-subscription.tf b/lwgenerate/azure/test-data/config-with-azurerm-subscription.tf index 0e5be1ce1..6df17a5e9 100644 --- a/lwgenerate/azure/test-data/config-with-azurerm-subscription.tf +++ b/lwgenerate/azure/test-data/config-with-azurerm-subscription.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/config-with-management-group.tf b/lwgenerate/azure/test-data/config-with-management-group.tf index fce27c6be..8874ba82f 100644 --- a/lwgenerate/azure/test-data/config-with-management-group.tf +++ b/lwgenerate/azure/test-data/config-with-management-group.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/config_without_activity_log.tf b/lwgenerate/azure/test-data/config_without_activity_log.tf index a86986bce..a275326a5 100644 --- a/lwgenerate/azure/test-data/config_without_activity_log.tf +++ b/lwgenerate/azure/test-data/config_without_activity_log.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/customer-ad-details.tf b/lwgenerate/azure/test-data/customer-ad-details.tf index 19527a203..e1c21bcfd 100644 --- a/lwgenerate/azure/test-data/customer-ad-details.tf +++ b/lwgenerate/azure/test-data/customer-ad-details.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/entra-id-activity-log-event-hub-location-and-partition.tf b/lwgenerate/azure/test-data/entra-id-activity-log-event-hub-location-and-partition.tf index ad69a4a04..2f496c506 100644 --- a/lwgenerate/azure/test-data/entra-id-activity-log-event-hub-location-and-partition.tf +++ b/lwgenerate/azure/test-data/entra-id-activity-log-event-hub-location-and-partition.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/entra-id-activity-log-existing-ad-app.tf b/lwgenerate/azure/test-data/entra-id-activity-log-existing-ad-app.tf index 3555295a4..04332793c 100644 --- a/lwgenerate/azure/test-data/entra-id-activity-log-existing-ad-app.tf +++ b/lwgenerate/azure/test-data/entra-id-activity-log-existing-ad-app.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/entra-id-activity-log-existing-event-hub-ns.tf b/lwgenerate/azure/test-data/entra-id-activity-log-existing-event-hub-ns.tf index be17974d7..96057c2e5 100644 --- a/lwgenerate/azure/test-data/entra-id-activity-log-existing-event-hub-ns.tf +++ b/lwgenerate/azure/test-data/entra-id-activity-log-existing-event-hub-ns.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/entra-id-activity-log-no-custom-input.tf b/lwgenerate/azure/test-data/entra-id-activity-log-no-custom-input.tf index 1992b4b32..9d3ca330f 100644 --- a/lwgenerate/azure/test-data/entra-id-activity-log-no-custom-input.tf +++ b/lwgenerate/azure/test-data/entra-id-activity-log-no-custom-input.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/renamed_activity_log.tf b/lwgenerate/azure/test-data/renamed_activity_log.tf index adcf7dca7..3228042e1 100644 --- a/lwgenerate/azure/test-data/renamed_activity_log.tf +++ b/lwgenerate/azure/test-data/renamed_activity_log.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/renamed_config.tf b/lwgenerate/azure/test-data/renamed_config.tf index 5b470728b..3eac26e65 100644 --- a/lwgenerate/azure/test-data/renamed_config.tf +++ b/lwgenerate/azure/test-data/renamed_config.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/azure/test-data/renamed_config_and_activity_log.tf b/lwgenerate/azure/test-data/renamed_config_and_activity_log.tf index 62f417463..1f015351c 100644 --- a/lwgenerate/azure/test-data/renamed_config_and_activity_log.tf +++ b/lwgenerate/azure/test-data/renamed_config_and_activity_log.tf @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } diff --git a/lwgenerate/constants.go b/lwgenerate/constants.go index 633dd5d5c..ab25a20d3 100644 --- a/lwgenerate/constants.go +++ b/lwgenerate/constants.go @@ -3,7 +3,7 @@ package lwgenerate // TODO update const ( LaceworkProviderSource = "lacework/lacework" - LaceworkProviderVersion = "~> 1.0" + LaceworkProviderVersion = "~> 2.0" AwsAgentlessSource = "lacework/agentless-scanning/aws" AwsAgentlessVersion = "~> 0.6" diff --git a/lwgenerate/gcp/gcp_test.go b/lwgenerate/gcp/gcp_test.go index 607dc1001..43443d5a1 100644 --- a/lwgenerate/gcp/gcp_test.go +++ b/lwgenerate/gcp/gcp_test.go @@ -804,7 +804,7 @@ var RequiredProviders = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -814,7 +814,7 @@ var requiredProvidersWithCustomBlock = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } backend "s3" { diff --git a/lwgenerate/oci/oci.go b/lwgenerate/oci/oci.go index f5128f517..149ed1135 100644 --- a/lwgenerate/oci/oci.go +++ b/lwgenerate/oci/oci.go @@ -26,7 +26,7 @@ type GenerateOciTfConfigurationArgs struct { type OciTerraformModifier func(c *GenerateOciTfConfigurationArgs) const ( - LaceworkProviderVersion = ">= 1.9.0" + LaceworkProviderVersion = "~> 2.0" ) // Set the Lacework profile to use for integration diff --git a/lwgenerate/oci/oci_test.go b/lwgenerate/oci/oci_test.go index cf265c765..ed373e758 100644 --- a/lwgenerate/oci/oci_test.go +++ b/lwgenerate/oci/oci_test.go @@ -27,7 +27,7 @@ var ConfigResultBasic = `terraform { required_providers { lacework = { source = "lacework/lacework" - version = ">= 1.9.0" + version = "~> 2.0" } } } From f767ead3220d87a3832aa554d447218b05c764cf Mon Sep 17 00:00:00 2001 From: Pengyuan Zhao Date: Sun, 10 Nov 2024 21:47:30 -0700 Subject: [PATCH 2/3] chore: update Azure module versions --- lwgenerate/constants.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lwgenerate/constants.go b/lwgenerate/constants.go index ab25a20d3..15702d13a 100644 --- a/lwgenerate/constants.go +++ b/lwgenerate/constants.go @@ -19,13 +19,13 @@ const ( AwsEksAuditVersion = "~> 1.0" LWAzureConfigSource = "lacework/config/azure" - LWAzureConfigVersion = "~> 2.0" + LWAzureConfigVersion = "~> 3.0" LWAzureActivityLogSource = "lacework/activity-log/azure" - LWAzureActivityLogVersion = "~> 2.0" + LWAzureActivityLogVersion = "~> 3.0" LWAzureEntraIdActivityLogSource = "lacework/microsoft-entra-id-activity-log/azure" - LWAzureEntraIdActivityLogVersion = "~> 0.2" + LWAzureEntraIdActivityLogVersion = "~> 0.3" LWAzureADSource = "lacework/ad-application/azure" - LWAzureADVersion = "~> 1.0" + LWAzureADVersion = "~> 2.0" GcpAgentlessSource = "lacework/agentless-scanning/gcp" GcpAgentlessVersion = "~> 2.0" From a5eb4bb59ba77d9a79a873e47259a859a48a9973 Mon Sep 17 00:00:00 2001 From: Pengyuan Zhao Date: Sun, 10 Nov 2024 22:09:31 -0700 Subject: [PATCH 3/3] chore: fix versions --- .../azure/test-data/activity-log-with-all-subscriptions.tf | 4 ++-- .../azure/test-data/activity-log-with-existing-storage.tf | 4 ++-- .../azure/test-data/activity-log-with-lacework-profile.tf | 4 ++-- .../azure/test-data/activity-log-with-list-subscriptions.tf | 4 ++-- lwgenerate/azure/test-data/activity-log-with-location.tf | 4 ++-- lwgenerate/azure/test-data/activity_log_with_config.tf | 6 +++--- .../activity_log_with_config_azureadprovider_args.tf | 6 +++--- .../azure/test-data/activity_log_with_config_extra.tf | 6 +++--- .../test-data/activity_log_with_config_provider_args.tf | 6 +++--- .../azure/test-data/activity_log_with_config_root_blocks.tf | 6 +++--- lwgenerate/azure/test-data/activity_log_without_config.tf | 4 ++-- .../azure/test-data/config-log-with-list-subscriptions.tf | 4 ++-- lwgenerate/azure/test-data/config-with-all-subscriptions.tf | 4 ++-- .../azure/test-data/config-with-azurerm-subscription.tf | 4 ++-- lwgenerate/azure/test-data/config-with-management-group.tf | 4 ++-- lwgenerate/azure/test-data/config_without_activity_log.tf | 4 ++-- lwgenerate/azure/test-data/customer-ad-details.tf | 4 ++-- ...ntra-id-activity-log-event-hub-location-and-partition.tf | 4 ++-- .../test-data/entra-id-activity-log-existing-ad-app.tf | 2 +- .../entra-id-activity-log-existing-event-hub-ns.tf | 4 ++-- .../test-data/entra-id-activity-log-no-custom-input.tf | 4 ++-- lwgenerate/azure/test-data/renamed_activity_log.tf | 4 ++-- lwgenerate/azure/test-data/renamed_config.tf | 4 ++-- .../azure/test-data/renamed_config_and_activity_log.tf | 6 +++--- 24 files changed, 53 insertions(+), 53 deletions(-) diff --git a/lwgenerate/azure/test-data/activity-log-with-all-subscriptions.tf b/lwgenerate/azure/test-data/activity-log-with-all-subscriptions.tf index b3e8a17ae..8fdbbb76f 100644 --- a/lwgenerate/azure/test-data/activity-log-with-all-subscriptions.tf +++ b/lwgenerate/azure/test-data/activity-log-with-all-subscriptions.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" all_subscriptions = true application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password diff --git a/lwgenerate/azure/test-data/activity-log-with-existing-storage.tf b/lwgenerate/azure/test-data/activity-log-with-existing-storage.tf index 635b17375..07a3703d9 100644 --- a/lwgenerate/azure/test-data/activity-log-with-existing-storage.tf +++ b/lwgenerate/azure/test-data/activity-log-with-existing-storage.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password service_principal_id = module.az_ad_application.service_principal_id diff --git a/lwgenerate/azure/test-data/activity-log-with-lacework-profile.tf b/lwgenerate/azure/test-data/activity-log-with-lacework-profile.tf index 52d9fcb8f..727215a70 100644 --- a/lwgenerate/azure/test-data/activity-log-with-lacework-profile.tf +++ b/lwgenerate/azure/test-data/activity-log-with-lacework-profile.tf @@ -21,12 +21,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/activity-log-with-list-subscriptions.tf b/lwgenerate/azure/test-data/activity-log-with-list-subscriptions.tf index 23e76c036..139c2e675 100644 --- a/lwgenerate/azure/test-data/activity-log-with-list-subscriptions.tf +++ b/lwgenerate/azure/test-data/activity-log-with-list-subscriptions.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/activity-log-with-location.tf b/lwgenerate/azure/test-data/activity-log-with-location.tf index 4efceb7df..9abd74422 100644 --- a/lwgenerate/azure/test-data/activity-log-with-location.tf +++ b/lwgenerate/azure/test-data/activity-log-with-location.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/activity_log_with_config.tf b/lwgenerate/azure/test-data/activity_log_with_config.tf index 0d2da8275..25adba20c 100644 --- a/lwgenerate/azure/test-data/activity_log_with_config.tf +++ b/lwgenerate/azure/test-data/activity_log_with_config.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password service_principal_id = module.az_ad_application.service_principal_id @@ -31,7 +31,7 @@ module "az_config" { module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/activity_log_with_config_azureadprovider_args.tf b/lwgenerate/azure/test-data/activity_log_with_config_azureadprovider_args.tf index 2a9caf799..90ecd1454 100644 --- a/lwgenerate/azure/test-data/activity_log_with_config_azureadprovider_args.tf +++ b/lwgenerate/azure/test-data/activity_log_with_config_azureadprovider_args.tf @@ -18,12 +18,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password service_principal_id = module.az_ad_application.service_principal_id @@ -32,7 +32,7 @@ module "az_config" { module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/activity_log_with_config_extra.tf b/lwgenerate/azure/test-data/activity_log_with_config_extra.tf index 47468987c..3ec20166f 100644 --- a/lwgenerate/azure/test-data/activity_log_with_config_extra.tf +++ b/lwgenerate/azure/test-data/activity_log_with_config_extra.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password service_principal_id = module.az_ad_application.service_principal_id @@ -31,7 +31,7 @@ module "az_config" { module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/activity_log_with_config_provider_args.tf b/lwgenerate/azure/test-data/activity_log_with_config_provider_args.tf index f4cdff9df..267034933 100644 --- a/lwgenerate/azure/test-data/activity_log_with_config_provider_args.tf +++ b/lwgenerate/azure/test-data/activity_log_with_config_provider_args.tf @@ -18,12 +18,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password service_principal_id = module.az_ad_application.service_principal_id @@ -32,7 +32,7 @@ module "az_config" { module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/activity_log_with_config_root_blocks.tf b/lwgenerate/azure/test-data/activity_log_with_config_root_blocks.tf index 3ca92a39f..a4fbf74a1 100644 --- a/lwgenerate/azure/test-data/activity_log_with_config_root_blocks.tf +++ b/lwgenerate/azure/test-data/activity_log_with_config_root_blocks.tf @@ -19,12 +19,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password service_principal_id = module.az_ad_application.service_principal_id @@ -33,7 +33,7 @@ module "az_config" { module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/activity_log_without_config.tf b/lwgenerate/azure/test-data/activity_log_without_config.tf index 0b528094e..52a489da1 100644 --- a/lwgenerate/azure/test-data/activity_log_without_config.tf +++ b/lwgenerate/azure/test-data/activity_log_without_config.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/config-log-with-list-subscriptions.tf b/lwgenerate/azure/test-data/config-log-with-list-subscriptions.tf index d7741da60..4a3080719 100644 --- a/lwgenerate/azure/test-data/config-log-with-list-subscriptions.tf +++ b/lwgenerate/azure/test-data/config-log-with-list-subscriptions.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password service_principal_id = module.az_ad_application.service_principal_id diff --git a/lwgenerate/azure/test-data/config-with-all-subscriptions.tf b/lwgenerate/azure/test-data/config-with-all-subscriptions.tf index 4cca1a9db..8056090c8 100644 --- a/lwgenerate/azure/test-data/config-with-all-subscriptions.tf +++ b/lwgenerate/azure/test-data/config-with-all-subscriptions.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" all_subscriptions = true application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password diff --git a/lwgenerate/azure/test-data/config-with-azurerm-subscription.tf b/lwgenerate/azure/test-data/config-with-azurerm-subscription.tf index 6df17a5e9..2014139b8 100644 --- a/lwgenerate/azure/test-data/config-with-azurerm-subscription.tf +++ b/lwgenerate/azure/test-data/config-with-azurerm-subscription.tf @@ -18,12 +18,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password service_principal_id = module.az_ad_application.service_principal_id diff --git a/lwgenerate/azure/test-data/config-with-management-group.tf b/lwgenerate/azure/test-data/config-with-management-group.tf index 8874ba82f..c1ce71348 100644 --- a/lwgenerate/azure/test-data/config-with-management-group.tf +++ b/lwgenerate/azure/test-data/config-with-management-group.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password management_group_id = "test-management-group-1" diff --git a/lwgenerate/azure/test-data/config_without_activity_log.tf b/lwgenerate/azure/test-data/config_without_activity_log.tf index a275326a5..403520574 100644 --- a/lwgenerate/azure/test-data/config_without_activity_log.tf +++ b/lwgenerate/azure/test-data/config_without_activity_log.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password service_principal_id = module.az_ad_application.service_principal_id diff --git a/lwgenerate/azure/test-data/customer-ad-details.tf b/lwgenerate/azure/test-data/customer-ad-details.tf index e1c21bcfd..a58fdf528 100644 --- a/lwgenerate/azure/test-data/customer-ad-details.tf +++ b/lwgenerate/azure/test-data/customer-ad-details.tf @@ -17,7 +17,7 @@ provider "azurerm" { module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = "AD-Test-Application-ID" application_password = "AD-Test-Password" lacework_integration_name = "Test Config Rename" @@ -27,7 +27,7 @@ module "az_config" { module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = "AD-Test-Application-ID" application_password = "AD-Test-Password" infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/entra-id-activity-log-event-hub-location-and-partition.tf b/lwgenerate/azure/test-data/entra-id-activity-log-event-hub-location-and-partition.tf index 2f496c506..b3669ef34 100644 --- a/lwgenerate/azure/test-data/entra-id-activity-log-event-hub-location-and-partition.tf +++ b/lwgenerate/azure/test-data/entra-id-activity-log-event-hub-location-and-partition.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "microsoft-entra-id-activity-log" { source = "lacework/microsoft-entra-id-activity-log/azure" - version = "~> 0.2" + version = "~> 0.3" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password location = "West US 2" diff --git a/lwgenerate/azure/test-data/entra-id-activity-log-existing-ad-app.tf b/lwgenerate/azure/test-data/entra-id-activity-log-existing-ad-app.tf index 04332793c..d5c7f00c9 100644 --- a/lwgenerate/azure/test-data/entra-id-activity-log-existing-ad-app.tf +++ b/lwgenerate/azure/test-data/entra-id-activity-log-existing-ad-app.tf @@ -17,7 +17,7 @@ provider "azurerm" { module "microsoft-entra-id-activity-log" { source = "lacework/microsoft-entra-id-activity-log/azure" - version = "~> 0.2" + version = "~> 0.3" application_id = "testID" application_password = "pass" service_principal_id = "principal" diff --git a/lwgenerate/azure/test-data/entra-id-activity-log-existing-event-hub-ns.tf b/lwgenerate/azure/test-data/entra-id-activity-log-existing-event-hub-ns.tf index 96057c2e5..20cbbe8c5 100644 --- a/lwgenerate/azure/test-data/entra-id-activity-log-existing-event-hub-ns.tf +++ b/lwgenerate/azure/test-data/entra-id-activity-log-existing-event-hub-ns.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "microsoft-entra-id-activity-log" { source = "lacework/microsoft-entra-id-activity-log/azure" - version = "~> 0.2" + version = "~> 0.3" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_passwor service_principal_id = module.az_ad_application.service_principal_id diff --git a/lwgenerate/azure/test-data/entra-id-activity-log-no-custom-input.tf b/lwgenerate/azure/test-data/entra-id-activity-log-no-custom-input.tf index 9d3ca330f..670921816 100644 --- a/lwgenerate/azure/test-data/entra-id-activity-log-no-custom-input.tf +++ b/lwgenerate/azure/test-data/entra-id-activity-log-no-custom-input.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "microsoft-entra-id-activity-log" { source = "lacework/microsoft-entra-id-activity-log/azure" - version = "~> 0.2" + version = "~> 0.3" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password service_principal_id = module.az_ad_application.service_principal_id diff --git a/lwgenerate/azure/test-data/renamed_activity_log.tf b/lwgenerate/azure/test-data/renamed_activity_log.tf index 3228042e1..4ef4aa2ad 100644 --- a/lwgenerate/azure/test-data/renamed_activity_log.tf +++ b/lwgenerate/azure/test-data/renamed_activity_log.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true diff --git a/lwgenerate/azure/test-data/renamed_config.tf b/lwgenerate/azure/test-data/renamed_config.tf index 3eac26e65..6bc884448 100644 --- a/lwgenerate/azure/test-data/renamed_config.tf +++ b/lwgenerate/azure/test-data/renamed_config.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password lacework_integration_name = "Test Config Rename" diff --git a/lwgenerate/azure/test-data/renamed_config_and_activity_log.tf b/lwgenerate/azure/test-data/renamed_config_and_activity_log.tf index 1f015351c..02fdcf0ad 100644 --- a/lwgenerate/azure/test-data/renamed_config_and_activity_log.tf +++ b/lwgenerate/azure/test-data/renamed_config_and_activity_log.tf @@ -17,12 +17,12 @@ provider "azurerm" { module "az_ad_application" { source = "lacework/ad-application/azure" - version = "~> 1.0" + version = "~> 2.0" } module "az_config" { source = "lacework/config/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password lacework_integration_name = "Test Config Rename" @@ -32,7 +32,7 @@ module "az_config" { module "az_activity_log" { source = "lacework/activity-log/azure" - version = "~> 2.0" + version = "~> 3.0" application_id = module.az_ad_application.application_id application_password = module.az_ad_application.application_password infrastructure_encryption_enabled = true