Skip to content
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

Enhancement: Step Functions for Express Workflows #12249

Merged

Conversation

grahamjenson
Copy link
Contributor

@grahamjenson grahamjenson commented Mar 4, 2020

Improved from #11570

This adds support for AWS Step Functions for Express Workflows, that are ideal for high-volume, event-processing workloads such as IoT data ingestion, streaming data processing and transformation, and mobile application backends. They can run for up to five minutes. Execution history is optionally available in Amazon CloudWatch Logs. Express Workflows employ an at-least-once model, where there is a possibility that an execution might be run more than once. This makes them ideal for orchestrating idempotent actions such as transforming input data and storing via PUT in Amazon DynamoDB. Express Workflow executions are billed by the number of executions, the duration of execution, and the memory consumed.

Changes proposed in this pull request:
resource_aws_sfn_state_machine.go: Add type and logging_configuration arguments
resource_aws_sfn_state_machine_test.go: Extend acceptance tests
sfn_state_machine.html.markdown: Extend documentation

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #11348 #11374 #12192 #11570

Release note for CHANGELOG:

IMPROVEMENTS:
Add `type` and `logging_configuration` arguments: aws_sfn_state_machine

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSSfnStateMachine'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSfnStateMachine -timeout 120m
=== RUN   TestAccAWSSfnStateMachine_createUpdate
=== PAUSE TestAccAWSSfnStateMachine_createUpdate
=== RUN   TestAccAWSSfnStateMachine_express_createUpdate
=== PAUSE TestAccAWSSfnStateMachine_express_createUpdate
=== RUN   TestAccAWSSfnStateMachine_standard_createUpdate
=== PAUSE TestAccAWSSfnStateMachine_standard_createUpdate
=== RUN   TestAccAWSSfnStateMachine_Tags
=== PAUSE TestAccAWSSfnStateMachine_Tags
=== RUN   TestAccAWSSfnStateMachine_express_LoggingConfiguration
=== PAUSE TestAccAWSSfnStateMachine_express_LoggingConfiguration
=== CONT  TestAccAWSSfnStateMachine_createUpdate
=== CONT  TestAccAWSSfnStateMachine_Tags
=== CONT  TestAccAWSSfnStateMachine_standard_createUpdate
=== CONT  TestAccAWSSfnStateMachine_express_createUpdate
=== CONT  TestAccAWSSfnStateMachine_express_LoggingConfiguration
--- PASS: TestAccAWSSfnStateMachine_standard_createUpdate (91.72s)
--- PASS: TestAccAWSSfnStateMachine_express_createUpdate (103.14s)
--- PASS: TestAccAWSSfnStateMachine_createUpdate (110.65s)
--- PASS: TestAccAWSSfnStateMachine_Tags (117.36s)
--- PASS: TestAccAWSSfnStateMachine_express_LoggingConfiguration (120.12s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	122.905s
...

@grahamjenson grahamjenson requested a review from a team March 4, 2020 15:06
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. service/sfn Issues and PRs that pertain to the sfn service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Mar 4, 2020
@grahamjenson
Copy link
Contributor Author

Updated by resolving conflict.
When can we expect this to be merged?

@grahamjenson
Copy link
Contributor Author

@VVolotivskyi Bump. When is it possible to get this merged and out?

@a087674
Copy link

a087674 commented Jun 24, 2020

@bflad - Is there any chance this can be reviewed within the next week or two?

Copy link
Contributor

@divmgl divmgl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with some minuscule polish suggestions to get the ball rolling @grahamjenson @bflad

aws/resource_aws_sfn_state_machine_test.go Outdated Show resolved Hide resolved
aws/resource_aws_sfn_state_machine_test.go Outdated Show resolved Hide resolved
website/docs/r/sfn_state_machine.html.markdown Outdated Show resolved Hide resolved
Copy link

@benmcmeen benmcmeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance that this can be merged?

@grahamjenson
Copy link
Contributor Author

@benmcmeen I hope we can get this merged. most of my time is spent just fixing conflicts.

@grahamjenson grahamjenson force-pushed the enhancement/sfn-express-state-machine branch from 59913fe to 5f3f198 Compare July 2, 2020 00:35
Copy link

@emilioinfinity emilioinfinity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great if this could get merged.

@kuhnboy
Copy link

kuhnboy commented Jul 31, 2020

It would be great if this could get merged.

@benmcmeen
Copy link

So - do any of the maintainers ever review PRs on this project? This has been out there forever and contains useful features. It's radio silent on this feature and doesn't exactly inspire confidence about future enhancements or break/fix.

@kuhnboy
Copy link

kuhnboy commented Sep 9, 2020

633 open pull requests show why we shouldn’t put our faith in terraform over cdk. This will never be merged.

@k1rd3rf
Copy link

k1rd3rf commented Sep 9, 2020

Community Note
Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request

Get more people to vote :)

@benmcmeen
Copy link

Plenty of people have voted BOTH times this PR has been submitted. It's not a community participation issue. It's a maintenance shortcoming.

@andrewp-sf
Copy link

@bflad When can we expect this? Because type can't be changed once state is created, I consider this to be critical. I don't see any workarounds except for this PR right now.

@a087674
Copy link

a087674 commented Sep 21, 2020

@breathingdust @anGie44 Can you help in merging this PR?

@breathingdust
Copy link
Member

Hi all! 👋

Just a quick update to say we are tracking this for attention in the near future, but at this time we can't give you an ETA. We appreciate your patience and hope to get back to you with an update soon.

@bvicinus
Copy link

bvicinus commented Dec 8, 2020

Bump, any chance we can get some movement on this? No activity in over 2 months...

@benmcmeen
Copy link

Bump, any chance we can get some movement on this? No activity in over 2 months...

I gave up on this one a loooooong time ago. The SFN module in TF doesn't support XRay tracing, logging config, and all kinds of other things I also couldn't wait for. I ended up just managing this with a script and direct CLI call.

Base automatically changed from master to main January 23, 2021 00:57
@breathingdust breathingdust requested a review from a team as a code owner January 23, 2021 00:57
@SebRamsland
Copy link

This feature was included in the previous roadmap (November 2020 - January 2021), but apparently didn't make it. Now the issue is not mentioned in the current Roadmap nor the upcoming release (3.27.0).

What's happening?

@bvicinus
Copy link

bvicinus commented Feb 2, 2021

Agreed w/ @SebRamsland
I was planning on this feature being available early 2021. Now it is off the roadmap?? Can we please get an update?!?

@bill-rich bill-rich removed the needs-triage Waiting for first response or review from a maintainer. label Feb 3, 2021
@bill-rich bill-rich added this to the v3.27.0 milestone Feb 4, 2021
@bill-rich
Copy link
Contributor

Sorry for the confusion on the roadmap everyone. This is being merged and will be released in v3.27.0.

@bill-rich bill-rich merged commit 746f48f into hashicorp:main Feb 4, 2021
@ghost
Copy link

ghost commented Feb 5, 2021

This has been released in version 3.27.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Mar 7, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/sfn Issues and PRs that pertain to the sfn service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add type to aws_sfn_state_machine