Skip to content

Commit 4d13d60

Browse files
REAME and variables Cleanup
1 parent 4dcc679 commit 4d13d60

File tree

2 files changed

+26
-27
lines changed

2 files changed

+26
-27
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# terraform-aws-single-sensor (Early Access)
1+
# terraform-aws-single-sensor
22
Deploy a single AWS Corelight EC2 instance Cloud Sensor.
33

44
## Getting Started
55

66
### Initialize Terraform state
77
```shell
8-
terraform init
8+
terraform init
99
```
1010

1111
### Deployment Permissions
@@ -80,16 +80,16 @@ ebs_volume_size = "<your preferred EBS volume size in GB (number)" // default: 5
8080

8181
### Copy an example tfvars file and populate it with your details
8282
```shell
83-
cp minimal-example.tfvars foo.tfvars
83+
cp minimal-example.tfvars foo.tfvars
8484
```
8585

8686
### Plan the deployment
8787
```shell
88-
terraform plan --var-file foo.tfvars -out=tfplan
88+
terraform plan --var-file foo.tfvars -out=tfplan
8989
```
9090

9191
### Deploy the Plan
9292
If the plan looks good go ahead and deploy it
9393
```shell
94-
terraform apply tfplan
94+
terraform apply tfplan
9595
```

variables.tf

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ variable "aws_key_pair_name" {
99
}
1010

1111
variable "fleet_community_string" {
12-
description = "the Fleet Manager community string (api string)"
12+
description = "the fleet manager community string (api string)"
1313
type = string
1414
sensitive = true
1515
}
@@ -51,7 +51,7 @@ variable "monitoring_interface_name" {
5151
}
5252

5353
variable "monitoring_interface_subnet_id" {
54-
description = ""
54+
description = "Subnet where the monitoring ENI should reside"
5555
type = string
5656
default = ""
5757
}
@@ -63,19 +63,19 @@ variable "monitoring_security_group_id" {
6363
}
6464

6565
variable "monitoring_security_group_name" {
66-
description = ""
66+
description = "Name of the security group the module will provision for the monitoring ENI"
6767
type = string
6868
default = "corelight-sensor-mon-sg"
6969
}
7070

7171
variable "monitoring_security_group_description" {
72-
description = ""
72+
description = "Description of the monitoring ENI security group"
7373
type = string
7474
default = "Corelight Sensor Monitoring SG"
7575
}
7676

7777
variable "monitoring_security_group_vpc_id" {
78-
description = ""
78+
description = "Security group VPC ID module will use to provision the monitoring ENI security group"
7979
type = string
8080
default = ""
8181
}
@@ -87,32 +87,32 @@ variable "management_security_group_id" {
8787
}
8888

8989
variable "management_security_group_name" {
90-
description = ""
90+
description = "Name of the security group the module will provision for the management ENI"
9191
type = string
9292
default = "corelight-sensor-mgmt-sg"
9393
}
9494

9595
variable "management_security_group_description" {
96-
description = ""
96+
description = "Description of the management ENI security group"
9797
type = string
9898
default = "Corelight Sensor Managment SG"
9999
}
100100

101101
variable "management_security_group_vpc_id" {
102-
description = ""
102+
description = "Security group VPC ID module will use to provision the management ENI security group"
103103
type = string
104104
default = ""
105105
}
106106

107107
variable "custom_sensor_user_data" {
108-
description = "custom user data for a sensor if the default doesn't apply"
108+
description = "Custom user data for a sensor if the default doesn't apply"
109109
type = string
110110
default = ""
111111
}
112112

113113
variable "instance_name" {
114+
description = "The name for the sensor EC2 instance"
114115
type = string
115-
description = "The instance name for the instance"
116116
default = "corelight-sensor"
117117
}
118118

@@ -123,7 +123,7 @@ variable "instance_type" {
123123
}
124124

125125
variable "ebs_volume_size" {
126-
description = "The size, in GB of the EBS volume to be attached to the instance"
126+
description = "The size, in GB, of the EBS volume to be attached to the instance. Not recommended to set lower than 500GB"
127127
type = number
128128
default = 500
129129
}
@@ -143,63 +143,62 @@ variable "iam_instance_profile_name" {
143143

144144

145145
variable "fleet_token" {
146+
description = "(optional) the pairing token from the Fleet UI. Must be set if 'fleet_url' is provided"
146147
type = string
147148
default = ""
148149
sensitive = true
149-
description = "(optional) the pairing token from the Fleet UI. Must be set if 'fleet_url' is provided"
150150
}
151151

152152
variable "fleet_url" {
153+
description = "(optional) the URL of the fleet instance from the Fleet UI. Must be set if 'fleet_token' is provided"
153154
type = string
154155
default = ""
155-
description = "(optional) the URL of the fleet instance from the Fleet UI. Must be set if 'fleet_token' is provided"
156156
}
157157

158158
variable "fleet_server_sslname" {
159+
description = "(optional) the SSL hostname for the fleet server"
159160
type = string
160161
default = "1.broala.fleet.product.corelight.io"
161-
description = "(optional) the SSL hostname for the fleet server"
162-
163162
}
164163

165164
variable "fleet_http_proxy" {
165+
description = "(optional) the proxy URL for HTTP traffic from the fleet"
166166
type = string
167167
default = ""
168-
description = "(optional) the proxy URL for HTTP traffic from the fleet"
169168
}
170169

171170
variable "fleet_https_proxy" {
171+
description = "(optional) the proxy URL for HTTPS traffic from the fleet"
172172
type = string
173173
default = ""
174-
description = "(optional) the proxy URL for HTTPS traffic from the fleet"
175174
}
176175

177176
variable "fleet_no_proxy" {
177+
description = "(optional) hosts or domains to bypass the proxy for fleet traffic"
178178
type = string
179179
default = ""
180-
description = "(optional) hosts or domains to bypass the proxy for fleet traffic"
181180
}
182181

183182
variable "egress_allow_cidrs" {
184-
description = ""
183+
description = "The IP range allowed outbound for both network interfaces. Typically can be left as default"
185184
type = list(string)
186185
default = ["0.0.0.0/0"]
187186
}
188187

189188
variable "ssh_allow_cidrs" {
190-
description = ""
189+
description = "List of IPs (/32) to grant access to port 22"
191190
type = list(string)
192191
default = []
193192
}
194193

195194
variable "mirror_ingress_allow_cidrs" {
196-
description = ""
195+
description = "IP range to allow EC2 mirroring. Typically the CIDR of the VPC being monitored"
197196
type = list(string)
198197
default = ["0.0.0.0/0"]
199198
}
200199

201200
variable "health_check_allow_cidrs" {
202-
description = ""
201+
description = "IP range to allow health checks. Typically the CIDR of the VPC being monitored"
203202
type = list(string)
204203
default = ["0.0.0.0/0"]
205204
}

0 commit comments

Comments
 (0)