-
Notifications
You must be signed in to change notification settings - Fork 16
Issue 5869 - Deploy Sleeper as part of a larger CDK app #5993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d2b4d9a to
2c948ee
Compare
b7e4732 to
9e76ac8
Compare
c1ea861 to
b7d0d54
Compare
| import sleeper.core.properties.instance.InstanceProperties; | ||
|
|
||
| /** | ||
| * Deploys an instance of Sleeper, including any configured optional stacks. Does not create Sleeper tables. If the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be better to have the "Does not create Sleeper tables" on a seperate line to make it more visible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| DeployInstanceConfiguration configuration = DeployInstanceConfiguration.fromLocalConfiguration(propertiesFile); | ||
| return builder(configuration.getInstanceProperties(), s3Client, dynamoClient) | ||
| .tableProperties(configuration.getTableProperties()) | ||
| .validateProperties(!"false".equalsIgnoreCase(context.tryGetContext("validate"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are inverted logic checks for this line and the one below the best for this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems necessary in order to handle the case where the context variable is unset. If we had validateProperties("true".equalsIgnoreCase(context.tryGetContext("validate"))), then it would default to false if the context variable is unset. We want it to default to true. It'd be good if there was a nicer way to do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've avoided the inverted booleans.
rtjd6554
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small queries to answer
Make sure you have checked all steps below.
Issue
Feature". Note that before an issue is finished, you can still make a pull request by raising a separate issue
for your progress.
Tests
Documentation
separate issue for that below.