|
SDK 2021/11/15 16:19:38 DEBUG Request |
|
POST / HTTP/1.1 |
|
Host: localhost:4566 |
|
User-Agent: aws-sdk-go-v2/1.11.0 os/macos lang/go/1.17.2 md/GOOS/darwin md/GOARCH/amd64 api/dynamodb/1.8.0 |
|
Content-Length: 219 |
|
Accept-Encoding: identity |
|
Amz-Sdk-Invocation-Id: 084661f7-f6e5-4043-ae53-f8c7788018a5 |
|
Amz-Sdk-Request: attempt=1; max=3 |
|
Authorization: AWS4-HMAC-SHA256 Credential=foobar/20211115//dynamodb/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-target, Signature=b267de4f4a54711bb41e6b8b26bc214f043cdbcd2a627b048eec6af61f64e091 |
|
Content-Type: application/x-amz-json-1.0 |
|
X-Amz-Date: 20211115T211938Z |
|
X-Amz-Target: DynamoDB_20120810.CreateTable |
|
|
|
{"AttributeDefinitions":[{"AttributeName":"id","AttributeType":"S"}],"KeySchema":[{"AttributeName":"id","KeyType":"HASH"}],"ProvisionedThroughput":{"ReadCapacityUnits":10,"WriteCapacityUnits":10},"TableName":"my-table"} |
|
SDK 2021/11/15 16:19:41 DEBUG Response |
|
HTTP/1.1 200 |
|
Connection: close |
|
Content-Length: 476 |
|
Access-Control-Allow-Headers: authorization,cache-control,content-length,content-md5,content-type,etag,location,x-amz-acl,x-amz-content-sha256,x-amz-date,x-amz-request-id,x-amz-security-token,x-amz-tagging,x-amz-target,x-amz-user-agent,x-amz-version-id,x-amzn-requestid,x-localstack-target,amz-sdk-invocation-id,amz-sdk-request |
|
Access-Control-Allow-Methods: HEAD,GET,PUT,POST,DELETE,OPTIONS,PATCH |
|
Access-Control-Allow-Origin: * |
|
Access-Control-Expose-Headers: etag,x-amz-version-id |
|
Content-Type: application/x-amz-json-1.0 |
|
Date: Mon, 15 Nov 2021 21:19:41 GMT |
|
Server: hypercorn-h11 |
|
X-Amz-Crc32: 167133302 |
|
X-Amzn-Requestid: 64d3eb7b-ffd8-4f71-970b-50a1d26697ee |
|
|
|
{"TableDescription": {"AttributeDefinitions": [{"AttributeName": "id", "AttributeType": "S"}], "TableName": "my-table", "KeySchema": [{"AttributeName": "id", "KeyType": "HASH"}], "TableStatus": "ACTIVE", "CreationDateTime": 1637011181.503, "ProvisionedThroughput": {"ReadCapacityUnits": 10, "WriteCapacityUnits": 10}, "TableSizeBytes": 0, "ItemCount": 0, "TableArn": "arn:aws:dynamodb:us-east-1:000000000000:table/my-table", "TableId": "ae9fae27-3963-4f84-b0dc-2009d33537af"}} |
|
SDK 2021/11/15 16:19:41 DEBUG Request |
|
POST / HTTP/1.1 |
|
Host: localhost:4566 |
|
User-Agent: aws-sdk-go-v2/1.11.0 os/macos lang/go/1.17.2 md/GOOS/darwin md/GOARCH/amd64 api/dynamodb/1.8.0 |
|
Content-Length: 24 |
|
Accept-Encoding: identity |
|
Amz-Sdk-Invocation-Id: 8f468f8b-c5fd-4666-b522-00cde7b94290 |
|
Amz-Sdk-Request: attempt=1; max=3 |
|
Authorization: AWS4-HMAC-SHA256 Credential=foobar/20211115//dynamodb/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-target, Signature=b1dac4b5f237a3a3b9f28e1c400f8f54713320d6defd9c5b6ca141ab8b39780e |
|
Content-Type: application/x-amz-json-1.0 |
|
X-Amz-Date: 20211115T211941Z |
|
X-Amz-Target: DynamoDB_20120810.Scan |
|
|
|
{"TableName":"my-table"} |
|
SDK 2021/11/15 16:19:41 DEBUG Response |
|
HTTP/1.1 200 |
|
Connection: close |
|
Content-Length: 39 |
|
Access-Control-Allow-Headers: authorization,cache-control,content-length,content-md5,content-type,etag,location,x-amz-acl,x-amz-content-sha256,x-amz-date,x-amz-request-id,x-amz-security-token,x-amz-tagging,x-amz-target,x-amz-user-agent,x-amz-version-id,x-amzn-requestid,x-localstack-target,amz-sdk-invocation-id,amz-sdk-request |
|
Access-Control-Allow-Methods: HEAD,GET,PUT,POST,DELETE,OPTIONS,PATCH |
|
Access-Control-Allow-Origin: * |
|
Access-Control-Expose-Headers: etag,x-amz-version-id |
|
Content-Type: application/x-amz-json-1.0 |
|
Date: Mon, 15 Nov 2021 21:19:41 GMT |
|
Server: hypercorn-h11 |
|
X-Amz-Crc32: 583912891 |
|
X-Amzn-Requestid: 71c1d4f7-b57d-40d5-a2f4-fe462b80e6b3 |
|
|
|
{"Items":[],"Count":0,"ScannedCount":0} |
|
2021/11/15 16:19:41 scanned table: &{ConsumedCapacity:<nil> Count:0 Items:[] LastEvaluatedKey:map[] ScannedCount:0 ResultMetadata:{values:map[{}:-572848000 {}:0xc000240060 {}:71c1d4f7-b57d-40d5-a2f4-fe462b80e6b3 {}:{wall:13861184218436269952 ext:3129368444 loc:0x16363c0} {}:{wall:0 ext:63772607981 loc:<nil>} {}:{Results:[{Err:<nil> Retryable:false Retried:false ResponseMetadata:{values:map[{}:-572848000 {}:0xc000240060 {}:71c1d4f7-b57d-40d5-a2f4-fe462b80e6b3 {}:{wall:13861184218436269952 ext:3129368444 loc:0x16363c0} {}:{wall:0 ext:63772607981 loc:<nil>}]}}]}]} noSmithyDocumentSerde:{}} |
|
SDK 2021/11/15 16:19:41 DEBUG Request |
|
POST / HTTP/1.1 |
|
Host: localhost:4566 |
|
User-Agent: aws-sdk-go-v2/1.11.0 os/macos lang/go/1.17.2 md/GOOS/darwin md/GOARCH/amd64 api/dynamodb/1.8.0 |
|
Content-Length: 24 |
|
Accept-Encoding: identity |
|
Amz-Sdk-Invocation-Id: 4beeec19-6b1b-46ae-8646-3b469f2e2c20 |
|
Amz-Sdk-Request: attempt=1; max=3 |
|
Authorization: AWS4-HMAC-SHA256 Credential=foobar/20211115//dynamodb/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-date;x-amz-target, Signature=899c8f547eb72980fbd9a2f21f0ca3c5be80c99f0e2f31adcf9eb5e8ff9fbfb9 |
|
Content-Type: application/x-amz-json-1.0 |
|
X-Amz-Date: 20211115T211941Z |
|
X-Amz-Target: DynamoDB_20120810.DeleteTable |
|
|
|
{"TableName":"my-table"} |
|
SDK 2021/11/15 16:19:41 DEBUG Response |
|
HTTP/1.1 400 |
|
Connection: close |
|
Content-Length: 131 |
|
Access-Control-Allow-Headers: authorization,cache-control,content-length,content-md5,content-type,etag,location,x-amz-acl,x-amz-content-sha256,x-amz-date,x-amz-request-id,x-amz-security-token,x-amz-tagging,x-amz-target,x-amz-user-agent,x-amz-version-id,x-amzn-requestid,x-localstack-target,amz-sdk-invocation-id,amz-sdk-request |
|
Access-Control-Allow-Methods: HEAD,GET,PUT,POST,DELETE,OPTIONS,PATCH |
|
Access-Control-Allow-Origin: * |
|
Access-Control-Expose-Headers: etag,x-amz-version-id |
|
Content-Type: text/html; charset=utf-8 |
|
Date: Mon, 15 Nov 2021 21:19:41 GMT |
|
Server: hypercorn-h11 |
|
X-Amz-Crc32: 1844303718 |
|
|
|
{"message": "Cannot do operations on a non-existent table", "__type": "com.amazonaws.dynamodb.v20120810#ResourceNotFoundException"} |
|
2021/11/15 16:19:41 error deleting table: operation error DynamoDB: DeleteTable, https response error StatusCode: 400, RequestID: , ResourceNotFoundException: Cannot do operations on a non-existent table |
|
exit status 1 |