{"action":"created","issue":{"url":"https://api.github.com/repos/aknuds1/do-spaces-tool/issues/1","repository_url":"https://api.github.com/repos/aknuds1/do-spaces-tool","labels_url":"https://api.github.com/repos/aknuds1/do-spaces-tool/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/aknuds1/do-spaces-tool/issues/1/comments","events_url":"https://api.github.com/repos/aknuds1/do-spaces-tool/issues/1/events","html_url":"https://github.com/aknuds1/do-spaces-tool/issues/1","id":295981753,"number":1,"title":"Error when uploading files to DO Spaces","user":{"login":"grdavies","id":2638082,"avatar_url":"https://avatars0.githubusercontent.com/u/2638082?v=4","gravatar_id":"","url":"https://api.github.com/users/grdavies","html_url":"https://github.com/grdavies","followers_url":"https://api.github.com/users/grdavies/followers","following_url":"https://api.github.com/users/grdavies/following{/other_user}","gists_url":"https://api.github.com/users/grdavies/gists{/gist_id}","starred_url":"https://api.github.com/users/grdavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grdavies/subscriptions","organizations_url":"https://api.github.com/users/grdavies/orgs","repos_url":"https://api.github.com/users/grdavies/repos","events_url":"https://api.github.com/users/grdavies/events{/privacy}","received_events_url":"https://api.github.com/users/grdavies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-09T19:16:47Z","updated_at":"2018-02-10T18:32:01Z","closed_at":null,"author_association":"NONE","body":"When used as part of the tectonic-installer deploying to DO the configuration of the master server fails as assets.zip and kubeconfig are not present in the bucket created by terraform earlier in the script.\r\n\r\nWhen using this container locally with the following command; \r\n`docker run -t --net=host -e ACCESS_KEY_ID -e SECRET_ACCESS_KEY -e REGION -v /tmp:/spaces aknudsen/do-spaces-tool:0.2.0 upload /spaces/test.txt atectonic-1018074834beb35b2f97d5dee5f9283b/test.txt`\r\n\r\nI receive the following error;\r\n```\r\nUploading file /spaces/test.txt...\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/site-packages/boto3/s3/transfer.py\", line 275, in upload_file\r\n    future.result()\r\n  File \"/usr/local/lib/python3.6/site-packages/s3transfer/futures.py\", line 73, in result\r\n    return self._coordinator.result()\r\n  File \"/usr/local/lib/python3.6/site-packages/s3transfer/futures.py\", line 233, in result\r\n    raise self._exception\r\n  File \"/usr/local/lib/python3.6/site-packages/s3transfer/tasks.py\", line 126, in __call__\r\n    return self._execute_main(kwargs)\r\n  File \"/usr/local/lib/python3.6/site-packages/s3transfer/tasks.py\", line 150, in _execute_main\r\n    return_value = self._main(**kwargs)\r\n  File \"/usr/local/lib/python3.6/site-packages/s3transfer/upload.py\", line 679, in _main\r\n    client.put_object(Bucket=bucket, Key=key, Body=body, **extra_args)\r\n  File \"/usr/local/lib/python3.6/site-packages/botocore/client.py\", line 314, in _api_call\r\n    return self._make_api_call(operation_name, kwargs)\r\n  File \"/usr/local/lib/python3.6/site-packages/botocore/client.py\", line 612, in _make_api_call\r\n    raise error_class(parsed_response, operation_name)\r\nbotocore.exceptions.ClientError: An error occurred (InvalidArgument) when calling the PutObject operation: Server Side Encryption with KMS managed key requires HTTP header x-amz-server-side-encryption : aws:kms\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"do-spaces-tool.py\", line 65, in <module>\r\n    args.func(args)\r\n  File \"do-spaces-tool.py\", line 33, in cmd_upload\r\n    'ServerSideEncryption': 'AES256',\r\n  File \"/usr/local/lib/python3.6/site-packages/boto3/s3/inject.py\", line 110, in upload_file\r\n    extra_args=ExtraArgs, callback=Callback)\r\n  File \"/usr/local/lib/python3.6/site-packages/boto3/s3/transfer.py\", line 283, in upload_file\r\n    filename, '/'.join([bucket, key]), e))\r\nboto3.exceptions.S3UploadFailedError: Failed to upload /spaces/test.txt to atectonic-1018074834beb35b2f97d5dee5f9283b/test.txt: An error occurred (InvalidArgument) when calling the PutObject operation: Server Side Encryption with KMS managed key requires HTTP header x-amz-server-side-encryption : aws:kms\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aknuds1/do-spaces-tool/issues/comments/364678828","html_url":"https://github.com/aknuds1/do-spaces-tool/issues/1#issuecomment-364678828","issue_url":"https://api.github.com/repos/aknuds1/do-spaces-tool/issues/1","id":364678828,"user":{"login":"aknuds1","id":281303,"avatar_url":"https://avatars1.githubusercontent.com/u/281303?v=4","gravatar_id":"","url":"https://api.github.com/users/aknuds1","html_url":"https://github.com/aknuds1","followers_url":"https://api.github.com/users/aknuds1/followers","following_url":"https://api.github.com/users/aknuds1/following{/other_user}","gists_url":"https://api.github.com/users/aknuds1/gists{/gist_id}","starred_url":"https://api.github.com/users/aknuds1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aknuds1/subscriptions","organizations_url":"https://api.github.com/users/aknuds1/orgs","repos_url":"https://api.github.com/users/aknuds1/repos","events_url":"https://api.github.com/users/aknuds1/events{/privacy}","received_events_url":"https://api.github.com/users/aknuds1/received_events","type":"User","site_admin":false},"created_at":"2018-02-10T18:32:01Z","updated_at":"2018-02-10T18:32:01Z","author_association":"OWNER","body":"Interesting, never seen this issue before! Thanks for reporting. Maybe I'll try to spin up a test cluster to see if this happens to me as well."}}
{"actor":{"display_login":"aknuds1"}}