aws-cloudfront-function-code-source
CloudFront Function JavaScript source can contain hard-coded credentials or tokens.
Where it sits
| location | GetFunction.FunctionCode |
| location kind | code_artifact |
| data kinds | source_code_secret credential password api_key |
| emits edge | ContainsCredential |
| service | CloudFront (aws:cloudfront) |
Collection recipe
| access mode | read_api |
| operation | GetFunction |
| response path | FunctionCode |
| encoding | binary |
| params | {"Name": "\u003cfunction-name\u003e", "Stage": "DEVELOPMENT"} |
Required permissions
cloudfront:GetFunction
References