aws-genai-llm-chatbot icon indicating copy to clipboard operation
aws-genai-llm-chatbot copied to clipboard

Upgrade to latest cdk v2.190.0

Open sleepwithcoffee opened this issue 7 months ago • 0 comments

The project is using outdated CDK version with several outdated features/syntax:

Cognito user tier https://aws.amazon.com/about-aws/whats-new/2024/11/new-feature-tiers-essentials-plus-amazon-cognito/

[WARNING] aws-cdk-lib.aws_cognito.UserPoolProps#advancedSecurityMode is deprecated.
  Advanced Security Mode is deprecated due to user pool feature plans. Use StandardThreatProtectionMode and CustomThreatProtectionMode to set Thread Protection level.
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_cognito.AdvancedSecurityMode is deprecated.
  Advanced Security Mode is deprecated due to user pool feature plans. Use StandardThreatProtectionMode and CustomThreatProtectionMode to set Thread Protection level.
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_cognito.AdvancedSecurityMode#ENFORCED is deprecated.
  
  This API will be removed in the next major release.
/workspace/aws-genai-llm-chatbot/lib/authentication/index.ts:22
    const userPool = new cognito.UserPool(this, "UserPool", {
                     ^
ValidationError: you cannot enable Advanced Security when feature plan is not Plus.
    at path [testGenAIChatBotStack/Authentication/UserPool] in aws-cdk-lib.aws_cognito.UserPool

    at new Authentication (/workspace/aws-genai-llm-chatbot/lib/authentication/index.ts:22:22)
    at new AwsGenAILLMChatbotStack (/workspace/aws-genai-llm-chatbot/lib/aws-genai-llm-chatbot-stack.ts:37:28)
    at Object.<anonymous> (/workspace/aws-genai-llm-chatbot/bin/aws-genai-llm-chatbot.ts:13:1)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)
    at Module.m._compile (/workspace/aws-genai-llm-chatbot/node_modules/ts-node/src/index.ts:1618:23)
    at node:internal/modules/cjs/loader:1699:10
    at Object.require.extensions.<computed> [as .ts] (/workspace/aws-genai-llm-chatbot/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:1313:32)
    at Function._load (node:internal/modules/cjs/loader:1123:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)

DynamoDB point-in-time-recovery syntax change:

[WARNING] aws-cdk-lib.aws_dynamodb.TableOptions#pointInTimeRecovery is deprecated.
  use `pointInTimeRecoverySpecification` instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_dynamodb.TableOptions#pointInTimeRecovery is deprecated.
  use `pointInTimeRecoverySpecification` instead
  This API will be removed in the next major release.

sleepwithcoffee avatar Apr 22 '25 01:04 sleepwithcoffee