Skip to content

Commit bb5a939

Browse files
committed
fix: template
1 parent b1451be commit bb5a939

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

template.yaml.tpl

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -267,25 +267,24 @@ Resources:
267267
Type: AWS::IAM::Role
268268
Properties:
269269
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"
279270
Policies:
280-
- PolicyName: 'opensearch_sns_role_policy'
271+
- PolicyName: "opensearch_sns_role_policy"
281272
PolicyDocument:
282273
Version: "2012-10-17"
283274
Statement:
284-
- Effect: Allow
275+
- Effect: "Allow"
285276
Action:
286-
- sns:Publish
277+
- "sns:Publish"
287278
Resource:<% notifications.filter((n) => n.configType == 'sns').forEach((notification) => { %>
288-
- !GetAtt <%= notification.entity %>.TopicArn<% }); -%>
279+
- !GetAtt <%= notification.entity %>.TopicArn<% }); %>
280+
AssumeRolePolicyDocument:
281+
Version: "2012-10-17"
282+
Statement:
283+
- Action: "sts:AssumeRole"
284+
Effect: "Allow"
285+
Principal:
286+
Service: "es.amazonaws.com"
287+
Sid: ""
289288
<% notifications.filter((n) => n.configType == 'sns').forEach((notification) => { %>
290289
<%= notification.entity %>:
291290
Type: AWS::SNS::Topic

0 commit comments

Comments
 (0)