Download a template configuration file from GitHub: config.hocon.sample.
Now open the
config.hocon.sample file in your editor of choice.
You can also now include Snowplow Monitoring in the application. This is setup through an optional section at the bottom of the config. You will need to ammend:
monitoring.snowplow.collectorUriinsert your snowplow collector URI here.
monitoring.snowplow.appIdthe app-id used in decorating the events sent.
If you do not wish to include Snowplow Monitoring please remove the entire
monitoring section from the config.
You will also need a JSON configuration for the Iglu resolver used to look up JSON schemas. A sample configuration is available here.
You may wish to use Snowplow’s configurable enrichments. To do this, create a directory of enrichment JSONs. For each configurable enrichment you wish to use, the enrichments directory should contain a .json file with a configuration JSON for that enrichment. When you come to run Stream Enrich you can then pass in the filepath to this directory using the –enrichments option.
Sensible default configuration enrichments are available on GitHub: 3-enrich/config/enrichments.
See the documentation on configuring enrichments for details on the available enrichments.
Storage in DynamoDB
Rather than keeping the resolver JSON in a local file, you can store it in a DynamoDB table.