File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
modules/infrastructure/cloudtrail_s3-sns-sqs Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,29 @@ EVENT FILTER/fine-tunning, regarding what we want to send to Sysdig Cloud-Connec
3333- SNS must be created in the same region as Cloudtrail. Adjust `var.region` or your aws credentials region.
3434-->
3535
36+ ## Usage
37+ ``` terraform
38+ # provider for S3 account
39+ # this is a sample authentication, can adapt it as long as alias is maintaned
40+ provider "aws"{
41+ alias = "s3"
42+ region = "<AWS_REGION>"
43+ assume_role {
44+ role_arn = "arn:aws:iam::<S3_BUCKET_ACCOUNT_ID>:role/OrganizationAccountAccessRole"
45+ }
46+ }
47+
48+ module "cloudtrail_s3_sns_sqs" {
49+ providers = {
50+ aws = aws.s3
51+ }
52+ source = "sysdiglabs/secure-for-cloud/aws//modules/infrastructure/cloudtrail_s3-sns-sqs"
53+ cloudtrail_s3_name = "<CLOUDTRAIL_S3_NAME>"
54+ # optional
55+ # s3_event_notification_filter_prefix="<CLOUDTRAIL_S3_FILTER_PREFIX>"
56+ }
57+
58+ ```
3659
3760<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
3861## Requirements
You can’t perform that action at this time.
0 commit comments