AWS Log Credentials to Daemon

Does anyone have advice on how to pass credentials to the daemon for awslogs driver for RanchersOS and Cattle?

I’ve tried to pass the environment variables to both docker and system_docker:

sudo ros config set rancher.docker.environment "['AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxx','AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxx']"

sudo ros config set rancher.system_docker.environment "['AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxx','AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxx']"

but get:

    2016-08-22 22:59:49,747 ERROR agent [139821025271472] [] Error in request : f4eccba7-c0de-440d-9519-af87fdc76829
    Traceback (most recent call last):
      File "/var/lib/cattle/pyagent/cattle/agent/", line 95, in _worker_main
        resp = agent.execute(req)
      File "/var/lib/cattle/pyagent/cattle/agent/", line 15, in execute
        return self._router.route(req)
      File "/var/lib/cattle/pyagent/cattle/plugins/core/", line 13, in route
        resp = handler.execute(req)
      File "/var/lib/cattle/pyagent/cattle/agent/", line 34, in execute
        return method(req=req, **
      File "/var/lib/cattle/pyagent/cattle/plugins/docker/", line 529, in instance_activate
        self._do_instance_activate(instance, host, progress)
      File "/var/lib/cattle/pyagent/cattle/plugins/docker/", line 620, in _do_instance_activate
        raise e
    APIError: 500 Server Error: Internal Server Error ("Failed to initialize logging driver: UnrecognizedClientException: The security token included in the request is invalid.
            status code: 400, request id: 20db9353-68bc-11e6-a36a-453368dc23a9")