Skip to content

Commit 7554716

Browse files
author
iru
committed
Merge branch 'master' of github.com:sysdiglabs/terraform-aws-cloudvision
2 parents d66e468 + bec58d9 commit 7554716

File tree

5 files changed

+31
-1
lines changed

5 files changed

+31
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ For other Cloud providers check: [GCP](https://github.com/sysdiglabs/terraform-g
5050

5151
## Usage
5252

53+
If you're unsure about what/how to use this module, please fill the [questionnaire](https://github.com/sysdiglabs/terraform-aws-secure-for-cloud/blob/master/use-cases/_questionnaire.md) report as an issue and let us know your context, we will be happy to help and improve our module.
54+
5355
- There are several ways to deploy this in you AWS infrastructure, gathered under **[`/examples`](./examples)**
5456
- [Single Account on ECS](#--single-account-on-ecs)
5557
- [Single Account on AppRunner](#--single-account-on-apprunner)
@@ -58,7 +60,6 @@ For other Cloud providers check: [GCP](https://github.com/sysdiglabs/terraform-g
5860
- Many module,examples and use-cases provide ways to **re-use existing resources (as optionals)** in your infrastructure (cloudtrail, ecs, vpc, k8s cluster,...)
5961
- Find some real self-baked **use-case scenarios** under [`/use-cases`](./use-cases)
6062

61-
If you're unsure about what/how to use this module, please fill the [questionnaire](https://github.com/sysdiglabs/terraform-aws-secure-for-cloud/blob/master/use-cases/_questionnaire.md) report as an issue and let us know your context, we will be happy to help and improve our module.
6263

6364
### - Single-Account on ECS
6465

examples/single-account-apprunner/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ $ terraform apply
7878

7979
| Name | Source | Version |
8080
|------|--------|---------|
81+
| <a name="module_cloud_bench"></a> [cloud\_bench](#module\_cloud\_bench) | ../../modules/services/cloud-bench | n/a |
8182
| <a name="module_cloud_connector"></a> [cloud\_connector](#module\_cloud\_connector) | ../../modules/services/cloud-connector-apprunner | n/a |
8283
| <a name="module_cloudtrail"></a> [cloudtrail](#module\_cloudtrail) | ../../modules/infrastructure/cloudtrail | n/a |
8384
| <a name="module_codebuild"></a> [codebuild](#module\_codebuild) | ../../modules/infrastructure/codebuild | n/a |
@@ -94,10 +95,12 @@ $ terraform apply
9495

9596
| Name | Description | Type | Default | Required |
9697
|------|-------------|------|---------|:--------:|
98+
| <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 |
9799
| <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 |
98100
| <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 |
99101
| <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 |
100102
| <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. ARN of a pre-existing cloudtrail\_sns. If defaulted, a new cloudtrail will be created. If specified, sysdig deployment account and region must match with the specified SNS | `string` | `"create"` | no |
103+
| <a name="input_deploy_benchmark"></a> [deploy\_benchmark](#input\_deploy\_benchmark) | Whether to deploy or not the cloud benchmarking | `bool` | `true` | no |
101104
| <a name="input_deploy_image_scanning_ecr"></a> [deploy\_image\_scanning\_ecr](#input\_deploy\_image\_scanning\_ecr) | true/false whether to deploy the image scanning on ECR pushed images | `bool` | `false` | no |
102105
| <a name="input_deploy_image_scanning_ecs"></a> [deploy\_image\_scanning\_ecs](#input\_deploy\_image\_scanning\_ecs) | true/false whether to deploy the image scanning on ECS running images | `bool` | `false` | no |
103106
| <a name="input_name"></a> [name](#input\_name) | Name to be assigned to all child resources. A suffix may be added internally when required. Use default value unless you need to install multiple instances | `string` | `"sfc"` | no |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module "cloud_bench" {
2+
source = "../../modules/services/cloud-bench"
3+
count = var.deploy_benchmark ? 1 : 0
4+
5+
name = "${var.name}-cloudbench"
6+
benchmark_regions = var.benchmark_regions
7+
8+
tags = var.tags
9+
}

examples/single-account-apprunner/variables.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ variable "deploy_image_scanning_ecs" {
4242
default = false
4343
}
4444

45+
#
46+
# benchmark configuration
47+
#
48+
49+
variable "deploy_benchmark" {
50+
type = bool
51+
description = "Whether to deploy or not the cloud benchmarking"
52+
default = true
53+
}
54+
55+
variable "benchmark_regions" {
56+
type = list(string)
57+
description = "List of regions in which to run the benchmark. If empty, the task will contain all aws regions by default."
58+
default = []
59+
}
60+
4561
#
4662
# general
4763
#

use-cases/_questionnaire.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ modules, and we also offer [AWS Cloudformation templates](https://github.com/sys
4141
## Terraform Example Selection
4242

4343
| | Single | Organizational |
44+
| --| -- | -- |
4445
| Deployment Type | All Sysdig resources will be deployed within the selected account | Most Sysdig resources will be deployed within the selected account, but some require to be deployed on member-accounts (for Compliance and Image Scanning)
4546
| Benefits | Will only analyse current account | Handles all accounts (managed and member)
4647
| Drawbacks | Cannot re-use another account Cloudtrail data (unless its deployed on the same account where the sns/s3 bucket is) | --

0 commit comments

Comments
 (0)