File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import * as cdk from 'aws-cdk-lib';
5
5
import { CfnRule , EventBus , Rule } from 'aws-cdk-lib/aws-events' ;
6
6
import { LogGroup , RetentionDays } from 'aws-cdk-lib/aws-logs' ;
7
7
import { AwsSolutionsChecks } from 'cdk-nag' ;
8
- import { ControlPlane } from '.' ;
8
+ import { CognitoAuth , ControlPlane } from '.' ;
9
9
import { DestroyPolicySetter } from '../cdk-aspect/destroy-policy-setter' ;
10
10
11
11
export interface IntegStackProps extends cdk . StackProps {
@@ -16,7 +16,12 @@ export class IntegStack extends cdk.Stack {
16
16
constructor ( scope : cdk . App , id : string , props : IntegStackProps ) {
17
17
super ( scope , id , props ) ;
18
18
19
+ const cognitoAuth = new CognitoAuth ( this , 'CognitoAuth' , {
20
+ setAPIGWScopes : false , // only for testing purposes!
21
+ } ) ;
22
+
19
23
const controlPlane = new ControlPlane ( this , 'ControlPlane' , {
24
+ auth : cognitoAuth ,
20
25
systemAdminEmail : props . systemAdminEmail ,
21
26
} ) ;
22
27
You can’t perform that action at this time.
0 commit comments