Skip to content

Instantly share code, notes, and snippets.

@flochaz
Created October 26, 2021 13:35
Show Gist options
  • Save flochaz/bcd6ba8598047c406f76d40dfac64f6e to your computer and use it in GitHub Desktop.
Save flochaz/bcd6ba8598047c406f76d40dfac64f6e to your computer and use it in GitHub Desktop.
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