You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Terraform input variable is split into 3 sections: required settings, flag settings, and optional settings
99
+
This Terraform input variable is split into 4 sections: required settings, flag settings, optional settings, and how to use an existing cloudtrail with this module.
*___aws_flags.s3_force_destroy (optional):___ Bucket destroy will fail if the bucket is not empty. Set to `"true"` if you REALLY want to destroy logs on teardown.
*___aws_optional_conf.tags(optional):___ Map of tags to apply to all resources.
192
200
201
+
##### Using existing cloudtrail infrastructure
202
+
203
+
If you already have your Cloudtrail set up, with its corresponding cloudwatch log group and S3 bucket, you can configure this module to use this infrastructure by setting the following settings. The module will still set up the SQS and SNS resources required, as well as the various IAM resources to allow for the integration to talk to Threat Stack's platform.
204
+
205
+
> **NOTE:**
206
+
> Do not define the ___existing_cloudtrail___ variable at all if you want this module to manage all of the resources for the Threat Stack integration. By default, the ___existing_cloudtrail___ variable is set to `null`
cloudtrail_arn = string # The ARN of the existing cloudtrail with which you want to integrate.
217
+
s3_bucket_arn = string # The ARN of the existing cloudtrail's S3 bucket
218
+
}
219
+
220
+
# ...
221
+
222
+
}
223
+
```
224
+
225
+
*___existing_cloudtrail.cloudtrail_arn (required if using existing cloudtrail):___ Only passed in so that it can be used as an output. Nothing in the integration directly refers to the existing cloudtrail itself.
226
+
227
+
*___existing_cloudtrail.s3_bucket_arn (required if using existing cloudtrail):___ Used by the IAM role that links the Threat Stack account to the bucket with that contains the needed data.
228
+
193
229
## Outputs
194
230
195
231
### Exposing this module's outputs to the rest of your terraform definitions
@@ -249,6 +285,8 @@ It is recommended that these outputs be rewrapped in outputs defined in your imp
249
285
> **NOTE:**
250
286
> You can also see this list in this module's `outputs.tf` file.
251
287
288
+
> If you are defining the ___existing_cloudtrail___ block, many of these outputs will be set to `""` (an empty string).
289
+
252
290
*___cloudtrail_arn:___ ARN of CloudTrail.
253
291
254
292
*___cloudtrail_home_region:___ Home region for CloudTrail
0 commit comments