Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECR Plugin issue when an image with many tags #153

Closed
1 task
YikaiHu opened this issue Aug 14, 2024 · 1 comment
Closed
1 task

ECR Plugin issue when an image with many tags #153

YikaiHu opened this issue Aug 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@YikaiHu
Copy link
Collaborator

YikaiHu commented Aug 14, 2024

Describe the bug
When transferring an image with many tags, this issue may occur.

LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html

[ERROR] ParamValidationError: Parameter validation failed:
Unknown parameter in input: "repositoryName", must be one of: registryId, repositoryNames, nextToken, maxResults
Unknown parameter in input: "filter", must be one of: registryId, repositoryNames, nextToken, maxResults
Traceback (most recent call last):
  File "/var/task/lambda_function.py", line 28, in lambda_handler
    result = image_helper.generate_repo_tag_map_list()
  File "/var/task/util/ecr_helper.py", line 117, in generate_repo_tag_map_list
    image_tags = self._get_ecr_image_tags(repo_name)
  File "/var/task/util/ecr_helper.py", line 201, in _get_ecr_image_tags
    response = self._ecr.describe_repositories(
  File "/var/runtime/botocore/client.py", line 553, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/var/runtime/botocore/client.py", line 962, in _make_api_call
    request_dict = self._convert_to_request_dict(
  File "/var/runtime/botocore/client.py", line 1036, in _convert_to_request_dict
    request_dict = self._serializer.serialize_to_request(
  File "/var/runtime/botocore/validate.py", line 381, in serialize_to_request
    raise ParamValidationError(report=report.generate_report())

Please complete the following information about the solution:

  • Version: v2.6.1
@YikaiHu YikaiHu added the bug Something isn't working label Aug 14, 2024
@YikaiHu
Copy link
Collaborator Author

YikaiHu commented Aug 14, 2024

We will patch this issue in next release.

Currently the workaround is manually replacing describe_repositories with describe_images in the _get_ecr_image_tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants