Skip to content

Commit

Permalink
fix: bump lacework provider version to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PengyuanZhao committed Nov 8, 2024
1 parent 3e1885d commit b011b02
Show file tree
Hide file tree
Showing 31 changed files with 38 additions and 38 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 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 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 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 Down
2 changes: 1 addition & 1 deletion 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 Down
2 changes: 1 addition & 1 deletion 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 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 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 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 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 Down
2 changes: 1 addition & 1 deletion 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 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 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 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 Down
2 changes: 1 addition & 1 deletion lwgenerate/azure/test-data/config-with-management-group.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 Down
2 changes: 1 addition & 1 deletion lwgenerate/azure/test-data/config_without_activity_log.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 Down
2 changes: 1 addition & 1 deletion lwgenerate/azure/test-data/customer-ad-details.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 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 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 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 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 Down
2 changes: 1 addition & 1 deletion lwgenerate/azure/test-data/renamed_activity_log.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 Down
2 changes: 1 addition & 1 deletion lwgenerate/azure/test-data/renamed_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 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 Down
2 changes: 1 addition & 1 deletion lwgenerate/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions lwgenerate/gcp/gcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ var RequiredProviders = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
}
Expand All @@ -814,7 +814,7 @@ var requiredProvidersWithCustomBlock = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = "~> 1.0"
version = "~> 2.0"
}
}
backend "s3" {
Expand Down
2 changes: 1 addition & 1 deletion lwgenerate/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lwgenerate/oci/oci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var ConfigResultBasic = `terraform {
required_providers {
lacework = {
source = "lacework/lacework"
version = ">= 1.9.0"
version = "~> 2.0"
}
}
}
Expand Down

0 comments on commit b011b02

Please sign in to comment.