Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ across multiple cloud providers.
autoscaling sensor within AWS, including `main.tf` and `versions.tf` files for configuration.
- **`aws-cloud-enrichment/`**: A Terraform module for setting up cloud enrichment
services on AWS.
- **`aws-fleet/`**: Contains Terraform files for deploying Corelight's Fleet application on AWS.
- **`aws-flow-sensor/`**: (Private Preview) Contains an example deployment of the `terraform-aws-single-sensor` module
with supporting IAM resources
- **`azure-cloud-enrichment/`**: Module to configure cloud enrichment capabilities
Expand Down
11 changes: 11 additions & 0 deletions terraform/aws-fleet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Corelight Fleet - AWS

This directory provides Terraform code for deploying Corelight's Fleet application
on **AWS**.

## Overview

This deployment uses the [terraform-aws-fleet][] module, which simplifies the
setup of Corelights Fleet application by automating the provisioning of AWS resources.

[terraform-aws-fleet]: https://github.com/corelight/terraform-aws-fleet/
33 changes: 33 additions & 0 deletions terraform/aws-fleet/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
locals {
vpc_id = "<vpc where resources are deployed>"
public_subnets = ["<public subnet 1>", "<public subnet 2>"]
private_subnet = "<private subnet>"
route53_zone_name = "<route53 zone name>"
subdomain = "<subdomain for fleet>"
certificate_arn = "<certificate arn for fleet>"
aws_key_pair_name = "<aws key pair name>"
community_string = "<community string for fleet>"
fleet_username = "<fleet username>"
fleet_password = "<fleet password>"
fleet_api_password = "<fleet API password>"
fleet_certificate_file_path = "<path to fleet certificate file>"
fleet_sensor_license_file_path = "<path to fleet sensor license file>"
}

module "fleet" {
source = "github.com/corelight/terraform-aws-fleet"

vpc_id = local.vpc_id
public_subnets = local.public_subnets
private_subnet = local.private_subnet
route53_zone_name = local.route53_zone_name
subdomain = local.subdomain
certificate_arn = local.certificate_arn
aws_key_pair_name = local.aws_key_pair_name
community_string = local.community_string
fleet_username = local.fleet_username
fleet_password = local.fleet_password
fleet_api_password = local.fleet_api_password
fleet_certificate_file_path = local.fleet_certificate_file_path
fleet_sensor_license_file_path = local.fleet_sensor_license_file_path
}
10 changes: 10 additions & 0 deletions terraform/aws-fleet/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">=1.3.2"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5"
}
}
}