Skip to content

Instantly share code, notes, and snippets.

@chrisconlon-klaviyo
Created February 27, 2019 18:35
Show Gist options
  • Save chrisconlon-klaviyo/b52571645c3e6bf3cfb4af61e4e4ab2b to your computer and use it in GitHub Desktop.
Save chrisconlon-klaviyo/b52571645c3e6bf3cfb4af61e4e4ab2b to your computer and use it in GitHub Desktop.
step_example.py
from stack.step import KlaviyoStackTerraformStep
class MailDumpsterStep(KlaviyoStackTerraformStep):
STEP_NAME = 'mail_dumpster'
MODULE_NAME = 'mail_dumpster'
def __init__(self, stack):
self.stack = stack
super(MailDumpsterStep, self).__init__(
self.stack,
self.STEP_NAME,
include_secrets=True,
module=self.MODULE_NAME
)
def on_complete(self):
step_outputs = self.get_step_outputs()
self.update_zookeeper_znode_json_key_value(
self.zookeeper_env_node_key,
'hostname',
step_outputs['mail_dumpster_domain']['value'],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment