I’ve been trying to read a properties file and want it to be dynamic, I’m doing this in aws-cdk. My project layout: Main Project resources config.properties src main/java/com/myorg xxxstage.java The class xxxstage.java has following code: The line where I’m trying to print System.out.println(“inputStream is -> “+inputStream); is showing null, and hence the FileNotFoundException. It worth noting that this is working
Tag: aws-cdk
SelfMutate stage failing with CodePipeline
I’m trying to create a CI/CD using CDK pipeline with the import software.amazon.awscdk.pipelines.CodePipeline in Java. This pipeline creates another stack named xxxJavaxxxStack. The pipeline is able to connect to external github, which, when change is detected, triggers the pipeline. In the class xxxPipelinexxxApp.java I’m calling both the stacks xxxJavaxxxStack and xxxPipelinexxxStack. I have successfully been able to cdk synth both
Associate AWS CDK EmailConfigurationProperty with UserPool
How do I associate EmailConfigurationProperty with UserPool? I have both objects configured, but do not see the path to connect them. https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cognito.UserPool.html https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cognito.CfnUserPool.EmailConfigurationProperty.html Answer As of AWS CDK v1.62.0 the UserPool high level object does not have a setter for the EmailConfigurationProperty. The solution is to use the setter on the CfnUserPool low level object.