https://pulumi.com logo
#general
Title
# general
q

quick-action-34599

05/09/2019, 2:14 PM
Follow-up: can anyone shed light on why a cloud-aws api would be returning base64-encoded strings no matter how I do the response? I have working cloud-aws apis on another account and they seem to work fine. I can’t find any differences between the base64 and regular ones code-wise or setup-wise EXCEPT for the one that works had its
binaryMediaTypes
apigateway setting set to
*/*
. I tried adding that to the base64 one but it didn’t start working, and pulumi removes the setting when I
pulumi up
.
g

gentle-diamond-70147

05/09/2019, 3:33 PM
Can you elaborate a bit? I'm not understanding. Which resources are doing this?
q

quick-action-34599

05/09/2019, 4:06 PM
I have an aws lambda function fronted by an api gateway that should be returning JSON but is returning the data as a base64-encoded string instead
g

gentle-diamond-70147

05/09/2019, 4:22 PM
Nothing comes to mind on why that would be. Can you share your code so I can try to reproduce that?
q

quick-action-34599

05/09/2019, 4:28 PM
@gentle-diamond-70147 well, one of the problems is that I’ve never had this issue with other lambdas so I haven’t even been able to reproduce it myself
Lemme fire up a repo
There’s a cloudfront distribution that I was messing around with. I don’t see how it could be related to that, but who knows
4 Views