Skip to content

Commit

Permalink
fix: bump lacework provider version to 2.0 (#1678)
Browse files Browse the repository at this point in the history
* fix: bump lacework provider version to 2.0

* chore: update Azure module versions

* chore: fix versions
  • Loading branch information
PengyuanZhao authored Nov 11, 2024
1 parent 3e1885d commit a4fd71b
Show file tree
Hide file tree
Showing 31 changed files with 95 additions and 95 deletions.
12 changes: 6 additions & 6 deletions lwgenerate/aws/aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ var requiredProvidersWithCustomBlock = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
backend "s3" {
Expand All @@ -436,7 +436,7 @@ var requiredProviders = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand Down Expand Up @@ -569,7 +569,7 @@ var moduleImportAgentless = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand Down Expand Up @@ -613,7 +613,7 @@ var moduleImportAgentlessOrganization = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand Down Expand Up @@ -740,7 +740,7 @@ var moduleImportConfigWithProviderTags = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand Down Expand Up @@ -787,7 +787,7 @@ var moduleImportConfigWithMultipleAccounts = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lwgenerate/aws_controltower/aws_controltower_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var moduleCloudtrailControlTowerBasic = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand Down Expand Up @@ -123,7 +123,7 @@ var moduleCloudtrailControlTowerWithAccountMappings = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lwgenerate/aws_eks_audit/aws_eks_audit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ var requiredProviders = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lwgenerate/azure/test-data/activity-log-with-location.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions lwgenerate/azure/test-data/activity_log_with_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions lwgenerate/azure/test-data/activity_log_with_config_extra.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
backend "s3" {
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lwgenerate/azure/test-data/activity_log_without_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -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
Expand Down
Loading

0 comments on commit a4fd71b

Please sign in to comment.