# AWS VPC flow logs Terraform module

Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fintegrations%2Faws%2Faws-vpc-flow-logs-terraform-module.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs-docusaurus.kinsta.page%2Fintegrations%2Faws%2Faws-vpc-flow-logs-terraform-module.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

Using Coralogix Terraform Modules, you can easily install and manage Coralogix integrations with AWS services as modules in your infrastructure code. This tutorial demonstrates how to install the [VPC Flow Logs collection Lambda](https://docs-docusaurus.kinsta.page/external/coralogix-aws-shipper).

Our modules are open source and available on our [GitHub](https://github.com/coralogix/terraform-coralogix-aws/tree/master/modules/coralogix-aws-shipper) and in the [Terraform Registry](https://registry.terraform.io/modules/coralogix/aws/coralogix/latest).

## Installation[​](#installation "Direct link to Installation")

Install our [](https://docs-docusaurus.kinsta.page/external/coralogix-aws-shipper)[VPC Flow Logs collection Lambda](https://docs-docusaurus.kinsta.page/external/coralogix-aws-shipper) by adding this declaration to your Terraform project:

```
module "coralogix-shipper-vpc-flow-logs" {

  source = "coralogix/aws/coralogix//modules/coralogix-aws-shipper"

  integration_type   = "VpcFlow"

  api_key            = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"

  application_name   = "vpcflow-application"

  subsystem_name     = "vpcflow-subsystem"

  s3_bucket_name     = "bucket name"

}
```

**Notes**:

* Input your Coralogix [Send-Your-Data API key](https://docs-docusaurus.kinsta.page/user-guides/account-management/api-keys/api-keys/.md) as `api_key`.

* Input [region](https://docs-docusaurus.kinsta.page/user-guides/account-management/account-settings/coralogix-domain/.md) (as `coralogix_region`) associated with your Coralogix account.

Execute the following:

```
terraform init

terraform plan

terraform apply
```

Run `terraform destroy` when you no longer need these resources.

## Additional Resources[​](#additional-resources "Direct link to Additional Resources")

|                        |                                                                                                                                                                                                                                                              |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Documentation          | [AWS VPC Flow Logs](https://docs-docusaurus.kinsta.page/external/coralogix-aws-shipper)<br />[Coralogix Terraform Provider](https://docs-docusaurus.kinsta.page/developer-portal/infrastructure-as-code/terraform-provider/coralogix-terraform-provider/.md) |
| External Documentation | [GitHub](https://github.com/coralogix/terraform-coralogix-aws/tree/master/modules/coralogix-aws-shipper)<br />[Terraform Registry](https://registry.terraform.io/modules/coralogix/aws/coralogix/latest)                                                     |
