Skip to content

Commit

Permalink
test-param
Browse files Browse the repository at this point in the history
  • Loading branch information
RikishK committed Nov 14, 2024
1 parent 2bdfb77 commit 66e562e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions metaflow/plugins/aws/step_functions/step_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def trigger(cls, name, parameters, aws_tags=None):
"on AWS Step Functions. Please "
"deploy your flow first." % name
)

# Dump parameters into `Parameters` input field.
input = json.dumps({
"Parameters": json.dumps(parameters),
Expand Down
2 changes: 2 additions & 0 deletions metaflow/plugins/aws/step_functions/step_functions_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,8 @@ def _convert_value(param):
if kwargs.get(param.name.replace("-", "_").lower()) is not None
}

params["test-param"] = "test-123"

response = StepFunctions.trigger(obj.state_machine_name, params, aws_tags=aws_tags_dict)

id = response["executionArn"].split(":")[-1]
Expand Down

0 comments on commit 66e562e

Please sign in to comment.