File tree Expand file tree Collapse file tree 2 files changed +3
-32
lines changed Expand file tree Collapse file tree 2 files changed +3
-32
lines changed Original file line number Diff line number Diff line change @@ -215,9 +215,9 @@ const iamRoutes: FastifyPluginAsync = async (fastify, _options) => {
215
215
} ) ;
216
216
const groupMembers = listGroupMembers ( entraIdToken , groupId ) ;
217
217
const command = new PutItemCommand ( {
218
- TableName : `${ genericConfig . IAMTablePrefix } - grouproles` ,
218
+ TableName : `${ genericConfig . IAMTablePrefix } - grouproles` ,
219
219
Item : marshall ( {
220
- groupUuid : groupId ,
220
+ id : `GROUP# ${ groupId } ` ,
221
221
roles : request . body . roles ,
222
222
createdAt : timestamp ,
223
223
} ) ,
@@ -235,7 +235,7 @@ const iamRoutes: FastifyPluginAsync = async (fastify, _options) => {
235
235
await fastify . dynamoClient . send ( command ) ;
236
236
await logPromise ;
237
237
fastify . nodeCache . set (
238
- `grouproles - ${ groupId } ` ,
238
+ `grouproles- ${ groupId } ` ,
239
239
request . body . roles ,
240
240
GENERIC_CACHE_SECONDS ,
241
241
) ;
Original file line number Diff line number Diff line change @@ -174,35 +174,6 @@ resource "aws_dynamodb_table" "iam_assignments" {
174
174
}
175
175
}
176
176
177
-
178
- resource "aws_dynamodb_table" "iam_group_roles" {
179
- billing_mode = " PAY_PER_REQUEST"
180
- name = " ${ var . ProjectId } -iam-grouproles"
181
- deletion_protection_enabled = false
182
- hash_key = " groupUuid"
183
- point_in_time_recovery {
184
- enabled = true
185
- }
186
- attribute {
187
- name = " groupUuid"
188
- type = " S"
189
- }
190
- }
191
-
192
- resource "aws_dynamodb_table" "iam_user_roles" {
193
- billing_mode = " PAY_PER_REQUEST"
194
- name = " ${ var . ProjectId } -iam-userroles"
195
- deletion_protection_enabled = false
196
- hash_key = " userEmail"
197
- point_in_time_recovery {
198
- enabled = true
199
- }
200
- attribute {
201
- name = " userEmail"
202
- type = " S"
203
- }
204
- }
205
-
206
177
resource "aws_dynamodb_table" "user_info" {
207
178
billing_mode = " PAY_PER_REQUEST"
208
179
name = " ${ var . ProjectId } -user-info"
You can’t perform that action at this time.
0 commit comments