I am trying to refresh external table using SNS in snowflake. I have followed this tutorial to refresh.
https://www.youtube.com/watch?v=PCNa3d6rMO0
it is working as expected.but when I use same topic to trigger another table in another S3 bucket. Can't I use the same topic and create event notifications in Bucket2?
Here is my Access Policy :
{
"Version": "2008-10-17",
"Id": "__default_policy_ID",
"Statement": [
{
"Sid": "__default_statement_ID",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": [
"SNS:Publish",
"SNS:RemovePermission",
"SNS:SetTopicAttributes",
"SNS:DeleteTopic",
"SNS:ListSubscriptionsByTopic",
"SNS:GetTopicAttributes",
"SNS:AddPermission",
"SNS:Subscribe"
],
"Resource": "arn:aws:sns:us-west-1:58:snowflake-dev-SNS",
"Condition": {
"StringEquals": {
"AWS:SourceOwner": "55"
}
}
},
{
"Sid": "__console_pub_0",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "SNS:Publish",
"Resource": "arn:aws:sns:us-west-1:55:snowflake-dev-SNS"
},
{
"Sid": "1",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::2:user/b6m8-s-p2s9"
},
"Action": "sns:Subscribe",
"Resource": "arn:aws:sns:us-west-1:55:snowflake-dev-SNS"
}
]
}
Thanks, Xi