I'm running a container on EKS in account A and need to write to Kinesis stream (firehose) in another account (account B).
I'm using boto3, when running locally I use the user IAM credentials set using aws configure
.
But when deployed to EKS it's unable to write to that stream because it can't find it. I suspect that I need to somehow set up IAM role on account A and use it in EKS on account B, but I just can't find a way.
Any help will be great...
client = boto3.client('firehose')
client.put_record_batch(DeliveryStreamName=self.kinesis_stream_name, Records=records)