diff --git a/typescript/cognito-api-lambda/index.ts b/typescript/cognito-api-lambda/index.ts index b8e6b1de4..414c20bac 100644 --- a/typescript/cognito-api-lambda/index.ts +++ b/typescript/cognito-api-lambda/index.ts @@ -1,7 +1,7 @@ import { LambdaRestApi, CfnAuthorizer, LambdaIntegration, AuthorizationType } from '@aws-cdk/aws-apigateway'; import { AssetCode, Function, Runtime } from '@aws-cdk/aws-lambda'; import { App, Stack } from '@aws-cdk/core'; -import { UserPool, SignInType } from '@aws-cdk/aws-cognito' +import { UserPool } from '@aws-cdk/aws-cognito' export class CognitoProtectedApi extends Stack { constructor(app: App, id: string) { @@ -23,7 +23,9 @@ export class CognitoProtectedApi extends Stack { // Cognito User Pool with Email Sign-in Type. const userPool = new UserPool(this, 'userPool', { - signInType: SignInType.EMAIL + signInAliases: { + email: true + } }) // Authorizer for the Hello World API that uses the diff --git a/typescript/eks/cluster/index.ts b/typescript/eks/cluster/index.ts index 41db96019..9c3601f58 100644 --- a/typescript/eks/cluster/index.ts +++ b/typescript/eks/cluster/index.ts @@ -29,7 +29,7 @@ class EKSCluster extends cdk.Stack { instanceType: new ec2.InstanceType('t3.medium'), machineImage: new eks.EksOptimizedImage({ kubernetesVersion: '1.14', - nodeType: eks.NodeType.STANDARD // wihtout this, incorrect SSM parameter for AMI is resolved + nodeType: eks.NodeType.STANDARD // without this, incorrect SSM parameter for AMI is resolved }), updateType: autoscaling.UpdateType.ROLLING_UPDATE }); diff --git a/typescript/eks/cluster/tsconfig.json b/typescript/eks/cluster/tsconfig.json index 544b446da..1a0b2eace 100644 --- a/typescript/eks/cluster/tsconfig.json +++ b/typescript/eks/cluster/tsconfig.json @@ -16,5 +16,9 @@ "inlineSources": true, "experimentalDecorators": true, "strictPropertyInitialization":false - } -} \ No newline at end of file + }, + "include": [ "**/*.ts" ], + "exclude": [ + "**/*.d.ts" + ] +}