File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
defaults :
6
6
run :
7
- working-directory : test
7
+ working-directory : examples
8
8
9
9
jobs :
10
10
check :
Original file line number Diff line number Diff line change 4
4
* .zip
5
5
* tfstate
6
6
* tfstate.backup
7
- test /functionbeat- *
7
+ examples /functionbeat- *
8
8
* .lock.hcl
9
9
* .info
10
+ functionbeat.yml
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ module "functionbeat" {
51
51
52
52
## Advanced example ##
53
53
54
- Head over to ` test /main.tf` to get an more advanced example.
54
+ Head over to ` example /main.tf` to get an more advanced example.
55
55
56
56
## Usage ##
57
57
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ resource "aws_subnet" "subnet" {
19
19
}
20
20
}
21
21
22
+ resource "aws_cloudwatch_log_group" "example_logs" {
23
+ name = " MyExampleService"
24
+ retention_in_days = 1
25
+ }
26
+
22
27
resource "aws_security_group" "functionbeat_securitygroup" {
23
28
name = " Functionbeat"
24
29
vpc_id = aws_vpc. vpc . id
@@ -55,6 +60,8 @@ module "functionbeat" {
55
60
}
56
61
}
57
62
63
+ loggroup_name = aws_cloudwatch_log_group. example_logs . name
64
+
58
65
fb_extra_configuration = {
59
66
fields = {
60
67
env = " test" ,
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
# ================================== Required =====================================
2
2
3
3
variable "application_name" {
4
- type = string
5
4
description = " This value is added to any log in Kibana as a tag for filtering"
5
+ type = string
6
6
}
7
7
8
8
variable "functionbeat_version" {
9
+ description = " Funtionbeat version to deploy"
9
10
type = string
10
- description = " Funtionbeat version"
11
11
}
12
12
13
13
variable "lambda_config" {
14
+ description = " Minimal required configuration for Functionbeat lambda"
14
15
type = object ({
15
16
name = string
16
17
vpc_config = object ({
@@ -57,7 +58,7 @@ variable "lambda_write_arn_to_ssm" {
57
58
# ============================== Extra Functionbeat ===============================
58
59
59
60
variable "fb_extra_configuration" {
60
- description = " Tags to add to the resources "
61
+ description = " All valid Functionbeat configuration passed as valid HCL object. For configuration options head over to Functionbeat documentation. "
61
62
type = any
62
63
default = {}
63
64
}
You can’t perform that action at this time.
0 commit comments