Skip to content

Commit 2314a40

Browse files
committed
relax cache permission restrictions
1 parent cbd03da commit 2314a40

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

cloudformation/iam.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ Resources:
7676
- Sid: DynamoDBCacheAccess
7777
Effect: Allow
7878
Action:
79-
- dynamodb:BatchGetItem
80-
- dynamodb:BatchWriteItem
8179
- dynamodb:ConditionCheckItem
8280
- dynamodb:PutItem
8381
- dynamodb:DescribeTable
@@ -87,14 +85,6 @@ Resources:
8785
- dynamodb:UpdateItem
8886
Resource:
8987
- Fn::Sub: arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-cache
90-
Condition:
91-
ForAllValues:StringLike:
92-
dynamodb:LeadingKeys:
93-
- etag-events-* # add any keys that must be accessible
94-
dynamodb:Attributes:
95-
- primaryKey
96-
- expireAt
97-
- "*"
9888

9989
- Sid: DynamoDBRateLimitTableAccess
10090
Effect: Allow
@@ -187,28 +177,6 @@ Resources:
187177
Effect: Allow
188178
Resource:
189179
- Fn::Sub: arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:infra-core-api-entra*
190-
- Action:
191-
- dynamodb:BatchGetItem
192-
- dynamodb:GetItem
193-
- dynamodb:Query
194-
- dynamodb:DescribeTable
195-
- dynamodb:BatchWriteItem
196-
- dynamodb:ConditionCheckItem
197-
- dynamodb:PutItem
198-
- dynamodb:DeleteItem
199-
- dynamodb:UpdateItem
200-
Effect: Allow
201-
Resource:
202-
- Fn::Sub: arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/infra-core-api-cache
203-
Condition:
204-
ForAllValues:StringEquals:
205-
dynamodb:LeadingKeys:
206-
- entra_id_access_token # add any keys that must be accessible
207-
ForAllValues:StringLike:
208-
dynamodb:Attributes:
209-
- primaryKey
210-
- expireAt
211-
- "*"
212180

213181
# SQS Lambda IAM Role
214182
SqsLambdaIAMRole:

0 commit comments

Comments
 (0)