-
Notifications
You must be signed in to change notification settings - Fork 872
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
Update Provisioner example with ability to trigger dynamic provider change #513
Changes from 1 commit
3f68f5a
83e29e1
d677300
b85f52b
d7df180
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…e used to detect changes to scripts.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,12 @@ export interface ConnectionArgs { | |
username?: pulumi.Input<string>; | ||
password?: pulumi.Input<string>; | ||
privateKey?: pulumi.Input<string>; | ||
privateKeyPassphrase?: pulumi.Input<string>; | ||
privateKeyPassphrase?: pulumi.Input<string>; | ||
/** | ||
* A string value to control the replacement of the provisioner during each update. | ||
* Provide a stable value if you do not need the provisioner to run each time you run an update. | ||
*/ | ||
changeToken: string; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like this doesn't quite belong on the Note that for the specific case of changing when the file contents change - it might be nice to actually have a first class Though looking at your original example - perhaps the reason you did it the way you did was to trigger both of these to re-run - which would not be possible with my suggestion above due to the lack of pulumi/pulumi#838. Feel free to keep this as is - but perhaps consider As for doc comment here - the inconsistency is a little jarring - perhaps add comments on all properties? And either adopt the same There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yeah I agree -- it was a little hacky to put it with the
Yes, that's correct. The user can control which one they would like to re-run every time the file(s) content changes.
I don't like the name |
||
} | ||
|
||
// ConnectionType is the set of legal connection mechanisms to use. Default is SSH. | ||
|
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.
Some indentation appears to be off 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.
Yeah my editor was set to use Tabs for this repo for some reason. I have fixed it now.