{"id":38011217,"url":"https://github.com/corelight/terraform-aws-single-sensor","last_synced_at":"2026-01-16T19:20:39.575Z","repository":{"id":292936187,"uuid":"917344908","full_name":"corelight/terraform-aws-single-sensor","owner":"corelight","description":"Terraform for a single AWS Corelight EC2 instance Cloud Sensor Deployment.","archived":false,"fork":false,"pushed_at":"2025-10-29T14:13:32.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-29T16:16:56.876Z","etag":null,"topics":["aws","cloud","iac","terraform"],"latest_commit_sha":null,"homepage":"","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/corelight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-15T20:05:21.000Z","updated_at":"2025-10-29T14:13:01.000Z","dependencies_parsed_at":"2025-05-12T22:38:31.364Z","dependency_job_id":"0d187740-02cc-4a7a-bf59-3d9cf4275608","html_url":"https://github.com/corelight/terraform-aws-single-sensor","commit_stats":null,"previous_names":["corelight/terraform-aws-single-sensor"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/corelight/terraform-aws-single-sensor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corelight%2Fterraform-aws-single-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corelight%2Fterraform-aws-single-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corelight%2Fterraform-aws-single-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corelight%2Fterraform-aws-single-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corelight","download_url":"https://codeload.github.com/corelight/terraform-aws-single-sensor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corelight%2Fterraform-aws-single-sensor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28481675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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","cloud","iac","terraform"],"created_at":"2026-01-16T19:20:39.499Z","updated_at":"2026-01-16T19:20:39.560Z","avatar_url":"https://github.com/corelight.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-aws-single-sensor\nDeploy a single AWS Corelight EC2 instance Cloud Sensor. \n\n## Getting Started\n\n### Initialize Terraform state\n```shell \nterraform init\n```\n\n### Deployment Permissions\nEnsure you are able to authenticate to the AWS account you are looking to deploy\nthese resources into and have the proper permissions to create resources. Any deployment \nincluding IAM resources will require administrator level permissions.\n\n## Usage\n```terraform\nami_id                 = \"ami-12345abc\"\nfleet_community_string = \"\u003cfleet community string\u003e\"\naws_key_pair_name      = \"\u003cyour aws key pair\u003e\"\n\n// Monitoring Interface - User Provided (Option A) \nmonitoring_interface_id = \"\u003cyour monitoring ENI ID\u003e\"\n\n// Monitoring Interface - Module Provided (Option B)\nmonitoring_interface_subnet_id = \"\u003cyour monitoring subnet id\u003e\"\nmonitoring_interface_name      = \"\u003cyour preferred interface name\u003e\" // default: corelight-mon-nic\n\n// Monitoring Interface Security Group - User Provided (Option A)\n// Rules will be added to the security group provided\nmonitoring_security_group_id = \"\u003cyour existing security group for the monitoring NIC\u003e\"\n\n// Monitoring Interface Security Group - Module Provided (Option B)\nmonitoring_security_group_vpc_id      = \"\u003cyour monitoring subnet VPC id\u003e\"\nmonitoring_security_group_name        = \"\u003cyour preferred security group name\u003e\"        // default: corelight-sensor-mon-sg\nmonitoring_security_group_description = \"\u003cyour preferred security group description\u003e\" // default: Corelight Sensor Monitoring SG\n\n// Management Interface - User Provided (Option A)\nmanagement_interface_id = \"\u003cyour management ENI ID\u003e\"\n\n// Management Interface - Module Provided (Option B)\nmanagement_interface_subnet_id = \"\u003cyour management subnet id\u003e\"\nmanagement_interface_name      = \"\u003cyour preferred interface name\u003e\" // default: corelight-mgmt-nic\nmanagement_interface_public_ip = true                              // default: false\n\n// Management Interface Security Group - User Provided (Option A)\n//  Rules will be added to the security group provided\nmanagement_security_group_id = \"\u003cyour existing security group for the management NIC\u003e\"\n\n// Management Interface Security Group - Module Provided (Option B)\nmanagement_security_group_vpc_id      = \"\u003cyour management subnet VPC id\u003e\"\nmanagement_security_group_name        = \"\u003cyour preferred security group name\u003e\"        // default: corelight-sensor-mgmt-sg\nmanagement_security_group_description = \"\u003cyour preferred security group description\u003e\" // default: Corelight Sensor Management SG\n\n// Security Rules Configuration\nssh_allow_cidrs          = [\"\u003cCIDRs allowed to SSH to a public mgmt nic\u003e\"] // default: []\negress_allow_cidrs       = [\"\u003cyour preferred egress CIDR(s)\u003e\"]              // default: [\"0.0.0.0/0\"]\nhealth_check_allow_cidrs = [\"\u003cyour preferred health check CIDR(s)\u003e\"]        // default: [\"0.0.0.0/0\"]\n\n// Recommend using the CIDR of the VPC being monitored\nmirror_ingress_allow_cidrs = [\"\u003cyour preferred mirror CIDR(s)\u003e\"] // default: [\"0.0.0.0/0\"]\n\n// Licensing Module Provided - with Fleet (Option A)\nfleet_token = \"\u003cyour fleet token\u003e\"\nfleet_url = \"https://\u003cyour-fleet-instance\u003e:1443/fleet/v1/internal/softsensor/websocket\"\nfleet_server_sslname = \"\u003cthe ssl name provided by Fleet\u003e\"\n\n// Licensing Module Provided - Without Fleet (Option B)\nlicense_key_file_path = \"/path/to/license.txt\"\n\n// Custom User Data for Cloud-Init\n//  it is recommended to use the module for sensor configuration. Providing your own custom user data may lead to unforeseen consequences.\ncustom_sensor_user_data = \"\"\n\n// Instance Configuration\ninstance_name   = \"\u003cyour preferred instance name\u003e\"                 // default: corelight-sensor\ninstance_type   = \"\u003cyour preferred instance type\u003e\"                 // default: c5.2xlarge\nebs_volume_size = \"\u003cyour preferred EBS volume size in GB (number)\" // default: 500\n```\n\n### Copy an example tfvars file and populate it with your details\n```shell\ncp minimal-example.tfvars foo.tfvars \n```\n\n### Plan the deployment\n```shell\nterraform plan --var-file foo.tfvars -out=tfplan\n```\n\n### Deploy the Plan\nIf the plan looks good go ahead and deploy it\n```shell\nterraform apply tfplan\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorelight%2Fterraform-aws-single-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorelight%2Fterraform-aws-single-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorelight%2Fterraform-aws-single-sensor/lists"}