Skip to content

Commit

Permalink
Clean up docs (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaniluk authored Jan 14, 2020
1 parent 1b64857 commit 053ca09
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ repos:
rev: v1.19.0
hooks:
- id: terraform_fmt
- id: terraform_tflint
- id: terraform_docs
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Rhythmic Technologies, Inc.
Copyright (c) 2020 Rhythmic Technologies, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ Enable VPC Flowlogs

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|

## Outputs

| Name | Description |
|------|-------------|
| logging\_bucket | S3 bucket to send request logs to the VPC flow log bucket to | string | n/a | yes |
| region | Region VPC flow logs will be sent to | string | n/a | yes |
| tags | Tags to include on resources that support it | map(string) | `{}` | no |
| vpc\_ids | List of VPCs to enable flow logging for | list(string) | n/a | yes |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
8 changes: 4 additions & 4 deletions bucket.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@


resource "aws_s3_bucket" "vpcflowlog_bucket" {
bucket = "${local.account_id}-${var.region}-vpcflowlog"
acl = "private"
tags = var.tags
bucket = "${local.account_id}-${var.region}-vpcflowlog"
acl = "private"
tags = var.tags

versioning {
enabled = true
Expand Down Expand Up @@ -75,4 +75,4 @@ resource "aws_s3_bucket_policy" "vpcflowlog_bucket_policy" {
}
EOF

}
}
19 changes: 11 additions & 8 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,23 @@ locals {
account_id = data.aws_caller_identity.current.account_id
}

variable "tags" {
default = {}
type = map(string)
variable "logging_bucket" {
description = "S3 bucket to send request logs to the VPC flow log bucket to"
type = string
}

variable "region" {
type = string
description = "Region VPC flow logs will be sent to"
type = string
}

variable "logging_bucket" {
type = string
variable "tags" {
default = {}
description = "Tags to include on resources that support it"
type = map(string)
}

variable "vpc_ids" {
type = list(string)
description = "List of VPCs to enable flow logging for"
type = list(string)
}

0 comments on commit 053ca09

Please sign in to comment.