<!-- Love localstack? Please consider supporting our collective:
👉  https://opencollective.com/localstack/donate -->

Having upgraded to the latest LocalStack version, I've noticed that Docker containers from Lambda executions are immediately removed when they terminate.

This was added in https://github.com/localstack/localstack/pull/1584

I can appreciate the need to clean up containers, however this feature of having them stay up is actually very useful for debugging things when they go wrong!

Would it be possible to have a flag so that when running LocalStack we can specify whether to remove containers on completion? Something like:

```
services:
  localstack:
    image: localstack/localstack:latest
    ports:
      - "4567-4593:4567-4593"
    environment:
      - SERVICES=serverless,ssm,stepfunctions
      - DOCKER_HOST=unix:///var/run/docker.sock
      - LAMBDA_EXECUTOR=docker
      - REMOVE_CONTAINERS_ON_LAMBDA_TERMINATE=true #(or false)
    volumes:
      - "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
      - "/var/run/docker.sock:/var/run/docker.sock"
```

Thanks for the great work folks!
""" check whether any of the event types in `events` matches the
        given `action` and `api_method`, and return the first match. """
    events = events or []
    for event in events:
        regex = event.replace('*', '[^:]*')
        action_string = 's3:%s:%s' % (action, api_method)
        match = re.match(regex, action_string)
        if match:
            return match
    return False
def filter_rules_match(filters, object_path):
    """ check whether the given object path matches all of the given filters """
    filters = filters or {}
    s3_filter = _get_s3_filter(filters)
    for rule in s3_filter.get('FilterRule', []):
        rule_name_lower = rule['Name'].lower()
        if rule_name_lower == 'prefix':
            if not prefix_with_slash(object_path).startswith(prefix_with_slash(rule['Value'])):
                return False
        elif rule_name_lower == 'suffix':
            if not object_path.endswith(rule['Value']):
                return False
        else:
            LOGGER.warning('Unknown filter name: "%s"' % rule['Name'])
    return True
def _get_s3_filter(filters):