1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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?
respondido hace un año
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- ¿Cómo puedo solucionar los problemas con el ID de remitente cuando envío mensajes SMS en Amazon SNS?OFICIAL DE AWSActualizada hace 5 meses
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.