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

[Bug] Broken Lambda in v2.1.8 #58

Open
oponomarov-tu opened this issue Nov 17, 2023 · 0 comments · May be fixed by #59
Open

[Bug] Broken Lambda in v2.1.8 #58

oponomarov-tu opened this issue Nov 17, 2023 · 0 comments · May be fixed by #59
Labels
bug Something isn't working

Comments

@oponomarov-tu
Copy link

oponomarov-tu commented Nov 17, 2023

Observed Behaviour

Updating to v2.1.8 causes the Lambda to fail with the following error:


[ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter ChangeBatch.Changes[0].ResourceRecordSet.TTL, value: 300, type: <class 'str'>, valid types: <class 'int'> Traceback (most recent call last):   File "/var/task/autoscale.py", line 144, in lambda_handler     process_record(record)   File "/var/task/autoscale.py", line 136, in process_record     process_message(json.loads(record['Sns']['Message']))   File "/var/task/autoscale.py", line 132, in process_message     update_record(zone_id, ip, hostname, operation)   File "/var/task/autoscale.py", line 87, in update_record     route53.change_resource_record_sets(   File "/var/runtime/botocore/client.py", line 530, in _api_call     return self._make_api_call(operation_name, kwargs)   File "/var/runtime/botocore/client.py", line 919, in _make_api_call     request_dict = self._convert_to_request_dict(   File "/var/runtime/botocore/client.py", line 990, 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())
--

Feels like this line is missing integer conversion.

Version(s) Affected

v2.1.8

Steps to Reproduce

  1. Deploy v2.1.8.
  2. Use it.

Expected Behaviour

No response

@oponomarov-tu oponomarov-tu added the bug Something isn't working label Nov 17, 2023
@mashb1t mashb1t linked a pull request Feb 1, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant