File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Creates an S3 bucket suitable for receiving VPC flow logs from one or more AWS a
1212Example:
1313
1414
15+ Create the bucket with this module.
1516```
1617module "vpcflowlog-bucket" {
1718 source = "rhythmictech/aws-vpcflowlogs/terraform"
@@ -21,6 +22,20 @@ module "vpcflowlog-bucket" {
2122}
2223```
2324
25+ Then create the flow logs in each of the allowed accounts. Logs will flow back to the bucket in the original account.
26+ ```
27+ module "vpcflowlogs" {
28+ source = "git::https://github.com/rhythmictech/terraform-aws-vpcflowlogs.git"
29+
30+ create_bucket = false
31+ create_kms_key = false
32+ region = var.region
33+ vpc_ids = [module.vpc.vpc_id]
34+ vpcflowlog_bucket = module.vpcflowlog-bucket.s3_bucket_name
35+ vpcflowlog_kms_key = module.vpcflowlog-bucket.kms_key_id
36+ }
37+ ```
38+
2439<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
2540## Requirements
2641
You can’t perform that action at this time.
0 commit comments