-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c7n_logexporter serverless implementation not working. #4827
Comments
@kapilt Also, wanted to know: for cross-accounts:
Can you explain the working flow? as in the Readme file nothing seems to be explained. |
4 and 5, the lambda only exists in the destination account, the tool setups cross account streaming destinations for cloud watch log groups using the native features of those groups, ie log groups -> destination -> kinesis -> [optional lambda] alternatively you can setup to a kinesis firehose destination and send direct to s3/elastic/etc without a lambda. |
the lambda usage for log exporter is pretty specialized around vpc to make, its also completely standalone with no dependencies that aren't already present n lambda, so your references 1,2,3 seem like your doing something wrong.. ie the lambda function here is a reformatter for flow logs to preserve compatibility with log group exports and streaming and is self contained to this module https://github.com/cloud-custodian/cloud-custodian/blob/master/tools/c7n_logexporter/c7n_logexporter/flowdeliver.py |
looking back through the readme, it does seem like its misleading about server less usage, so leaving this open till that is updated to clarify intent there. |
Hey @kapilt ! I have followed the readme for the implementations. Here are my list of queries(Correct me if I'm wrong in my understanding):
|
@abhishekFreshworks for 2 i think you don't need lambda cross account access as long as you have bucket policy for the master bucket. and lambda execution role in target accounts have access to write to this bucket |
Hi @kapilt ,
For serverless usage of c7n_logexporter:
After following the steps as mentioned in https://github.com/cloud-custodian/cloud-custodian/tree/master/tools/c7n_logexporter , below the series of issues that happened:
I removed that line. Error was solved.
The text was updated successfully, but these errors were encountered: