Skip to content

Commit

Permalink
Limit KMS by region
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Sep 4, 2020
1 parent 5cd70e2 commit 839c687
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions aws/policy/security-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Statement:
Resource:
- 'arn:aws:iam::{{ aws_account_id }}:role/ansible_lambda_role'

- Sid: AllowRegionUnrestrictedResourceActionsWhichIncurNoFees
- Sid: AllowRegionalUnrestrictedResourceActionsWhichIncurNoFees
Effect: Allow
Action:
- iam:ListAccountAliases
Expand Down Expand Up @@ -112,13 +112,17 @@ Statement:
aws:RequestedRegion:
- '{{ aws_region }}'

- Sid: AllowGlobalUnrestrictedResourceActionsWhichIncurFees
- Sid: AllowRegionalUnrestrictedResourceActionsWhichIncurFees
Effect: Allow
Action:
- kms:CancelKeyDeletion
- kms:CreateKey
- kms:GenerateRandom
Resource: "*"
Condition:
StringEquals:
aws:RequestedRegion:
- '{{ aws_region }}'

- Sid: AllowGlobalUnrestrictedResourceActionsWhichIncurNoFees
Effect: Allow
Expand Down

0 comments on commit 839c687

Please sign in to comment.