Skip to content

Commit 2f5655c

Browse files
committed
move examples into separate folders to not break CI
1 parent 3c9fc7b commit 2f5655c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: push
44

55
defaults:
66
run:
7-
working-directory: examples
7+
working-directory: examples/elasticsearch
88

99
jobs:
1010
check:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module "functionbeat" {
6161

6262
## Advanced example ##
6363

64-
Head over to `example/elasticsearch.tf` to get an more advanced example.
64+
Head over to `example/elasticsearch/elasticsearch.tf` or `example/logstash/logstash.tf` to get an more advanced example.
6565

6666
## Usage ##
6767

@@ -162,7 +162,7 @@ This module exposes:
162162
In ``examples/`` there is an advanced example.
163163
Simply checkout the module source and
164164
```shell
165-
cd examples/
165+
cd examples/elasticsearch
166166
terrafrom init
167167
terraform apply -auto-approve
168168
```

examples/elasticsearch.tf renamed to examples/elasticsearch/elasticsearch.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ resource "aws_security_group" "functionbeat_securitygroup" {
3838
}
3939

4040
module "functionbeat" {
41-
source = "../"
41+
source = "../.."
4242

4343
application_name = "crazy-test-module"
4444
functionbeat_version = "7.17.1"

examples/logstash.tf renamed to examples/logstash/logstash.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ resource "aws_security_group" "functionbeat_securitygroup" {
3838
}
3939

4040
module "functionbeat" {
41-
source = "../"
41+
source = "../.."
4242

4343
application_name = "crazy-test-module"
4444
functionbeat_version = "7.17.1"
@@ -53,8 +53,8 @@ module "functionbeat" {
5353
}
5454

5555
output_logstash = {
56-
hosts = ["10.0.0.1:5044", "10.0.0.2:5044"]
57-
ssl.enabled = false
56+
hosts = ["10.0.0.1:5044", "10.0.0.2:5044"]
57+
"ssl.enabled" = false
5858
}
5959
}
6060

0 commit comments

Comments
 (0)