awslabs / route53-dynamic-dns-with-lambda

A Dynamic DNS system built with API Gateway, Lambda & Route 53.
Apache License 2.0
491 stars 166 forks source link

Validation hashes do not match issue #14

Closed z0ph closed 6 years ago

z0ph commented 7 years ago

Hi,

I've an issue with this error message running the bash script :

sh dyn53exec.sh home.example.com. temp "XXX3sd7yh9.execute-api.eu-west-1.amazonaws.com/prod"

{"return_message": "Validation hashes do not match.", "return_status": "fail"}

The config file in S3 has the same shared key: "temp"

z0ph commented 7 years ago

After running some troubleshooting, it seems that the hash is not properly generated.

using bash script, i get a value,

and running the command below i get another value :

echo -n 77.158.75.xxxhome.example.com.temp | shasum -a 256

Whatever, i've set the hash manually in the script and now i've another error message :

["/var/runtime/botocore/client.py", 543, "_make_api_call", "raise error_class(parsed_response, operation_name)"]], "errorType": "ClientError", "errorMessage": "An error occurred (Throttling) when calling the ChangeResourceRecordSets operation (reached max retries: 4): Rate exceeded"}

seangreathouse commented 6 years ago

Fixed in new client from commit 51f3fd74af385f3230a7ba9607a5fbc8a66c2f41