Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 13.32 KB | None | 0 0
  1. ➜  Downloads aws kinesis put-records --records '[{"Data": "eyJlbnRpdHkiOiJzZXNzaW9uIiwiYWN0aW9uIjoic3RhcnRlZCJ9", "PartitionKey": "unique_permanent_key_for_installation"}]' --stream-name toadman-analytics-dev --debug
  2. 2018-12-17 18:08:32,437 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.15.51 Python/2.7.15 Darwin/18.2.0 botocore/1.10.50
  3. 2018-12-17 18:08:32,438 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['kinesis', 'put-records', '--records', '[{"Data": "eyJlbnRpdHkiOiJzZXNzaW9uIiwiYWN0aW9uIjoic3RhcnRlZCJ9", "PartitionKey": "unique_permanent_key_for_installation"}]', '--stream-name', 'toadman-analytics-dev', '--debug']
  4. 2018-12-17 18:08:32,438 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x10e59c500>
  5. 2018-12-17 18:08:32,438 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  6. 2018-12-17 18:08:32,438 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x10d017668>
  7. 2018-12-17 18:08:32,438 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  8. 2018-12-17 18:08:32,438 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x10df910c8>
  9. 2018-12-17 18:08:32,438 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  10. 2018-12-17 18:08:32,438 - MainThread - botocore.session - DEBUG - Loading variable credentials_file from defaults.
  11. 2018-12-17 18:08:32,438 - MainThread - botocore.session - DEBUG - Loading variable config_file from defaults.
  12. 2018-12-17 18:08:32,438 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  13. 2018-12-17 18:08:32,438 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_timeout from defaults.
  14. 2018-12-17 18:08:32,438 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  15. 2018-12-17 18:08:32,438 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_num_attempts from defaults.
  16. 2018-12-17 18:08:32,439 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  17. 2018-12-17 18:08:32,439 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x10e1a72a8>
  18. 2018-12-17 18:08:32,439 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  19. 2018-12-17 18:08:32,439 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  20. 2018-12-17 18:08:32,439 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.
  21. 2018-12-17 18:08:32,440 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/lib/python2.7/site-packages/botocore/data/kinesis/2013-12-02/service-2.json
  22. 2018-12-17 18:08:32,448 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.kinesis: calling handler <function register_retries_for_service at 0x10dac5938>
  23. 2018-12-17 18:08:32,449 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: kinesis
  24. 2018-12-17 18:08:32,450 - MainThread - botocore.hooks - DEBUG - Event building-command-table.kinesis: calling handler <function add_waiters at 0x10e5a4938>
  25. 2018-12-17 18:08:32,462 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/lib/python2.7/site-packages/botocore/data/kinesis/2013-12-02/waiters-2.json
  26. 2018-12-17 18:08:32,463 - MainThread - awscli.clidriver - DEBUG - OrderedDict([(u'records', <awscli.arguments.ListArgument object at 0x10e7cc650>), (u'stream-name', <awscli.arguments.CLIArgument object at 0x10e7cc690>)])
  27. 2018-12-17 18:08:32,464 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.kinesis.put-records: calling handler <function add_streaming_output_arg at 0x10e59cb18>
  28. 2018-12-17 18:08:32,464 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.kinesis.put-records: calling handler <function add_cli_input_json at 0x10df91cf8>
  29. 2018-12-17 18:08:32,464 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.kinesis.put-records: calling handler <function unify_paging_params at 0x10e22c050>
  30. 2018-12-17 18:08:32,477 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/lib/python2.7/site-packages/botocore/data/kinesis/2013-12-02/paginators-1.json
  31. 2018-12-17 18:08:32,478 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.kinesis.put-records: calling handler <function add_generate_skeleton at 0x10e21c410>
  32. 2018-12-17 18:08:32,478 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.kinesis.put-records: calling handler <bound method CliInputJSONArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x10e7cc590>>
  33. 2018-12-17 18:08:32,478 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.kinesis.put-records: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x10e7cc790>>
  34. 2018-12-17 18:08:32,479 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.put-records.records: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10e6c8e10>
  35. 2018-12-17 18:08:32,487 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.kinesis.put-records: calling handler <awscli.argprocess.ParamShorthandParser object at 0x10df6d110>
  36. 2018-12-17 18:08:32,487 - MainThread - awscli.argprocess - DEBUG - Param records looks like JSON, not considered for param shorthand.
  37. 2018-12-17 18:08:32,488 - MainThread - awscli.arguments - DEBUG - Unpacked value of [u'[{"Data": "eyJlbnRpdHkiOiJzZXNzaW9uIiwiYWN0aW9uIjoic3RhcnRlZCJ9", "PartitionKey": "unique_permanent_key_for_installation"}]'] for parameter"records": [OrderedDict([(u'Data', u'eyJlbnRpdHkiOiJzZXNzaW9uIiwiYWN0aW9uIjoic3RhcnRlZCJ9'), (u'PartitionKey', u'unique_permanent_key_for_installation')])]
  38. 2018-12-17 18:08:32,488 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.put-records.stream-name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10e6c8e10>
  39. 2018-12-17 18:08:32,489 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.kinesis.put-records: calling handler <awscli.argprocess.ParamShorthandParser object at 0x10df6d110>
  40. 2018-12-17 18:08:32,489 - MainThread - awscli.arguments - DEBUG - Unpacked value of u'toadman-analytics-dev' for parameter "stream_name": u'toadman-analytics-dev'
  41. 2018-12-17 18:08:32,489 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.put-records.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10e6c8e10>
  42. 2018-12-17 18:08:32,490 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.kinesis.put-records.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10e6c8e10>
  43. 2018-12-17 18:08:32,490 - MainThread - botocore.hooks - DEBUG - Event calling-command.kinesis.put-records: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x10e7cc590>>
  44. 2018-12-17 18:08:32,490 - MainThread - botocore.hooks - DEBUG - Event calling-command.kinesis.put-records: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x10e7cc790>>
  45. 2018-12-17 18:08:32,492 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  46. 2018-12-17 18:08:32,492 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  47. 2018-12-17 18:08:32,492 - MainThread - botocore.session - DEBUG - Loading variable region from config file with value 'eu-west-1'.
  48. 2018-12-17 18:08:32,492 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  49. 2018-12-17 18:08:32,492 - MainThread - botocore.session - DEBUG - Loading variable ca_bundle from defaults.
  50. 2018-12-17 18:08:32,493 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  51. 2018-12-17 18:08:32,493 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.
  52. 2018-12-17 18:08:32,493 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
  53. 2018-12-17 18:08:32,493 - MainThread - botocore.credentials - INFO - Found credentials in environment variables.
  54. 2018-12-17 18:08:32,494 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/lib/python2.7/site-packages/botocore/data/endpoints.json
  55. 2018-12-17 18:08:32,518 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  56. 2018-12-17 18:08:32,518 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x10dac5140>
  57. 2018-12-17 18:08:32,520 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.kinesis: calling handler <function add_generate_presigned_url at 0x10da7f758>
  58. 2018-12-17 18:08:32,521 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
  59. 2018-12-17 18:08:32,532 - MainThread - botocore.endpoint - DEBUG - Setting kinesis timeout as (60, 60)
  60. 2018-12-17 18:08:32,533 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: kinesis
  61. 2018-12-17 18:08:32,534 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.kinesis.PutRecords: calling handler <function generate_idempotent_uuid at 0x10dac5398>
  62. 2018-12-17 18:08:32,534 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=PutRecords) (verify_ssl=True) with params: {'body': '{"Records": [{"PartitionKey": "unique_permanent_key_for_installation", "Data": "ZXlKbGJuUnBkSGtpT2lKelpYTnphVzl1SWl3aVlXTjBhVzl1SWpvaWMzUmhjblJsWkNKOQ=="}], "StreamName": "toadman-analytics-dev"}', 'url': u'https://kinesis.eu-west-1.amazonaws.com/', 'headers': {'User-Agent': 'aws-cli/1.15.51 Python/2.7.15 Darwin/18.2.0 botocore/1.10.50', 'Content-Type': u'application/x-amz-json-1.1', 'X-Amz-Target': u'Kinesis_20131202.PutRecords'}, 'context': {'auth_type': None, 'client_region': 'eu-west-1', 'has_streaming_input': False, 'client_config': <botocore.config.Config object at 0x10ea01b50>}, 'query_string': '', 'url_path': '/', 'method': u'POST'}
  63. 2018-12-17 18:08:32,535 - MainThread - botocore.hooks - DEBUG - Event request-created.kinesis.PutRecords: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x10ea01b10>>
  64. 2018-12-17 18:08:32,551 - MainThread - botocore.hooks - DEBUG - Event choose-signer.kinesis.PutRecords: calling handler <function set_operation_specific_signer at 0x10dac52a8>
  65. 2018-12-17 18:08:32,553 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
  66. 2018-12-17 18:08:32,553 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
  67. POST
  68. /
  69.  
  70. content-type:application/x-amz-json-1.1
  71. host:kinesis.eu-west-1.amazonaws.com
  72. x-amz-date:20181217T150832Z
  73. x-amz-target:Kinesis_20131202.PutRecords
  74.  
  75. content-type;host;x-amz-date;x-amz-target
  76. 5ab065fc5bbfce9afcf357ca2976c616165e3dff355954c98a1057fcdc91d59d
  77. 2018-12-17 18:08:32,553 - MainThread - botocore.auth - DEBUG - StringToSign:
  78. AWS4-HMAC-SHA256
  79. 20181217T150832Z
  80. 20181217/eu-west-1/kinesis/aws4_request
  81. 34f1ca331e2c840c5fc4e5ccffdc9140789eb42e5aeda6055acd4090890a9039
  82. 2018-12-17 18:08:32,554 - MainThread - botocore.auth - DEBUG - Signature:
  83. 1853382b3bb9c3db40bb8b8b2432c6a26a7d30d34bea32bef476a61078bb3222
  84. 2018-12-17 18:08:32,561 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
  85. 2018-12-17 18:08:32,562 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): kinesis.eu-west-1.amazonaws.com
  86. 2018-12-17 18:08:32,851 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST / HTTP/1.1" 200 146
  87. 2018-12-17 18:08:32,853 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-requestid': 'fb655ea8-670f-dcc9-aff4-e09a5da5a901', 'x-amz-id-2': 'wfYG7SjbWykevqN2hVtw7vW3yXjYFCO9/0VQXiFOFrkgaEk/kC1j1DeOTJueXbzAHdA/SYtZ+FpFtAdSFDj/JEOWMU5gXe7a', 'content-length': '146', 'date': 'Mon, 17 Dec 2018 15:08:34 GMT', 'content-type': 'application/x-amz-json-1.1'}
  88. 2018-12-17 18:08:32,853 - MainThread - botocore.parsers - DEBUG - Response body:
  89. {"FailedRecordCount":0,"Records":[{"SequenceNumber":"49590653834750873655568444985511289037759108481955135490","ShardId":"shardId-000000000000"}]}
  90. 2018-12-17 18:08:32,853 - MainThread - botocore.hooks - DEBUG - Event needs-retry.kinesis.PutRecords: calling handler <botocore.retryhandler.RetryHandler object at 0x10e6c8290>
  91. 2018-12-17 18:08:32,854 - MainThread - botocore.retryhandler - DEBUG - No retry needed.
  92. 2018-12-17 18:08:32,854 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
  93. 2018-12-17 18:08:32,854 - MainThread - botocore.session - DEBUG - Loading variable output from defaults.
  94. 2018-12-17 18:08:32,854 - MainThread - awscli.formatter - DEBUG - RequestId: fb655ea8-670f-dcc9-aff4-e09a5da5a901
  95. {
  96.     "FailedRecordCount": 0,
  97.     "Records": [
  98.         {
  99.             "ShardId": "shardId-000000000000",
  100.             "SequenceNumber": "49590653834750873655568444985511289037759108481955135490"
  101.         }
  102.     ]
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement