{"id":48026256,"url":"https://github.com/binbashar/terraform-aws-vpc-flowlogs","last_synced_at":"2026-04-04T13:50:35.180Z","repository":{"id":40343461,"uuid":"196655718","full_name":"binbashar/terraform-aws-vpc-flowlogs","owner":"binbashar","description":"Terraform module which creates VPC flow logs to S3 on AWS https://registry.terraform.io/modules/binbashar/vpc-flowlogs","archived":false,"fork":false,"pushed_at":"2024-07-29T07:58:01.000Z","size":252,"stargazers_count":4,"open_issues_count":3,"forks_count":13,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-03-01T08:21:25.039Z","etag":null,"topics":["bb-le-mod-terraform","binbash-terraform","terraform"],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binbashar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null},"funding":{"github":"binbashar"}},"created_at":"2019-07-12T23:02:34.000Z","updated_at":"2026-03-01T00:10:28.000Z","dependencies_parsed_at":"2023-01-19T21:07:00.818Z","dependency_job_id":null,"html_url":"https://github.com/binbashar/terraform-aws-vpc-flowlogs","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/binbashar/terraform-aws-vpc-flowlogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbashar%2Fterraform-aws-vpc-flowlogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbashar%2Fterraform-aws-vpc-flowlogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbashar%2Fterraform-aws-vpc-flowlogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbashar%2Fterraform-aws-vpc-flowlogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binbashar","download_url":"https://codeload.github.com/binbashar/terraform-aws-vpc-flowlogs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binbashar%2Fterraform-aws-vpc-flowlogs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":["bb-le-mod-terraform","binbash-terraform","terraform"],"created_at":"2026-04-04T13:50:33.849Z","updated_at":"2026-04-04T13:50:35.155Z","avatar_url":"https://github.com/binbashar.png","language":"HCL","funding_links":["https://github.com/sponsors/binbashar"],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://github.com/binbashar\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/binbashar/le-ref-architecture-doc/master/docs/assets/images/logos/binbash-leverage-banner.png\" width=\"1032\" align=\"left\" alt=\"Binbash\"/\u003e\n\u003c/a\u003e\n\u003cbr clear=\"left\"/\u003e\n\n# Terraform Module: VPC Flow Logs\n\nA Terraform module for enabling VPC Flow Logs to an S3 bucket.\n\n## Releases\n- **Versions:** `\u003c= 0.x.y` (Terraform 0.11.x compatible)\n    - eg: https://registry.terraform.io/modules/binbashar/vpc-flow-logs/aws/0.0.1\n\n- **Versions:** `\u003e= 1.x.y` (Terraform 0.12.x compatible)\n    - eg: https://registry.terraform.io/modules/binbashar/vpc-flow-logs/aws/1.0.0\n\n- **TODO:** Support AWS Org centralized flow logs -\u003e https://aws.amazon.com/blogs/security/how-to-facilitate-data-analysis-and-fulfill-security-requirements-by-using-centralized-flow-log-data/\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 0.12.28 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement\\_aws) | \u003e= 4.9 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | \u003e= 4.9 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_flow_log.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/flow_log) | resource |\n| [aws_s3_bucket.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) | resource |\n| [aws_s3_bucket_policy.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy) | resource |\n| [aws_s3_bucket_public_access_block.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_public_access_block) | resource |\n| [aws_iam_policy_document.allow_vpc_flowlogs_delivery_service](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n| [aws_iam_policy_document.combined](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n| [aws_iam_policy_document.ssl_enforce](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_bucket_name_prefix\"\u003e\u003c/a\u003e [bucket\\_name\\_prefix](#input\\_bucket\\_name\\_prefix) | S3 Bucket Name Prefix | `string` | `\"S3 Bucket for Terraform Remote State Storage\"` | no |\n| \u003ca name=\"input_custom_policy\"\u003e\u003c/a\u003e [custom\\_policy](#input\\_custom\\_policy) | Custom policy | `string` | `null` | no |\n| \u003ca name=\"input_enable_default_policy\"\u003e\u003c/a\u003e [enable\\_default\\_policy](#input\\_enable\\_default\\_policy) | Enable default policy | `bool` | `true` | no |\n| \u003ca name=\"input_enable_versioning\"\u003e\u003c/a\u003e [enable\\_versioning](#input\\_enable\\_versioning) | Enable bucket versioning | `bool` | `false` | no |\n| \u003ca name=\"input_enable_vpc_delivery_service\"\u003e\u003c/a\u003e [enable\\_vpc\\_delivery\\_service](#input\\_enable\\_vpc\\_delivery\\_service) | Enable VPC delivery service policy | `bool` | `true` | no |\n| \u003ca name=\"input_enforce_ssl\"\u003e\u003c/a\u003e [enforce\\_ssl](#input\\_enforce\\_ssl) | Enforce bucket SSL encryption | `bool` | `true` | no |\n| \u003ca name=\"input_force_destroy\"\u003e\u003c/a\u003e [force\\_destroy](#input\\_force\\_destroy) | Whether to forcefully destroy the bucket or not | `bool` | `false` | no |\n| \u003ca name=\"input_log_format\"\u003e\u003c/a\u003e [log\\_format](#input\\_log\\_format) | VPC Flow Logs Format | `string` | `null` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | Tags To Apply To Created Resources | `any` | `{}` | no |\n| \u003ca name=\"input_vpc_id\"\u003e\u003c/a\u003e [vpc\\_id](#input\\_vpc\\_id) | VPC ID | `string` | `\"\"` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_bucket_arn\"\u003e\u003c/a\u003e [bucket\\_arn](#output\\_bucket\\_arn) | S3 Bucket ARN |\n| \u003ca name=\"output_bucket_name\"\u003e\u003c/a\u003e [bucket\\_name](#output\\_bucket\\_name) | S3 Bucket name |\n| \u003ca name=\"output_flow_log_id\"\u003e\u003c/a\u003e [flow\\_log\\_id](#output\\_flow\\_log\\_id) | Flow Log ID |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n\n## Examples\n### VPC Flow Logs\n```terraform\n#\n# VPC Flow Logs\n#\nmodule \"vpc_flow_logs\" {\n    source = \"git::git@github.com:binbashar/terraform-aws-vpc-flowlogs.git?ref=v0.0.2\"\n\n    vpc_id = \"your-vpc-id\"\n    bucket_name_prefix = \"your-s3-bucket-name-prefix\"\n    bucket_region = \"your-s3-bucket-region\"\n    tags = \"your-tags\"\n}\n```\n\n---\n\n## Binbash Leverage | DevOps Automation Code Library Integration\n\nIn order to get the full automated potential of the\n[Binbash Leverage DevOps Automation Code Library](https://leverage.binbash.com.ar/how-it-works/code-library/code-library/)  \nyou should initialize all the necessary helper **Makefiles**.\n\n#### How?\nYou must execute the `make init-makefiles` command  at the root context\n\n```shell\n╭─delivery at delivery-I7567 in ~/terraform/terraform-aws-backup-by-tags on master✔ 20-09-17\n╰─⠠⠵ make\nAvailable Commands:\n - init-makefiles     initialize makefiles\n\n```\n\n### Why?\nYou'll get all the necessary commands to automatically operate this module via a dockerized approach,\nexample shown below\n\n```shell\n╭─delivery at delivery-I7567 in ~/terraform/terraform-aws-backup-by-tags on master✔ 20-09-17\n╰─⠠⠵ make\nAvailable Commands:\n - circleci-validate-config  ## Validate A CircleCI Config (https\n - format-check        ## The terraform fmt is used to rewrite tf conf files to a canonical format and style.\n - format              ## The terraform fmt is used to rewrite tf conf files to a canonical format and style.\n - tf-dir-chmod        ## run chown in ./.terraform to gran that the docker mounted dir has the right permissions\n - version             ## Show terraform version\n - init-makefiles      ## initialize makefiles\n```\n\n```shell\n╭─delivery at delivery-I7567 in ~/terraform/terraform-aws-backup-by-tags on master✔ 20-09-17\n╰─⠠⠵ make format-check\ndocker run --rm -v /home/delivery/Binbash/repos/Leverage/terraform/terraform-aws-backup-by-tags:\"/go/src/project/\":rw -v :/config -v /common.config:/common-config/common.config -v ~/.ssh:/root/.ssh -v ~/.gitconfig:/etc/gitconfig -v ~/.aws/bb:/root/.aws/bb -e AWS_SHARED_CREDENTIALS_FILE=/root/.aws/bb/credentials -e AWS_CONFIG_FILE=/root/.aws/bb/config --entrypoint=/bin/terraform -w \"/go/src/project/\" -it binbash/terraform-awscli-slim:0.12.28 fmt -check\n```\n\n# Release Management\n\n### CircleCi PR auto-release job\n\n\u003cdiv align=\"left\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/binbashar/terraform-aws-vpc-flowlogs/master/figures/circleci.png\"\n   alt=\"leverage-circleci\" width=\"130\"/\u003e\n\u003c/div\u003e\n\n- [**pipeline-job**](https://circleci.com/gh/binbashar/terraform-aws-vpc-flowlogs) (**NOTE:** Will only run after merged PR)\n- [**releases**](https://github.com/binbashar/terraform-aws-vpc-flowlogs/releases)\n- [**changelog**](https://github.com/binbashar/terraform-aws-vpc-flowlogs/blob/master/CHANGELOG.md)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinbashar%2Fterraform-aws-vpc-flowlogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinbashar%2Fterraform-aws-vpc-flowlogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinbashar%2Fterraform-aws-vpc-flowlogs/lists"}