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']"
2016-08-22 22:59:49,747 ERROR agent  [event.py:112] Error in request : f4eccba7-c0de-440d-9519-af87fdc76829 Traceback (most recent call last): File "/var/lib/cattle/pyagent/cattle/agent/event.py", line 95, in _worker_main resp = agent.execute(req) File "/var/lib/cattle/pyagent/cattle/agent/__init__.py", line 15, in execute return self._router.route(req) File "/var/lib/cattle/pyagent/cattle/plugins/core/event_router.py", line 13, in route resp = handler.execute(req) File "/var/lib/cattle/pyagent/cattle/agent/handler.py", line 34, in execute return method(req=req, **req.data.__dict__) File "/var/lib/cattle/pyagent/cattle/plugins/docker/compute.py", line 529, in instance_activate self._do_instance_activate(instance, host, progress) File "/var/lib/cattle/pyagent/cattle/plugins/docker/compute.py", 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")