{"id":46337167,"url":"https://github.com/native-cube/terraform-aws-vpc-flow-logs","last_synced_at":"2026-03-04T19:05:16.428Z","repository":{"id":167514319,"uuid":"455087963","full_name":"native-cube/terraform-aws-vpc-flow-logs","owner":"native-cube","description":"Terraform module for enabling AWS VPC flow logs.","archived":false,"fork":false,"pushed_at":"2025-08-08T08:35:53.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T10:19:16.157Z","etag":null,"topics":["aws","terraform","terraform-module","vpc","vpc-flow-logs","vpc-flowlogs"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/native-cube/vpc-flow-logs/aws","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/native-cube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["marcincuber"],"custom":"https://www.paypal.me/marcincube"}},"created_at":"2022-02-03T08:38:56.000Z","updated_at":"2025-08-08T08:35:32.000Z","dependencies_parsed_at":"2025-08-08T19:47:44.116Z","dependency_job_id":null,"html_url":"https://github.com/native-cube/terraform-aws-vpc-flow-logs","commit_stats":null,"previous_names":["native-cube/terraform-aws-vpc-flow-logs"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/native-cube/terraform-aws-vpc-flow-logs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-cube%2Fterraform-aws-vpc-flow-logs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-cube%2Fterraform-aws-vpc-flow-logs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-cube%2Fterraform-aws-vpc-flow-logs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-cube%2Fterraform-aws-vpc-flow-logs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/native-cube","download_url":"https://codeload.github.com/native-cube/terraform-aws-vpc-flow-logs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-cube%2Fterraform-aws-vpc-flow-logs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29986255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T21:06:37.093Z","status":"ssl_error","status_checked_at":"2026-03-01T21:05:45.052Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","terraform","terraform-module","vpc","vpc-flow-logs","vpc-flowlogs"],"created_at":"2026-03-04T19:05:15.822Z","updated_at":"2026-03-04T19:05:16.414Z","avatar_url":"https://github.com/native-cube.png","language":"HCL","funding_links":["https://github.com/sponsors/marcincuber","https://www.paypal.me/marcincube"],"categories":[],"sub_categories":[],"readme":"[![GitHub release (latest by date)](https://img.shields.io/github/v/release/native-cube/terraform-aws-vpc-flow-logs)](https://github.com/native-cube/terraform-aws-vpc-flow-logs/releases/latest)\n\n# terraform-aws-vpc-flow-logs\nTerraform module for enabling AWS VPC flow logs.\n\n## Usage\n\n```hcl\nmodule \"vpc-flow-logs\" {\n  source = \"native-cube/vpc-flow-logs/aws\"\n  version = \"~\u003e 2.2\"\n\n  name_prefix = \"native-cube-example\"\n  vpc_id      = \"vpc-123456789\"\n\n  traffic_type = \"ALL\"\n\n  tags = {\n    Project = \"native-cube\"\n  }\n}\n```\n\n## Examples\n\n* [VPC flow logs](https://github.com/native-cube/terraform-aws-vpc-flow-logs/tree/main/examples/core)\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.0.0 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement\\_aws) | \u003e= 3.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | \u003e= 3.0 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_cloudwatch_log_group.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |\n| [aws_flow_log.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/flow_log) | resource |\n| [aws_iam_role.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |\n| [aws_iam_role_policy.flow_logs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) | resource |\n| [aws_iam_policy_document.cloudwatch](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_cloudwatch_log_group_name\"\u003e\u003c/a\u003e [cloudwatch\\_log\\_group\\_name](#input\\_cloudwatch\\_log\\_group\\_name) | Custom name used for cloudwatch log group | `string` | `null` | no |\n| \u003ca name=\"input_kms_key_id\"\u003e\u003c/a\u003e [kms\\_key\\_id](#input\\_kms\\_key\\_id) | The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested. | `string` | `null` | no |\n| \u003ca name=\"input_log_format\"\u003e\u003c/a\u003e [log\\_format](#input\\_log\\_format) | Custom format for flow log records | `string` | `null` | no |\n| \u003ca name=\"input_max_aggregation_interval\"\u003e\u003c/a\u003e [max\\_aggregation\\_interval](#input\\_max\\_aggregation\\_interval) | The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. Valid Values: 60 seconds (1 minute) or 600 seconds (10 minutes) | `string` | `\"600\"` | no |\n| \u003ca name=\"input_name_prefix\"\u003e\u003c/a\u003e [name\\_prefix](#input\\_name\\_prefix) | A prefix used for naming resources. | `string` | n/a | yes |\n| \u003ca name=\"input_retention_in_days\"\u003e\u003c/a\u003e [retention\\_in\\_days](#input\\_retention\\_in\\_days) | Specifies the number of days you want to retain log events in the specified log group. | `string` | `null` | no |\n| \u003ca name=\"input_subnet_id\"\u003e\u003c/a\u003e [subnet\\_id](#input\\_subnet\\_id) | Subnet ID to attach to. | `string` | `null` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | Default tags attached to all resources. | `map(string)` | `{}` | no |\n| \u003ca name=\"input_traffic_type\"\u003e\u003c/a\u003e [traffic\\_type](#input\\_traffic\\_type) | The type of traffic to capture. Valid values: ACCEPT, REJECT, ALL. | `string` | `\"ALL\"` | no |\n| \u003ca name=\"input_transit_gateway_attachment_id\"\u003e\u003c/a\u003e [transit\\_gateway\\_attachment\\_id](#input\\_transit\\_gateway\\_attachment\\_id) | Transit Gateway Attachment ID to attach to. | `string` | `null` | no |\n| \u003ca name=\"input_transit_gateway_id\"\u003e\u003c/a\u003e [transit\\_gateway\\_id](#input\\_transit\\_gateway\\_id) | Transit Gateway ID to attach to. | `string` | `null` | no |\n| \u003ca name=\"input_vpc_id\"\u003e\u003c/a\u003e [vpc\\_id](#input\\_vpc\\_id) | VPC ID where resources will be created and flow logs enabled. | `string` | `null` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_flow_logs_cloudwatch_group_arn\"\u003e\u003c/a\u003e [flow\\_logs\\_cloudwatch\\_group\\_arn](#output\\_flow\\_logs\\_cloudwatch\\_group\\_arn) | The ARN specifying the log group used by Flow Logs. |\n| \u003ca name=\"output_flow_logs_id\"\u003e\u003c/a\u003e [flow\\_logs\\_id](#output\\_flow\\_logs\\_id) | The Flow Log ID. |\n| \u003ca name=\"output_flow_logs_role_arn\"\u003e\u003c/a\u003e [flow\\_logs\\_role\\_arn](#output\\_flow\\_logs\\_role\\_arn) | The ARN specifying the role used by Flow Logs. |\n| \u003ca name=\"output_flow_logs_role_id\"\u003e\u003c/a\u003e [flow\\_logs\\_role\\_id](#output\\_flow\\_logs\\_role\\_id) | The ID specifying the role used by Flow Logs. |\n\u003c!-- END_TF_DOCS --\u003e\n\n## License\n\nSee LICENSE file for full details.\n\n## Pre-commit hooks\n\n### Install dependencies\n\n* [`pre-commit`](https://pre-commit.com/#install)\n* [`terraform-docs`](https://github.com/segmentio/terraform-docs) required for `terraform_docs` hooks.\n* [`TFLint`](https://github.com/terraform-linters/tflint) required for `terraform_tflint` hook.\n\n#### MacOS\n\n```bash\nbrew install pre-commit terraform-docs tflint\n\nbrew tap git-chglog/git-chglog\nbrew install git-chglog\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnative-cube%2Fterraform-aws-vpc-flow-logs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnative-cube%2Fterraform-aws-vpc-flow-logs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnative-cube%2Fterraform-aws-vpc-flow-logs/lists"}