diff --git a/CHANGELOG.md b/CHANGELOG.md index 14724ee21..ff0b8a037 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# v2.1.3 + +## Bug Fixes +* fix: bump lacework provider version to 2.0 (#1678) (Pengyuan Zhao)([a4fd71b5](https://github.com/lacework/go-sdk/commit/a4fd71b5e0139190eb6d5a897d10eea63582d851)) +* fix: Add credentials to control tower accounts (#1675) (Lei Jin)([3e1885d0](https://github.com/lacework/go-sdk/commit/3e1885d0c01af8dc0ad9634ff83c0d31d7f207ff)) +## Other Changes +* ci: version bump to v2.1.3-dev (Lacework)([33d32ada](https://github.com/lacework/go-sdk/commit/33d32ada65a4fb396944664e595f69320c5845fe)) +--- # v2.1.2 ## Bug Fixes diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 95e8de89c..a6c3d3993 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,10 +1,11 @@ # Release Notes -Another day, another release. These are the release notes for the version `v2.1.2`. +Another day, another release. These are the release notes for the version `v2.1.3`. ## Bug Fixes -* fix: Fix casing during reading of resource group (#1673) (Zeki Sherif)([1167cb9c](https://github.com/lacework/go-sdk/commit/1167cb9ceb659f5d3c60dfba35cd0c8618d2c5ae)) +* fix: bump lacework provider version to 2.0 (#1678) (Pengyuan Zhao)([a4fd71b5](https://github.com/lacework/go-sdk/commit/a4fd71b5e0139190eb6d5a897d10eea63582d851)) +* fix: Add credentials to control tower accounts (#1675) (Lei Jin)([3e1885d0](https://github.com/lacework/go-sdk/commit/3e1885d0c01af8dc0ad9634ff83c0d31d7f207ff)) ## Other Changes -* ci: version bump to v2.1.2-dev (Lacework)([a8f6ca1e](https://github.com/lacework/go-sdk/commit/a8f6ca1e74af412daedfb90f1086619a1bc2670b)) +* ci: version bump to v2.1.3-dev (Lacework)([33d32ada](https://github.com/lacework/go-sdk/commit/33d32ada65a4fb396944664e595f69320c5845fe)) ## :whale: [Docker Image](https://hub.docker.com/r/lacework/lacework-cli) ``` diff --git a/VERSION b/VERSION index 3b9d06de9..abae0d9a9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.3-dev \ No newline at end of file +2.1.3 \ No newline at end of file diff --git a/api/version.go b/api/version.go index 871c406e3..af1298236 100644 --- a/api/version.go +++ b/api/version.go @@ -1,5 +1,5 @@ // Code generated by: scripts/version_updater.sh -// File generated at: 20241101192252 +// File generated at: 20241113181000 // // <<< DO NOT EDIT >>> // @@ -7,4 +7,4 @@ package api // Version is the semver coming from the VERSION file -const Version = "2.1.3-dev" +const Version = "2.1.3" 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..8fdbbb76f 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" } } } @@ -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 6e4c69b64..07a3703d9 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" } } } @@ -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 081c4f8e8..727215a70 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" } } } @@ -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 5be3576d6..139c2e675 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" } } } @@ -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 a0d53d41c..9abd74422 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" } } } @@ -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 d378b9136..25adba20c 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" } } } @@ -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 5946ac6a5..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 @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -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 b74600c90..3ec20166f 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" } } } @@ -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 bc22ff32a..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 @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -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 15f5c3b5e..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 @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } backend "s3" { @@ -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 9329b4a3c..52a489da1 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" } } } @@ -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 66158b743..4a3080719 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" } } } @@ -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 648ba67d7..8056090c8 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" } } } @@ -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 0e5be1ce1..2014139b8 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" } } } @@ -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 fce27c6be..c1ce71348 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" } } } @@ -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 a86986bce..403520574 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" } } } @@ -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 19527a203..a58fdf528 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" } } } @@ -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 ad69a4a04..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 @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -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 3555295a4..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 @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -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 be17974d7..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 @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -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 1992b4b32..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 @@ -2,7 +2,7 @@ terraform { required_providers { lacework = { source = "lacework/lacework" - version = "~> 1.0" + version = "~> 2.0" } } } @@ -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 adcf7dca7..4ef4aa2ad 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" } } } @@ -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 5b470728b..6bc884448 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" } } } @@ -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 62f417463..02fdcf0ad 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" } } } @@ -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 diff --git a/lwgenerate/constants.go b/lwgenerate/constants.go index 633dd5d5c..15702d13a 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" @@ -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" 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" } } }