@@ -101,19 +101,20 @@ export class CustomIdentityComponentStack extends Stack {
101
101
role : generate_keys_function_role ,
102
102
code : lambda . Code . fromAsset ( "lambda" , {
103
103
bundling : {
104
- image : lambda . Runtime . PYTHON_3_10 . bundlingImage ,
104
+ image : lambda . Runtime . PYTHON_3_11 . bundlingImage ,
105
105
command : [
106
106
'bash' , '-c' ,
107
- 'pip install --platform manylinux2010_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
107
+ 'pip install --platform manylinux2014_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
108
108
] ,
109
109
} , } ) ,
110
- runtime : lambda . Runtime . PYTHON_3_10 ,
110
+ runtime : lambda . Runtime . PYTHON_3_11 ,
111
111
handler : 'generate_keys.lambda_handler' ,
112
112
timeout : Duration . seconds ( 300 ) ,
113
113
memorySize : 2048 ,
114
114
environment : {
115
115
"ISSUER_BUCKET" : issuer_bucket . bucketName ,
116
116
"ISSUER_ENDPOINT" : "https://" + distribution . domainName ,
117
+ "POWERTOOLS_SERVICE_NAME" : "CustomIdentityComponentApi" ,
117
118
"SECRET_KEY_ID" : secret . secretName ,
118
119
}
119
120
} ) ;
@@ -254,19 +255,20 @@ export class CustomIdentityComponentStack extends Stack {
254
255
role : login_as_guest_function_role ,
255
256
code : lambda . Code . fromAsset ( "lambda" , {
256
257
bundling : {
257
- image : lambda . Runtime . PYTHON_3_10 . bundlingImage ,
258
+ image : lambda . Runtime . PYTHON_3_11 . bundlingImage ,
258
259
command : [
259
260
'bash' , '-c' ,
260
- 'pip install --platform manylinux2010_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
261
+ 'pip install --platform manylinux2014_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
261
262
] ,
262
263
} , } ) ,
263
- runtime : lambda . Runtime . PYTHON_3_10 ,
264
+ runtime : lambda . Runtime . PYTHON_3_11 ,
264
265
handler : 'login_as_guest.lambda_handler' ,
265
266
timeout : Duration . seconds ( 15 ) ,
266
267
tracing : lambda . Tracing . ACTIVE ,
267
268
memorySize : 2048 ,
268
269
environment : {
269
270
"ISSUER_URL" : "https://" + distribution . domainName ,
271
+ "POWERTOOLS_SERVICE_NAME" : "CustomIdentityComponentApi" ,
270
272
"SECRET_KEY_ID" : secret . secretName ,
271
273
"USER_TABLE" : user_table . tableName
272
274
}
@@ -300,19 +302,20 @@ export class CustomIdentityComponentStack extends Stack {
300
302
role : refresh_access_token_function_role ,
301
303
code : lambda . Code . fromAsset ( "lambda" , {
302
304
bundling : {
303
- image : lambda . Runtime . PYTHON_3_10 . bundlingImage ,
305
+ image : lambda . Runtime . PYTHON_3_11 . bundlingImage ,
304
306
command : [
305
307
'bash' , '-c' ,
306
- 'pip install --platform manylinux2010_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
308
+ 'pip install --platform manylinux2014_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
307
309
] ,
308
310
} , } ) ,
309
- runtime : lambda . Runtime . PYTHON_3_10 ,
311
+ runtime : lambda . Runtime . PYTHON_3_11 ,
310
312
handler : 'refresh_access_token.lambda_handler' ,
311
313
timeout : Duration . seconds ( 15 ) ,
312
314
tracing : lambda . Tracing . ACTIVE ,
313
315
memorySize : 2048 ,
314
316
environment : {
315
317
"ISSUER_URL" : "https://" + distribution . domainName ,
318
+ "POWERTOOLS_SERVICE_NAME" : "CustomIdentityComponentApi" ,
316
319
"SECRET_KEY_ID" : secret . secretName ,
317
320
"USER_TABLE" : user_table . tableName
318
321
}
@@ -380,19 +383,20 @@ export class CustomIdentityComponentStack extends Stack {
380
383
role : loginWithAppleIdFunctionRole ,
381
384
code : lambda . Code . fromAsset ( "lambda" , {
382
385
bundling : {
383
- image : lambda . Runtime . PYTHON_3_10 . bundlingImage ,
386
+ image : lambda . Runtime . PYTHON_3_11 . bundlingImage ,
384
387
command : [
385
388
'bash' , '-c' ,
386
- 'pip install --platform manylinux2010_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
389
+ 'pip install --platform manylinux2014_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
387
390
] ,
388
391
} , } ) ,
389
- runtime : lambda . Runtime . PYTHON_3_10 ,
392
+ runtime : lambda . Runtime . PYTHON_3_11 ,
390
393
handler : 'login_with_apple_id.lambda_handler' ,
391
394
timeout : Duration . seconds ( 15 ) ,
392
395
tracing : lambda . Tracing . ACTIVE ,
393
396
memorySize : 2048 ,
394
397
environment : {
395
398
"ISSUER_URL" : "https://" + distribution . domainName ,
399
+ "POWERTOOLS_SERVICE_NAME" : "CustomIdentityComponentApi" ,
396
400
"SECRET_KEY_ID" : secret . secretName ,
397
401
"USER_TABLE" : user_table . tableName ,
398
402
"APPLE_APP_ID" : appId ,
@@ -440,19 +444,20 @@ export class CustomIdentityComponentStack extends Stack {
440
444
role : loginWithSteamIdFunctionRole ,
441
445
code : lambda . Code . fromAsset ( "lambda" , {
442
446
bundling : {
443
- image : lambda . Runtime . PYTHON_3_10 . bundlingImage ,
447
+ image : lambda . Runtime . PYTHON_3_11 . bundlingImage ,
444
448
command : [
445
449
'bash' , '-c' ,
446
- 'pip install --platform manylinux2010_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
450
+ 'pip install --platform manylinux2014_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
447
451
] ,
448
452
} , } ) ,
449
- runtime : lambda . Runtime . PYTHON_3_10 ,
453
+ runtime : lambda . Runtime . PYTHON_3_11 ,
450
454
handler : 'login_with_steam.lambda_handler' ,
451
455
timeout : Duration . seconds ( 15 ) ,
452
456
tracing : lambda . Tracing . ACTIVE ,
453
457
memorySize : 2048 ,
454
458
environment : {
455
459
"ISSUER_URL" : "https://" + distribution . domainName ,
460
+ "POWERTOOLS_SERVICE_NAME" : "CustomIdentityComponentApi" ,
456
461
"SECRET_KEY_ID" : privateKeySecret . secretName ,
457
462
"USER_TABLE" : user_table . tableName ,
458
463
"STEAM_APP_ID" : appId ,
@@ -510,19 +515,20 @@ export class CustomIdentityComponentStack extends Stack {
510
515
role : loginWithGooglePlayFunctionRole ,
511
516
code : lambda . Code . fromAsset ( "lambda" , {
512
517
bundling : {
513
- image : lambda . Runtime . PYTHON_3_10 . bundlingImage ,
518
+ image : lambda . Runtime . PYTHON_3_11 . bundlingImage ,
514
519
command : [
515
520
'bash' , '-c' ,
516
- 'pip install --platform manylinux2010_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
521
+ 'pip install --platform manylinux2014_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
517
522
] ,
518
523
} , } ) ,
519
- runtime : lambda . Runtime . PYTHON_3_10 ,
524
+ runtime : lambda . Runtime . PYTHON_3_11 ,
520
525
handler : 'login_with_google_play.lambda_handler' ,
521
526
timeout : Duration . seconds ( 15 ) ,
522
527
tracing : lambda . Tracing . ACTIVE ,
523
528
memorySize : 2048 ,
524
529
environment : {
525
530
"ISSUER_URL" : "https://" + distribution . domainName ,
531
+ "POWERTOOLS_SERVICE_NAME" : "CustomIdentityComponentApi" ,
526
532
"SECRET_KEY_ID" : privateKeySecret . secretName ,
527
533
"USER_TABLE" : user_table . tableName ,
528
534
"GOOGLE_PLAY_CLIENT_ID" : googlePlayClientId ,
@@ -579,19 +585,20 @@ export class CustomIdentityComponentStack extends Stack {
579
585
role : loginWithFacebookFunctionRole ,
580
586
code : lambda . Code . fromAsset ( "lambda" , {
581
587
bundling : {
582
- image : lambda . Runtime . PYTHON_3_10 . bundlingImage ,
588
+ image : lambda . Runtime . PYTHON_3_11 . bundlingImage ,
583
589
command : [
584
590
'bash' , '-c' ,
585
- 'pip install --platform manylinux2010_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
591
+ 'pip install --platform manylinux2014_x86_64 --only-binary=:all: -r requirements.txt -t /asset-output && cp -ru . /asset-output'
586
592
] ,
587
593
} , } ) ,
588
- runtime : lambda . Runtime . PYTHON_3_10 ,
594
+ runtime : lambda . Runtime . PYTHON_3_11 ,
589
595
handler : 'login_with_facebook.lambda_handler' ,
590
596
timeout : Duration . seconds ( 15 ) ,
591
597
tracing : lambda . Tracing . ACTIVE ,
592
598
memorySize : 2048 ,
593
599
environment : {
594
600
"ISSUER_URL" : "https://" + distribution . domainName ,
601
+ "POWERTOOLS_SERVICE_NAME" : "CustomIdentityComponentApi" ,
595
602
"SECRET_KEY_ID" : secret . secretName ,
596
603
"USER_TABLE" : user_table . tableName ,
597
604
"FACEBOOK_APP_ID" : appId ,
0 commit comments