diff --git a/terraform/README.md b/terraform/README.md index e18fd58..fa3a571 100644 --- a/terraform/README.md +++ b/terraform/README.md @@ -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 diff --git a/terraform/aws-fleet/README.md b/terraform/aws-fleet/README.md new file mode 100644 index 0000000..f49eedb --- /dev/null +++ b/terraform/aws-fleet/README.md @@ -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/ diff --git a/terraform/aws-fleet/main.tf b/terraform/aws-fleet/main.tf new file mode 100644 index 0000000..7642335 --- /dev/null +++ b/terraform/aws-fleet/main.tf @@ -0,0 +1,33 @@ +locals { + vpc_id = "" + public_subnets = ["", ""] + private_subnet = "" + route53_zone_name = "" + subdomain = "" + certificate_arn = "" + aws_key_pair_name = "" + community_string = "" + fleet_username = "" + fleet_password = "" + fleet_api_password = "" + fleet_certificate_file_path = "" + fleet_sensor_license_file_path = "" +} + +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 +} diff --git a/terraform/aws-fleet/versions.tf b/terraform/aws-fleet/versions.tf new file mode 100644 index 0000000..554f427 --- /dev/null +++ b/terraform/aws-fleet/versions.tf @@ -0,0 +1,10 @@ +terraform { + required_version = ">=1.3.2" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5" + } + } +} \ No newline at end of file