2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Thanks for the response. I tried in the vpc under private and public subnet but still same issue. I tried outside vpc but the same. The original url means the url i got in the Visual Studio after deployment is working every where. Thanks
답변함 일 년 전
0
When using NONE auth type, does the Lambda function have the resource-based policy to make the function public? Should look like this:
{
"Version": "2012-10-17",
"Statement": [
{
"StatementId": "FunctionURLAllowPublicAccess",
"Effect": "Allow",
"Principal": "*",
"Action": "lambda:InvokeFunctionUrl",
"Resource": "arn:aws:lambda:us-east-1:12345678910:function:<Function Name>",
"Condition": {
"StringEquals": {
"lambda:FunctionUrlAuthType": "NONE"
}
}
}
]
}
Here is text from the documentation on this: If you choose the NONE auth type, Lambda doesn't use IAM to authenticate requests to your function URL. However, users must still have lambda:InvokeFunctionUrl permissions in order to successfully invoke your function URL.
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
Can you share a code snippet? Is your lambda in vpc?