How to export AWS Security Hub findings to CSV format

0

I'm trying to deploy this solution (https://aws.amazon.com/blogs/security/how-to-export-aws-security-hub-findings-to-csv-format/) but running into this particular error "Invalid principal in policy (Service: Amazon S3; Status Code: 400; Error Code: MalformedPolicy;". I'd appreciate it if someone could help me figure out what I could be doing wrong. Thanks all.

2개 답변
3

Hi,

I understand you would like to know how to fix the particular error you are running into. The error is coming from the S3 bucket policy. ("Invalid principal in policy (Service: Amazon S3; Status Code: 400; Error Code: MalformedPolicy;")

It means the value of a Principal in your S3 bucket policy created from the solution is not valid. To resolve this error, follow the instructions here:

https://repost.aws/knowledge-center/s3-invalid-principal-in-policy-error

I hope this helps. Let me know if I answered your question or if you have any follow-up.

Kind regards, Ahmed

References: [1] https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html#BucketPolicies [2] https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-iam-policies.html#specifyingPrincipals

AWS
답변함 일 년 전
0

From the blog listed in the query, Lamba function which converts Security hub findings in CSV and write to S3 bucket. Based on the error message - it seems that you are missing bucket policy on S3 to allow for lambda execution role to have write access to the bucket. Follow the instruction @ **https://repost.aws/knowledge-center/lambda-execution-role-s3-bucket **which provides example policy to grant Lamdba execution role access to S3 bucket.

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠