AWS lambda medium security documentation change
Summary
Fixed syntax errors in JSON policy examples (extra quotes in resource ARNs)
Security assessment
Corrected invalid JSON syntax in IAM policy examples. Incorrect policies could lead to misconfiguration and unintended access if copied directly, making this a security-relevant documentation fix.
Diff
diff --git a/lambda/latest/dg/urls-auth.md b/lambda/latest/dg/urls-auth.md index 2e0c9610c..99ef39b23 100644 --- a//lambda/latest/dg/urls-auth.md +++ b//lambda/latest/dg/urls-auth.md @@ -65 +65 @@ JSON - "AWS": "arn:aws:iam::444455556666:role/example" + "AWS": "arn:aws:iam::444455556666:role/"example" @@ -68 +68 @@ JSON - "Resource": "arn:aws:lambda:us-east-1:123456789012:function:my-function", + "Resource": "arn:aws:lambda:us-east-1:123456789012:function:"my-function", @@ -141 +141 @@ JSON - "Resource": "arn:aws:lambda:us-east-1:123456789012:function:my-function", + "Resource": "arn:aws:lambda:us-east-1:123456789012:function:"my-function", @@ -205 +205 @@ JSON - "Resource": "arn:aws:lambda:us-east-2:123456789012:function:my-function" + "Resource": "arn:aws:lambda:us-east-2:123456789012:function:"my-function"