Demo doesn't work in eu-west-1
Closed this issue · 3 comments
When attempting to run the demo on eu-west-1, the stacks hang on creation and I get this error in the lambda function binxio-cfn-secret-provider:
failed to put the response to https://cloudformation-custom-resource-response-euwest1.s3-eu-west-1.amazonaws.com/ [...]
SignatureDoesNotMatch
The request signature we calculated does not match the signature you provided. Check your key and signing method.
I see this problem too. It is really strange, as the responseURL is passed in by CloudFormation. We just execute the PUT. I will try to open a case.
I ran into exactly the same problem, which seems to be fixed after adding a {'Content-Type': ''} header to the requests.put() request (which I saw other people do).
In cfn_resource_provider.py around line 360:
headers = {'Content-type': ''}
r = requests.put(url, json=self.response, headers=headers)
Solved by #7cf6a2c863d6acc2318159aef5c67c4800892b87 released in version 0.7.4