-
Notifications
You must be signed in to change notification settings - Fork 0
/
AWSCloudFormationTemplate.json
132 lines (131 loc) · 4.6 KB
/
AWSCloudFormationTemplate.json
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {
"AWS::CloudFormation::Designer": {
}
},
"Resources": {
"IAMROLE": {
"Type": "AWS::IAM::Role",
"Properties": {
"RoleName" : "asserts-aws-exporter-role",
"AssumeRolePolicyDocument": {
"Statement": [{
"Effect": "Allow",
"Principal": {
"Service": ["ec2.amazonaws.com"]
},
"Action": ["sts:AssumeRole"]
}]
},
"Path": "/"
}
},
"AssertsAWSExporterInstanceProfile": {
"Type": "AWS::IAM::InstanceProfile",
"Properties": {
"Path": "/",
"InstanceProfileName" : "asserts-aws-exporter-role",
"Roles": [{ "Ref": "IAMROLE" }]
}
},
"IAMPOLICY": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyName": "asserts-aws-exporter-policy",
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:GetObjectVersionTagging",
"s3:GetStorageLensConfigurationTagging",
"ecs:DescribeTaskDefinition",
"s3:GetObjectAcl",
"s3:GetBucketObjectLockConfiguration",
"lambda:ListProvisionedConcurrencyConfigs",
"s3:GetIntelligentTieringConfiguration",
"lambda:GetProvisionedConcurrencyConfig",
"s3:GetObjectVersionAcl",
"logs:FilterLogEvents",
"ecs:ListTaskDefinitions",
"s3:GetBucketPolicyStatus",
"s3:GetObjectRetention",
"s3:GetBucketWebsite",
"lambda:ListFunctions",
"s3:GetJobTagging",
"s3:GetMultiRegionAccessPoint",
"lambda:ListAliases",
"s3:GetObjectLegalHold",
"s3:GetBucketNotification",
"s3:DescribeMultiRegionAccessPointOperation",
"s3:GetReplicationConfiguration",
"s3:GetObject",
"lambda:ListFunctionEventInvokeConfigs",
"s3:DescribeJob",
"lambda:GetFunctionConcurrency",
"lambda:ListEventSourceMappings",
"s3:GetAnalyticsConfiguration",
"s3:GetObjectVersionForReplication",
"ecs:ListContainerInstances",
"s3:GetAccessPointForObjectLambda",
"s3:GetStorageLensDashboard",
"s3:GetLifecycleConfiguration",
"s3:GetAccessPoint",
"tag:GetResources",
"s3:GetInventoryConfiguration",
"s3:GetBucketTagging",
"lambda:ListVersionsByFunction",
"cloudwatch:GetMetricData",
"s3:GetAccessPointPolicyForObjectLambda",
"s3:GetBucketLogging",
"s3:ListBucket",
"s3:GetAccelerateConfiguration",
"lambda:GetAccountSettings",
"s3:GetBucketPolicy",
"cloudwatch:ListMetrics",
"ecs:ListServices",
"s3:GetEncryptionConfiguration",
"s3:GetObjectVersionTorrent",
"s3:GetBucketRequestPayment",
"ecs:ListTasks",
"s3:GetAccessPointPolicyStatus",
"s3:GetObjectTagging",
"s3:GetMetricsConfiguration",
"s3:GetBucketOwnershipControls",
"ecs:DescribeServices",
"ecs:DescribeContainerInstances",
"ecs:DescribeTasks",
"ecs:ListClusters",
"s3:GetBucketPublicAccessBlock",
"s3:GetMultiRegionAccessPointPolicyStatus",
"s3:GetMultiRegionAccessPointPolicy",
"s3:GetAccessPointPolicyStatusForObjectLambda",
"s3:GetBucketVersioning",
"s3:GetBucketAcl",
"s3:GetAccessPointConfigurationForObjectLambda",
"ecs:ListAccountSettings",
"s3:GetObjectTorrent",
"s3:GetStorageLensConfiguration",
"s3:GetAccountPublicAccessBlock",
"ecs:ListTaskDefinitionFamilies",
"s3:GetBucketCORS",
"s3:GetBucketLocation",
"s3:GetAccessPointPolicy",
"s3:GetObjectVersion"
],
"Resource": "*"
}
]
},
"Roles": [
{
"Ref": "IAMROLE"
}
]
}
}
}
}