# Type of request: This is a ...

[*] bug report
[ ] feature request

# Detailed description

Perhaps not a bug report per se, but this affected me at least. A new version of `lambci/docker-lambda` was pushed recently. [This commit](https://github.com/lambci/docker-lambda/commit/7ece2742a5b0e84eb09d6ed659f123474e619b27) removed hardcoded defaults for `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.

I have a lambda that reads a value from secret in `secretsmanager`. If I don't set dummy values for `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` when creating the lambda invoking it will time out reading the secret.

## Expected behavior

A lambda function can read a secret from `secretsmanager`.

## Actual behavior

Lambda times out trying to read secret.

# Steps to reproduce

Create a lambda which tries to read a secret from `secretsmanager` without adding the environments variables mentioned above.

## Command used to start LocalStack

## Client code (AWS SDK code snippet, or sequence of "awslocal" commands)

This will work:
```bash
awslocal lambda create-function \
  --function-name foo \
  --runtime go1.x \
  --handler main \
  --role arn:aws:iam::123456790:role/ignore \
  --zip-file fileb://foo.zip \
  --environment "Variables={FOO=bar,AWS_ACCOUNT_ID=123456790,AWS_ACCESS_KEY_ID=0,AWS_SECRET_ACCESS_KEY=0}"
```

This will time out while reading:
```bash
awslocal lambda create-function \
  --function-name foo \
  --runtime go1.x \
  --handler main \
  --role arn:aws:iam::123456790:role/ignore \
  --zip-file fileb://foo.zip \
  --environment "Variables={FOO=bar}"
```
def execute_java_lambda(self, event, context, main_file, func_details=None):
        handler = func_details.handler
        opts = config.LAMBDA_JAVA_OPTS if config.LAMBDA_JAVA_OPTS else ''
        event_file = EVENT_FILE_PATTERN.replace('*', short_uid())
        save_file(event_file, json.dumps(json_safe(event)))
        TMP_FILES.append(event_file)
        class_name = handler.split('::')[0]
        classpath = '%s:%s:%s' % (main_file, Util.get_java_classpath(main_file), LAMBDA_EXECUTOR_JAR)
        cmd = 'java %s -cp %s %s %s %s' % (opts, classpath, LAMBDA_EXECUTOR_CLASS, class_name, event_file)
        LOG.warning(cmd)
        result = self.run_lambda_executor(cmd, func_details=func_details)
        return result
class Util:
    debug_java_port = False
    @classmethod
    def get_java_opts(cls):
        opts = config.LAMBDA_JAVA_OPTS or ''
        
        if '_debug_port_' in opts:
            if not cls.debug_java_port:
                cls.debug_java_port = get_free_tcp_port()
            opts = opts.replace('_debug_port_', ('%s' % cls.debug_java_port))
        else:
            
            m = re.match('.*address=(\\d+).*', opts)
            if m is not None:
                cls.debug_java_port = m.groups()[0]
        return opts
    @classmethod
    def get_host_path_for_path_in_docker(cls, path):