2 回答
- 最新
- 投票最多
- 评论最多
0
I assume you have your Connection authorized, if not, then you should fix the token acquisition first
If you have WAF Rule configured, this gets your requests blocked. If so you would need to adjust them to allow the access.
已回答 2 年前
0
Hey sorry if you've looked elsewhere. But I believe the answer is that you need a policy attached to your Rule that allows it to invoke your Destination.
Your role should have a policy that has a stanza like this:
{
"Effect": "Allow",
"Action": [
"events:InvokeApiDestination"
],
"Resource": [
"arn:of:your:destination"
]
}
I got the answer from this cloudformation/serverless example.
Hope it helps.
已回答 2 年前
相关内容
- AWS 官方已更新 9 个月前
- AWS 官方已更新 8 个月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 7 个月前
By "Connection Authorized", do you mean the endpoint requires authentication? If so, then yes, my live endpoint requires authentication and I have the right token set up in the Connection. I also don't have any WAF rules defined.
For testing, I have set up an ngrok instance that proxies requests to a local server on my machine. It does not require any authorization, and I am able to hit it from curl and from the browser. EventBridge fails to invoke it with the same NO_PERMISSIONS error.