-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.yml
31 lines (29 loc) · 918 Bytes
/
all.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
AWSTemplateFormatVersion: "2010-09-09"
Description: Macros Template - All Accounts - Multi-region
Conditions:
NorthernVirginiaRegion: !Equals [!Ref "AWS::Region", "us-east-1"]
Resources:
Route53LogPolicy:
Type: "AWS::Logs::ResourcePolicy"
Condition: NorthernVirginiaRegion
Properties:
PolicyName: AWSServiceRoleForRoute53
PolicyDocument: !Sub |-
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Route53LogsToCloudWatchLogs",
"Effect": "Allow",
"Principal": {
"Service": "route53.${AWS::URLSuffix}"
},
"Action": [
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/route53/*"
}
]
}