Skip to content

Commit

Permalink
fix rejects
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-gavrielh committed Dec 3, 2024
1 parent 7762249 commit 3b52029
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 24 deletions.
6 changes: 0 additions & 6 deletions examples/basic-github-integration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,4 @@ module "spectral_lambda_integration" {
STRICT_MODE = false
SPECTRAL_TAGS = "iac,base,audit"
}

# With VPC configuration
vpc_config = {
subnet_ids = ["subnet-12345678", "subnet-87654321"]
security_group_ids = ["sg-12345678"]
}
}
6 changes: 0 additions & 6 deletions examples/basic-gitlab-integration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,4 @@ module "spectral_lambda_integration" {
# STRICT_MODE = false / true
# SPECTRAL_TAGS = "iac,base,audit"
}

# With VPC configuration
vpc_config = {
subnet_ids = ["subnet-12345678", "subnet-87654321"]
security_group_ids = ["sg-12345678"]
}
}
6 changes: 0 additions & 6 deletions examples/basic-jira-integration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,4 @@ module "spectral_lambda_integration" {
# REDACTED_MESSAGE = "MyRedactedMessage"
# SPECTRAL_TAGS = "iac,base,audit"
}

# With VPC configuration
vpc_config = {
subnet_ids = ["subnet-12345678", "subnet-87654321"]
security_group_ids = ["sg-12345678"]
}
}
6 changes: 0 additions & 6 deletions examples/basic-terraform-integration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,4 @@ module "spectral_lambda_integration" {
SPECTRAL_DSN = "MySpectralDSN"
CHECK_POLICY = "Fail on any issue" # (Fail on any issue / Fail on warnings and above / Fail on errors only / Always Pass)
}

# With VPC configuration
vpc_config = {
subnet_ids = ["subnet-12345678", "subnet-87654321"]
security_group_ids = ["sg-12345678"]
}
}
19 changes: 19 additions & 0 deletions examples/lambda-in-vpc.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module "spectral_lambda_integration" {
source = "github.com/SpectralOps/spectral-terraform-lambda-integration"

integration_type = "gitlab"

env_vars = {
# Required environment variables
SPECTRAL_DSN = "MySpectralDSN"
CHECK_POLICY = "Fail on any issue" # (Fail on any issue / Fail on warnings and above / Fail on errors only / Always Pass)
GITLAB_ACCESS_TOKEN = "MyGitlabToken"
GITLAB_WEBHOOK_SECRET = "MyGitlabWebhookSecret"
}

# With VPC configuration
vpc_config = {
subnet_ids = ["subnet-12345678", "subnet-87654321"]
security_group_ids = ["sg-12345678"]
}
}

0 comments on commit 3b52029

Please sign in to comment.