Enable Cognito Advanced Security Features (ASF)
This was last updated with the following packages:
System: OS: macOS 14.7 CPU: (10) arm64 Apple M1 Pro Memory: 161.73 MB / 32.00 GB Shell: /opt/homebrew/bin/fishBinaries: Node: 22.8.0 - ~/.local/state/fnm_multishells/7548_1730243214662/bin/node Yarn: undefined - undefined npm: 10.8.2 - ~/.local/state/fnm_multishells/7548_1730243214662/bin/npm pnpm: 9.12.2 - ~/.local/state/fnm_multishells/7548_1730243214662/bin/pnpmNPM Packages: @aws-amplify/auth-construct: Not Found @aws-amplify/backend: 1.5.2 @aws-amplify/backend-auth: Not Found @aws-amplify/backend-cli: 1.3.0 @aws-amplify/backend-data: Not Found @aws-amplify/backend-deployer: Not Found @aws-amplify/backend-function: Not Found @aws-amplify/backend-output-schemas: Not Found @aws-amplify/backend-output-storage: Not Found @aws-amplify/backend-secret: Not Found @aws-amplify/backend-storage: Not Found @aws-amplify/cli-core: Not Found @aws-amplify/client-config: Not Found @aws-amplify/deployed-backend-client: Not Found @aws-amplify/form-generator: Not Found @aws-amplify/model-generator: Not Found @aws-amplify/platform-core: Not Found @aws-amplify/plugin-types: Not Found @aws-amplify/sandbox: Not Found @aws-amplify/schema-generator: Not Found aws-amplify: 6.7.0 aws-cdk: 2.164.1 aws-cdk-lib: 2.164.1 typescript: 5.6.3AWS environment variables: AWS_PROFILE = josef AWS_REGION = us-east-1 AWS_STS_REGIONAL_ENDPOINTS = regional AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1 AWS_SDK_LOAD_CONFIG = 1No CDK environment variables
Files
import { defineBackend } from "@aws-amplify/backend"import { auth } from "./auth/resource"
const backend = defineBackend({ auth,})
const { cfnUserPool } = backend.auth.resources.cfnResources
// enable ASFcfnUserPool.userPoolAddOns = { advancedSecurityMode: "AUDIT",}