1 個回答
- 最新
- 最多得票
- 最多評論
1
Since you are running the PHP app on an EC2 instance, you can attach an instance profile to the instance to make the SNS or Pinpoint API calls with SDK with minimal configurations. If you need an alternative way, an easy workaround is to use a REST API in API Gateway. You can have the API method to make an SNS/Pinpoint API call. So, the end users in this case PHP app on EC2 can hit the API endpoint to indirectly send messages through SNS/Pinpoint. However, it is still recommended that you secure the API.
- How do I use API Gateway as a proxy for another AWS service?
- Security best practices in Amazon API Gateway
What is the reason behind not wanting to use AWS SDK?
已回答 1 年前
相關內容
- 已提問 6 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 9 個月前
Pardon me for the late response. The API workaround seems acceptable for us. We prefer not to use the AWS SDK for PHP because we could not find the way to build the SDK with only the SNS components and its dependencies. Now we would need the entire SDK loaded on the server which creates a lot of code clutter and unnecessary tools we do not need nor want.
Thank you for your time to answer my question.