Created
October 26, 2021 13:35
-
-
Save flochaz/bcd6ba8598047c406f76d40dfac64f6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String change001File = "../ApiHandlers/scripts/com/ilmlf/db/001.sql"; | |
String change001Script = new String(Files.readAllBytes(Paths.get(scriptFile))); | |
String change002File = "../ApiHandlers/scripts/com/ilmlf/db/002.sql"; | |
String change002Script = new String(Files.readAllBytes(Paths.get(scriptFile))); | |
CustomResource change001to002 = new CustomResource( | |
this, | |
"change-001", | |
CustomResourceProps.builder() | |
.serviceToken(dbPopulatorProvider.getServiceToken()) | |
.resourceType("Custom::PopulateDataProvider") | |
.properties(Map.of("change-001",change001Script,"change-002",change002Script)) | |
.build()); | |
} | |
change001to002CustomResource.node.addDependency(initCustomResource); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment