I’m confused. Are you now working in “remote” mode directly against AWS CF or are you trying to get the flavours from your Kaltura storage, i.e: “mapped” mode?
If the former, follow the configuration in the doc I referred you to. It was tested and should work correctly, assuming the CF endpoint your provided is valid and publicly accessible [as stated in the doc, you could add token configuration if need be but it’s covered in it]. If the later, then just re-run the kaltura-nginx-config.sh script. It auto configures everything and no manual changes should be necessary.