Skip to content

Commit b45d453

Browse files
fix: Remove legacy benchmark task creation (#165)
Removes creation of a deprecated resource. Benchmarks has been replaced by a new Compliance system, which is triggered by the creation of the cloud account. The explicit creation of a benchmark task is thus not needed, and is failing since the API has been disabled.
1 parent 7472786 commit b45d453

File tree

16 files changed

+3
-84
lines changed

16 files changed

+3
-84
lines changed

examples/organizational/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ $ terraform apply
187187
|------|-------------|------|---------|:--------:|
188188
| <a name="input_sysdig_secure_for_cloud_member_account_id"></a> [sysdig\_secure\_for\_cloud\_member\_account\_id](#input\_sysdig\_secure\_for\_cloud\_member\_account\_id) | organizational member account where the secure-for-cloud workload is going to be deployed | `string` | n/a | yes |
189189
| <a name="input_autoscaling_config"></a> [autoscaling\_config](#input\_autoscaling\_config) | if enable\_autoscaliing is enabled, ECS autoscaling configuration. for more insight check source code | <pre>object({<br> min_replicas = number<br> max_replicas = number<br> upscale_threshold = number<br> downscale_threshold = number<br> })</pre> | <pre>{<br> "downscale_threshold": 30,<br> "max_replicas": 15,<br> "min_replicas": 2,<br> "upscale_threshold": 60<br>}</pre> | no |
190-
| <a name="input_benchmark_regions"></a> [benchmark\_regions](#input\_benchmark\_regions) | List of regions in which to run the benchmark. If empty, the task will contain all aws regions by default. | `list(string)` | `[]` | no |
191190
| <a name="input_cloudtrail_is_multi_region_trail"></a> [cloudtrail\_is\_multi\_region\_trail](#input\_cloudtrail\_is\_multi\_region\_trail) | true/false whether the created cloudtrail will ingest multi-regional events. testing/economization purpose. | `bool` | `true` | no |
192191
| <a name="input_cloudtrail_kms_enable"></a> [cloudtrail\_kms\_enable](#input\_cloudtrail\_kms\_enable) | true/false whether the created cloudtrail should deliver encrypted events to s3 | `bool` | `true` | no |
193192
| <a name="input_cloudtrail_s3_bucket_expiration_days"></a> [cloudtrail\_s3\_bucket\_expiration\_days](#input\_cloudtrail\_s3\_bucket\_expiration\_days) | Number of days that the logs will persist in the bucket | `number` | `5` | no |

examples/organizational/cloud-bench.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ module "cloud_bench_org" {
99
name = "${var.name}-cloudbench"
1010
is_organizational = true
1111
region = data.aws_region.current.name
12-
benchmark_regions = var.benchmark_regions
1312

1413
tags = var.tags
1514
}
@@ -25,7 +24,6 @@ module "cloud_bench_single" {
2524
name = "${var.name}-cloudbench"
2625
is_organizational = false
2726
region = data.aws_region.current.name
28-
benchmark_regions = var.benchmark_regions
2927

3028
tags = var.tags
3129
}

examples/organizational/variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,6 @@ variable "deploy_benchmark_organizational" {
126126
description = "true/false whether benchmark module should be deployed on organizational or single-account mode (1 role per org accounts if true, 1 role in default aws provider account if false)</li></ul>"
127127
}
128128

129-
variable "benchmark_regions" {
130-
type = list(string)
131-
description = "List of regions in which to run the benchmark. If empty, the task will contain all aws regions by default."
132-
default = []
133-
}
134-
135129

136130
#---------------------------------
137131
# ecs, security group, vpc

examples/single-account-apprunner/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ $ terraform apply
9696

9797
| Name | Description | Type | Default | Required |
9898
|------|-------------|------|---------|:--------:|
99-
| <a name="input_benchmark_regions"></a> [benchmark\_regions](#input\_benchmark\_regions) | List of regions in which to run the benchmark. If empty, the task will contain all aws regions by default. | `list(string)` | `[]` | no |
10099
| <a name="input_cloudconnector_ecr_image_uri"></a> [cloudconnector\_ecr\_image\_uri](#input\_cloudconnector\_ecr\_image\_uri) | URI to cloudconnectors image on ECR | `string` | `"public.ecr.aws/o5x4u2t4/cloud-connector:latest"` | no |
101100
| <a name="input_cloudtrail_is_multi_region_trail"></a> [cloudtrail\_is\_multi\_region\_trail](#input\_cloudtrail\_is\_multi\_region\_trail) | true/false whether cloudtrail will ingest multiregional events | `bool` | `true` | no |
102101
| <a name="input_cloudtrail_kms_enable"></a> [cloudtrail\_kms\_enable](#input\_cloudtrail\_kms\_enable) | true/false whether cloudtrail delivered events to S3 should persist encrypted | `bool` | `true` | no |

examples/single-account-apprunner/benchmark.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module "cloud_bench" {
22
source = "../../modules/services/cloud-bench"
33
count = var.deploy_benchmark ? 1 : 0
44

5-
name = "${var.name}-cloudbench"
6-
benchmark_regions = var.benchmark_regions
7-
5+
name = "${var.name}-cloudbench"
86
tags = var.tags
97
}

examples/single-account-apprunner/variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ variable "deploy_benchmark" {
5858
default = true
5959
}
6060

61-
variable "benchmark_regions" {
62-
type = list(string)
63-
description = "List of regions in which to run the benchmark. If empty, the task will contain all aws regions by default."
64-
default = []
65-
}
66-
6761
#
6862
# general
6963
#

examples/single-account-ecs/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ $ terraform apply
9898
| Name | Description | Type | Default | Required |
9999
|------|-------------|------|---------|:--------:|
100100
| <a name="input_autoscaling_config"></a> [autoscaling\_config](#input\_autoscaling\_config) | if enable\_autoscaliing is enabled, ECS autoscaling configuration. for more insight check source code | <pre>object({<br> min_replicas = number<br> max_replicas = number<br> upscale_threshold = number<br> downscale_threshold = number<br> })</pre> | <pre>{<br> "downscale_threshold": 30,<br> "max_replicas": 10,<br> "min_replicas": 1,<br> "upscale_threshold": 60<br>}</pre> | no |
101-
| <a name="input_benchmark_regions"></a> [benchmark\_regions](#input\_benchmark\_regions) | List of regions in which to run the benchmark. If empty, the task will contain all aws regions by default. | `list(string)` | `[]` | no |
102101
| <a name="input_cloud_connector_image"></a> [cloud\_connector\_image](#input\_cloud\_connector\_image) | Image to use for the cloud connector. If empty, the default image will be used. | `string` | `"quay.io/sysdig/cloud-connector:latest"` | no |
103102
| <a name="input_cloudtrail_is_multi_region_trail"></a> [cloudtrail\_is\_multi\_region\_trail](#input\_cloudtrail\_is\_multi\_region\_trail) | true/false whether cloudtrail will ingest multiregional events | `bool` | `true` | no |
104103
| <a name="input_cloudtrail_kms_enable"></a> [cloudtrail\_kms\_enable](#input\_cloudtrail\_kms\_enable) | true/false whether cloudtrail delivered events to S3 should persist encrypted | `bool` | `true` | no |

examples/single-account-ecs/benchmark.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module "cloud_bench" {
22
source = "../../modules/services/cloud-bench"
33
count = var.deploy_benchmark ? 1 : 0
44

5-
name = "${var.name}-cloudbench"
6-
benchmark_regions = var.benchmark_regions
7-
5+
name = "${var.name}-cloudbench"
86
tags = var.tags
97
}

examples/single-account-ecs/variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,6 @@ variable "deploy_benchmark" {
110110
default = true
111111
}
112112

113-
variable "benchmark_regions" {
114-
type = list(string)
115-
description = "List of regions in which to run the benchmark. If empty, the task will contain all aws regions by default."
116-
default = []
117-
}
118-
119113
#
120114
# cloud connector connector configuration
121115
#

examples/single-account-k8s/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ $ terraform apply
114114

115115
| Name | Description | Type | Default | Required |
116116
|------|-------------|------|---------|:--------:|
117-
| <a name="input_benchmark_regions"></a> [benchmark\_regions](#input\_benchmark\_regions) | List of regions in which to run the benchmark. If empty, the task will contain all aws regions by default. | `list(string)` | `[]` | no |
118117
| <a name="input_cloudtrail_is_multi_region_trail"></a> [cloudtrail\_is\_multi\_region\_trail](#input\_cloudtrail\_is\_multi\_region\_trail) | true/false whether cloudtrail will ingest multiregional events. testing/economization purpose. | `bool` | `true` | no |
119118
| <a name="input_cloudtrail_kms_enable"></a> [cloudtrail\_kms\_enable](#input\_cloudtrail\_kms\_enable) | true/false whether s3 should be encrypted. testing/economization purpose. | `bool` | `true` | no |
120119
| <a name="input_cloudtrail_sns_arn"></a> [cloudtrail\_sns\_arn](#input\_cloudtrail\_sns\_arn) | ARN of a pre-existing cloudtrail\_sns. If defaulted, a new cloudtrail will be created. If specified, deployment region must match Cloudtrail S3 bucket region | `string` | `"create"` | no |

0 commit comments

Comments
 (0)