-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 10: Move state machine to terraform module (#11)
* step tf terraform dir * iam step in tf dir * move big module definition * changed resource vars * update CHANGELOG * reload, build * rename tf file and clear outputs.tf * yml file * readme: terraform and Module setup in updated cumulus deploy * readme: 0.1.1 * statemachine definition for bignbit internal terraform * add bignbit workflow to svc * Update browse_image_workflow.tf * remove var. duplicate * Update README.md * use templatefile for state machine definition * try the cumulus workflow option * comment 1 * switch back to isolated module test * prep invoke sm definition * big workflow, 2 * restore step.tf * init -upgrade * state_machine_definition * restore to deployable BrowseImageWorkflow, without cumulus * run. * iam role * readme * data source for definition * Implement the template as an output of the bignbit module (#13) * Try outputing rendered template * Update manual build handling * fix typo in environment * permission magic? * cleanup --------- Co-authored-by: Frank Greguska <89428916+frankinspace@users.noreply.github.com>
- Loading branch information
1 parent
51a2d4f
commit b5d8e32
Showing
18 changed files
with
1,656 additions
and
987 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# BIGnBIT Module In Cumulus Deployment (cumulus-tf) | ||
- BIGnBIT Module used in `cumulus-deploy-tf/cumulus-tf` | ||
- Module Name: `big_and_bit_module` | ||
- Source ZIP: `https://github.com/podaac/bignbit/releases/download/0.1.1/bignbit-0.1.1-cumulus-tf.zip` | ||
- lambda_container_image_uri: `ghcr.io/podaac/bignbit/bignbit:0.1.1` | ||
|
||
## Terraform ZIP | ||
|
||
- variables.tf | ||
- outputs.tf | ||
- main.tf | ||
- lambda_functions.tf | ||
- state_machine_definition.json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# In a typical cumulus installation, this is how you would define the workflow: | ||
/* | ||
module "browse_image_workflow" { | ||
source = "https://github.com/nasa/cumulus/releases/download/v16.1.2/terraform-aws-cumulus-workflow.zip" | ||
prefix = var.prefix | ||
name = "BrowseImageWorkflow" | ||
workflow_config = module.cumulus.workflow_config | ||
system_bucket = var.system_bucket | ||
tags = merge(local.tags, { application = "BrowseImageWorkflow" }) | ||
state_machine_definition = module.bignbit_module.workflow_definition | ||
} | ||
*/ | ||
|
||
# This example is deployable without cumulus installed for the purpose of testing the module in isolation; so it does not use terraform-aws-cumulus-workflow.zip | ||
resource "aws_sfn_state_machine" "sfn_state_machine" { | ||
name = "${local.ec2_resources_name}-BrowseImageWorkflow" | ||
role_arn = aws_iam_role.step.arn | ||
|
||
definition = module.bignbit_module.workflow_definition | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.