-
Notifications
You must be signed in to change notification settings - Fork 1
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
Issue 10: Move state machine to terraform module #11
Conversation
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.
Can you also update the examples/cumulus-tf to show how the module should be used in a cumulus deployment now?
@frankinspace Line 2 in ee34659
|
@voxparcxls That's why I was wondering if just putting the state machine definition into the workflow module will work or not. Doesn't https://github.com/nasa/cumulus/releases/download/v16.1.2/terraform-aws-cumulus-workflow.zip create a state machine resource based on the definition passed in to it? I think we might end up with the same state machine defined twice |
Last time we talked about this we had talked about the approach of calling the state machine inside the module from the cumulus workflow state machine that needs to use the module. |
Yes, Now, there is resource state_machine in So it ends up creating both:
Perhaps finding a different way to declare the JSON definition and then have it invoke in cumulus workflow is one way to go about it. |
in directory bignbit/examples/cumulus-tf/step.tf Line 6 in fd79394
|
The Nested workflow method doesn’t cover the problem of duplicate state machines once that “resource” is activate by the cumulus deployment big_and_bit_module and later used as a definition in With the single JSON file Update (bignbit repository):
BLOCKER: There is a block for browse_image_workflow deploy in our bignbit CICD. There are variables and outputs required in that declared in the large cumulus https://github.com/nasa/cumulus/releases/download/v16.1.2/terraform-aws-cumulus.zip I think this can be its own ticket. This PR can deal with the combined state_machine |
* Try outputing rendered template * Update manual build handling * fix typo in environment * permission magic? * cleanup
@voxparcxls I added a commit with the suggestion we discussed on Wed. Please review and I think we're good to merge |
Github Issue: #10
Description
Move bignbit state machine definition to terraform module
Overview of work done
TF update to step.tf, iam_step.tf, main.tf
Overview of integration done
CI Build, Workflow
PR checklist:
See Pull Request Review Checklist for pointers on reviewing this pull request