File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,30 @@ Resources:
262
262
Enabled: true
263
263
LogGroupName: /aws/kinesisfirehose/apm-dlq-stream
264
264
LogStreamName: DestinationDelivery
265
+ # SNS role so that opensearch can publish to topics
266
+ SnsRole:
267
+ Type: AWS::IAM::Role
268
+ Properties:
269
+ RoleName: "opensearch_sns_nress-prod"
270
+ AssumeRolePolicyDocument:
271
+ Version: "2012-10-17"
272
+ Statement:
273
+ Sid: "",
274
+ Effect: "Allow"
275
+ Principal: {
276
+ Service: " es.amazonaws.com"
277
+ } ,
278
+ "Action": "sts:AssumeRole"
279
+ Policies:
280
+ - PolicyName: 'opensearch_sns_role_policy'
281
+ PolicyDocument:
282
+ Version: "2012-10-17"
283
+ Statement:
284
+ - Effect: Allow
285
+ Action:
286
+ - sns:Publish
287
+ Resource:<% notifications.filter((n) => n.configType == 'sns').forEach((notification) => { %>
288
+ - ! GetAtt <% = notification.entity %> .TopicArn<% } ); -%>
265
289
<% notifications.filter((n) => n.configType == 'sns').forEach((notification) => { %>
266
290
<% = notification.entity %> :
267
291
Type: AWS::SNS::Topic
You can’t perform that action at this time.
0 commit comments