github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/lambda/AVD-AWS-0067/docs.md (about)

     1  
     2  When the principal is an AWS service, the ARN of the specific resource within that service to grant permission to. 
     3  
     4  Without this, any resource from principal will be granted permission – even if that resource is from another account. 
     5  
     6  For S3, this should be the ARN of the S3 Bucket. For CloudWatch Events, this should be the ARN of the CloudWatch Events Rule. For API Gateway, this should be the ARN of the API
     7  
     8  ### Impact
     9  Not providing the source ARN allows any resource from principal, even from other accounts
    10  
    11  <!-- DO NOT CHANGE -->
    12  {{ remediationActions }}
    13  
    14  ### Links
    15  - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html
    16  
    17