We have Mobile PlatformApplication arns in AWS account-1, and we can publish PNs to endpoint arns with our java-service in the same account.
But when trying to publish PNs with our java-service in different AWS accounts, we get com.amazonaws.services.sns.model.AuthorizationErrorException
.
For Example:
My PlatformApplication arn => arn:aws:sns:<region>:<account-id>:app/GCM/my-mobile-app-name
Once user register his device against this PlatfromApplication arn, a device endpoint will be created as => arn:aws:sns:<region>:<account-id>:endpoint/GCM/my-mobile-app-name/<uuid>
So, while publishing message to above endpoint arn from different AWS account resulting in AuthorizationErrorException
There seems no option to provide a resource-based policy for these SNS PlatformApplications (SNS PlatformApplications are not regular SNS topics). How can we solve this?
Thanks in Advance!
These are SNS Mobile PlatformApplication arn, and these doesn't has a resource-based policy as far as I can see in AWS Console! I updated my question with more details.