Skip to content

Commit 0bb4f8b

Browse files
authored
Fix to VPC endpoint policy example
Fixed the VPC endpoint policy example to show a correct version of how Principal should be used per the docs[1]. The previous example would return an error if you attempted to use a Principal in that manner. [1] https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-accounts
1 parent 5c51c13 commit 0bb4f8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc_source/configuration-vpc-endpoints.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ The following is an example of an endpoint policy for Lambda\. When attached to
8080
{
8181
"Statement":[
8282
{
83-
"Principal": "arn:aws:iam::123412341234:user/MyUser",
83+
"Principal": {
84+
"AWS": "arn:aws:iam::123412341234:user/MyUser",
85+
}
8486
"Effect":"Allow",
8587
"Action":[
8688
"lambda:InvokeFunction"
@@ -91,4 +93,4 @@ The following is an example of an endpoint policy for Lambda\. When attached to
9193
}
9294
]
9395
}
94-
```
96+
```

0 commit comments

Comments
 (0)