Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/howto/system_testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,15 @@ volumes:
mysqldata:
```

#### Run terraform along with the Docker Compose service deployer
#### Run provisioner tool along with the Docker Compose service deployer

Along with the Docker Compose service deployer, it could be added other services in the docker-compose scenario
to run other provisioner tools. For instance, the following example shows how it could be used Terraform with the
Docker Compose service deployer, but other tools could be used too.

**Please note**: this is not officially supported by `elastic-package`. Package owners are responsible for maintaining
their own provisioner Dockerfiles and other resources required (e.g. scripts).

This same service deployer can be used along with Terraform.
There is an example in the [test package `nginx_multiple_services`](../../test/packages/parallel/nginx_multiple_services/).

For that, you need to add another `terraform` service container in the docker-compose scenario as follows:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ To disable this conversion, the event.timezone field can be removed with the dro
If logs are originated from systems or applications with a different timezone to the local one, the `event.timezone`
field can be overwritten with the original timezone using the add_fields processor.

### Access Logs

Access logs collects the nginx access logs.

{{event "access"}}

{{fields "access"}}

### Access Docker & TF Logs

Access logs collects the nginx access logs.
Expand All @@ -29,3 +37,11 @@ Access logs collects the nginx access logs.

{{fields "access_docker_tf"}}


### Error Logs

Error logs collects the nginx error logs.

{{event "error"}}

{{fields "error"}}
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ services:
- TF_VAR_BUILD_ID=${BUILD_ID:-unknown}
- TF_VAR_ENVIRONMENT=${ENVIRONMENT:-unknown}
- TF_VAR_REPO=${REPO:-unknown}
# Example to use credentials
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
- AWS_PROFILE=${AWS_PROFILE}
- AWS_REGION=${AWS_REGION:-us-east-1}
volumes:
- ./tf/:/stage/
- ${SERVICE_LOGS_DIR}:/tmp/service_logs/
Loading