-
Notifications
You must be signed in to change notification settings - Fork 11
Add EmbeddedTerraform Stack and Job #12
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
Add EmbeddedTerraform Stack and Job #12
Conversation
69b1828 to
12d1b54
Compare
e87c25a to
c1b4713
Compare
c1b4713 to
8dcd5f0
Compare
|
Okay @jrafanie this is ready for review |
| end | ||
|
|
||
| def poll_interval | ||
| options.fetch(:poll_interval, 1.minute).to_i |
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.
1 minute seems like a long time. How long are we expecting short and long templates to take to run? Would 30 seconds be better?
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.
Probably a good question for @putmanoj
jrafanie
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.
Looks good to me, we can change that poll interval in a followup.
|
@putmanoj I think this reworks some of the POC code you had around workflows, I'm merging today. Let me know if you need help getting your workflows branch working with this. |
Adds a
EmbeddedTerraform::AutomationManager::Stackwhich is anOrchestrationStacksubclassAdds
EmbeddedTerraform::AutomationManager::Template#runwhich is called byEmbeddedTerraform::AutomationManager::Stack.create_stackand creates&starts aJobstate-machineAdds
EmbeddedTerraform::AutomationManager::Jobwhich is a::Jobstate-machine and is responsible for running and polling for completion any terraform runner tasks.