Skip to content

Commit 3067773

Browse files
committed
expand docs
1 parent 9f42731 commit 3067773

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Creates an S3 bucket suitable for receiving VPC flow logs from one or more AWS a
1212
Example:
1313

1414

15+
Create the bucket with this module.
1516
```
1617
module "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

0 commit comments

Comments
 (0)