diff --git a/typescript/elasticbeanstalk/elasticbeanstalk-environment/index.ts b/typescript/elasticbeanstalk/elasticbeanstalk-environment/index.ts index 9c2555edd..53cedfb6d 100644 --- a/typescript/elasticbeanstalk/elasticbeanstalk-environment/index.ts +++ b/typescript/elasticbeanstalk/elasticbeanstalk-environment/index.ts @@ -10,7 +10,7 @@ export class CdkStack extends cdk.Stack { //objects for access parameters const node = this.node; - const platform = node.getContext("platform"); + const platform = node.tryGetContext("platform"); const app = new elasticbeanstalk.CfnApplication(this, 'Application', {