Reputation: 781
I'm trying to use Resource Policy IP whitelisting to protect API Gateway. I have following questions and am not able to find public doc for these:
Thanks
Upvotes: 0
Views: 1988
Reputation: 8583
Can I make resource policy only effect to a specific stage's API gateway? If yes, how? yes, example from aws docs.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::account-id-2:user/Alice",
"account-id-2"
]
},
"Action": "execute-api:Invoke",
"Resource": [
"arn:aws:execute-api:region:account-id-1:api-id/stage/*"
]
}
]
}
How much time does propagation need after I make a change on the policy?
Can Resource Policy be used on API with protocol WebSocket and endpoint type Regional? (Looks like not, I don't see option of it)
Does Resource Policy have version control? (looks like it does not)
Upvotes: 1