Skip to content

Conversation

@llange
Copy link
Contributor

@llange llange commented Aug 8, 2017

We can now retrieve DynamoDB.Table tag list.
Note: if boto3's documentation (http://boto3.readthedocs.io/en/latest/reference/services/dynamodb.html#DynamoDB.Client.list_tags_of_resource)
and AWS API's documentation (https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ListTagsOfResource.html),
the API call is described as having the "NextToken" mechanism implemented.
As far as I could see, skew's implementation relies on boto3's
can_paginate / get_paginator to handle this.
But it seems that boto3's latest version do not have a paginator
for the list_tags_of_resource() call.
I may have understood all this wrongly of course, but if it
were true, we could loose some of the tags.

We can now retrieve DynamoDB.Table tag list.
Note: if boto3's documentation (http://boto3.readthedocs.io/en/latest/reference/services/dynamodb.html#DynamoDB.Client.list_tags_of_resource)
and AWS API's documentation (https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ListTagsOfResource.html),
the API call is described as having the "NextToken" mechanism implemented.
As far as I could see, skew's implementation relies on boto3's
can_paginate / get_paginator to handle this.
But it seems that boto3's latest version do not have a paginator
for the list_tags_of_resource() call.
I may have understood all this wrongly of course, but if it
were true, we *could* loose some of the tags.
@avram
Copy link
Contributor

avram commented Aug 8, 2017

Given the low maximum number of tags on resources, I suspect that pragmatically the API clients opt to ignore pagination, as having multiple pages would require Amazon changing their tag count limit first. The API is being more conservative.

@avram avram merged commit f7af8d6 into scopely-devops:develop Aug 8, 2017
@llange llange deleted the fix_dynamodb_tags_spec branch August 8, 2017 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants