-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcommon-iam.yml
34 lines (34 loc) · 1.3 KB
/
common-iam.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
32
33
34
Resources:
CloudFormationRole:
Properties:
Policies:
- PolicyName: deploy-elasticache
PolicyDocument:
Version: '2012-10-17'
Statement:
- Action:
- elasticache:AddTagsToResource
- elasticache:AuthorizeCacheSecurityGroupIngress
- elasticache:CreateCacheCluster
- elasticache:CreateCacheSubnetGroup
- elasticache:DeleteCacheCluster
- elasticache:DeleteCacheSubnetGroup
- elasticache:DescribeCacheClusters
- elasticache:DescribeCacheSecurityGroups
- elasticache:DescribeCacheSubnetGroups
- elasticache:DescribeEvents
- elasticache:ListTagsForResource
- elasticache:ModifyCacheCluster
- elasticache:ModifyCacheSubnetGroup
- elasticache:RemoveTagsFromResource
- elasticache:RevokeCacheSecurityGroupIngress
Resource: '*'
Effect: Allow
- Action:
- iam:CreateServiceLinkedRole
- iam:PutRolePolicy
Resource: 'arn:aws:iam::*:role/aws-service-role/elasticache.amazonaws.com/AWSServiceRoleForElastiCache*'
Condition:
StringLike:
iam:AWSServiceName: elasticache.amazonaws.com
Effect: Allow