Extract the custom headers -
Authorization and X-P-Stream from x-amz-firehose-common-attributes header
this header has value like below -
{"commonAttributes":{"Authorization":"Basic <<base64 encoded credentials","X-P-Stream":"<>","Content-Type":"application/json"}}