Skip to content

Commit

Permalink
create a more compact list of permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-rosset committed Jan 27, 2022
1 parent c97ca53 commit 9a43de4
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions aws/policy/data-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Statement:
- glue:GetConnections
- rds:DescribeDB*
- rds:List*
- es:Describe*
- es:Get*
- es:List*
Resource: "*"
- Sid: AllowGlobalResourceRestrictedActionsWhichIncurNoFees
Effect: Allow
Expand Down Expand Up @@ -124,13 +127,20 @@ Statement:
- rds:CreateDBCluster
- elasticache:CreateCacheCluster
- redshift:CreateCluster
- es:AddTags
- es:CreateDomain
- es:DeleteDomain
- es:RemoveTags
- es:UpdateDomainConfig
- es:UpgradeDomain
Resource:
- 'arn:aws:rds:{{ aws_region }}:{{ aws_account_id }}:cluster:*'
- 'arn:aws:elasticache:{{ aws_region }}:{{ aws_account_id }}:cluster:*'
- 'arn:aws:elasticache:{{ aws_region }}:{{ aws_account_id }}:subnetgroup:*'
- 'arn:aws:elasticache:{{ aws_region }}:{{ aws_account_id }}:parametergroup:*'
- 'arn:aws:elasticache:{{ aws_region }}:{{ aws_account_id }}:securitygroup:*'
- 'arn:aws:redshift:{{ aws_region }}:{{ aws_account_id }}:cluster:*'
- 'arn:aws:es:{{ aws_region }}:{{ aws_account_id }}:domain:*'
# This allows AWS Services to automatically create their Default Service Linked Roles
# These have fixed policies and can only be assumed by the service itself.
- Sid: AllowServiceLinkedRoleCreation
Expand Down Expand Up @@ -183,16 +193,3 @@ Statement:
- kafka:UntagResource
- kafka:ListClusterOperations
Resource: "*"
- Sid: OpenSearchCluster
Effect: Allow
Action:
- es:AddTags
- es:CreateDomain
- es:Describe*
- es:Get*
- es:List*
- es:DeleteDomain
- es:RemoveTags
- es:UpdateDomainConfig
- es:UpgradeDomain
Resource: "*"

0 comments on commit 9a43de4

Please sign in to comment.