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 44
55defaults :
66 run :
7- working-directory : test
7+ working-directory : examples
88
99jobs :
1010 check :
Original file line number Diff line number Diff line change 44* .zip
55* tfstate
66* tfstate.backup
7- test /functionbeat- *
7+ examples /functionbeat- *
88* .lock.hcl
99* .info
10+ functionbeat.yml
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ module "functionbeat" {
5151
5252## Advanced example ##
5353
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.
5555
5656## Usage ##
5757
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ resource "aws_subnet" "subnet" {
1919 }
2020}
2121
22+ resource "aws_cloudwatch_log_group" "example_logs" {
23+ name = " MyExampleService"
24+ retention_in_days = 1
25+ }
26+
2227resource "aws_security_group" "functionbeat_securitygroup" {
2328 name = " Functionbeat"
2429 vpc_id = aws_vpc. vpc . id
@@ -55,6 +60,8 @@ module "functionbeat" {
5560 }
5661 }
5762
63+ loggroup_name = aws_cloudwatch_log_group. example_logs . name
64+
5865 fb_extra_configuration = {
5966 fields = {
6067 env = " test" ,
File renamed without changes.
Original file line number Diff line number Diff line change 11# ================================== Required =====================================
22
33variable "application_name" {
4- type = string
54 description = " This value is added to any log in Kibana as a tag for filtering"
5+ type = string
66}
77
88variable "functionbeat_version" {
9+ description = " Funtionbeat version to deploy"
910 type = string
10- description = " Funtionbeat version"
1111}
1212
1313variable "lambda_config" {
14+ description = " Minimal required configuration for Functionbeat lambda"
1415 type = object ({
1516 name = string
1617 vpc_config = object ({
@@ -57,7 +58,7 @@ variable "lambda_write_arn_to_ssm" {
5758# ============================== Extra Functionbeat ===============================
5859
5960variable "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. "
6162 type = any
6263 default = {}
6364}
You can’t perform that action at this time.
0 commit comments