Skip to content

Commit

Permalink
fix: Allow appropriate IDE KMS permissions for Terraform cluster crea…
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson authored Sep 13, 2024
1 parent 6cbcc32 commit be6a622
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lab/iam/policies/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,14 @@ Statement:
Resource: ["*"]
Condition:
StringLike:
kms:RequestAlias: "alias/${Env}*"
kms:RequestAlias: ["alias/${Env}*", "alias/eks/${Env}*"]
- Effect: Allow
Action:
- kms:CreateAlias
- kms:DeleteAlias
Resource:
- !Sub arn:aws:kms:${AWS::Region}:${AWS::AccountId}:alias/${Env}*
- !Sub arn:aws:kms:${AWS::Region}:${AWS::AccountId}:alias/eks/${Env}*
- !Sub arn:aws:kms:${AWS::Region}:${AWS::AccountId}:key/*
- Effect: Allow
Action:
Expand Down

0 comments on commit be6a622

Please sign in to comment.