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" } } }