1 回答
- 最新
- 投票最多
- 评论最多
0
Hi, in a nutshell, yes it is possible... but requires re-architecting to:
curl --> API Gateway --> SNS
Review the following Link: https://www.alexdebrie.com/posts/aws-api-gateway-service-proxy/
Here are the steps outlined in the link above
We created an SNS topic to receive messages and set up a subscription on that topic to forward all messages to a cell phone.
We set up our basic API Gateway resources, including a REST API, a resource (/ingest) and a method (POST) on that resource.
We made an IAM role that could be assumed by API Gateway and gave permission to publish messages to our SNS topic.
We configured an integration to our SNS topic from our REST API’s resource and method. This integration included a request mapping template, a response mapping template, and a method response.
We deployed our REST API to make it live, then sent an HTTP request using curl. We received the message on our cell phone, indicating that it was successfully published to our SNS topic.
Hope this helps.
-randy
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 10 个月前
- AWS 官方已更新 1 年前