Can API Gateway send Access Logs to Firehose in a different account?

0

We have API Gateway deployed in account A and want to send Access Logs to a Firehose in account B so all auditing services and billing are separated. But after Firehose ARN from account B was set in API Gateway, we are getting the error "Invalid ARN specified in the request. ARN must belong to account A and region should be X". Is it possible that we are missing some permission configuration here? Or is just that API Gateway does not have the option to send Access Logs to another account?

3 Risposte
0

The recommendation would be to have API Gateway in account A, Kinesis Firehose in account A, and S3 target bucket + analytics in account B, you could find the example on how to achieve this here. The account A would also be charged by the usage of Kinesis Firehose. You could use tag-based cost allocation to know that cost in particular if you want to internally allocate that cost (although from my experience Firehose's cost shouldn't be too much to go through this hassle)

AWS
con risposta un anno fa
0

Thanks for the recommendation, we'll do that. Can you confirm it's not possible to send API Gateway's Access Logs to Firehose in a different account?

con risposta un anno fa
0

API Gateway doesn't allow direct cross-account pass role. At the moment they can only be sent to the same account (not cross-account). To have a centralized logging in a common account is to follow this pattern https://aws.amazon.com/solutions/implementations/centralized-logging/

AWS
con risposta 10 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande