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

data source for a step function state machine #10932

Merged
merged 7 commits into from
Feb 21, 2020
Merged

Conversation

AndyMoore
Copy link
Contributor

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" comments, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Release note for CHANGELOG:

New Data Source: aws_sfn_state_machine

Output from acceptance testing:

make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsSfnStateMachine'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsSfnStateMachine -timeout 120m
=== RUN   TestAccDataSourceAwsSfnStateMachine
=== PAUSE TestAccDataSourceAwsSfnStateMachine
=== CONT  TestAccDataSourceAwsSfnStateMachine
--- PASS: TestAccDataSourceAwsSfnStateMachine (32.05s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	32.094s

...

This is a data source for a SFN state machine. Only question is whether the additional attributes are needed beyond name/arn..

@AndyMoore AndyMoore requested a review from a team November 19, 2019 16:16
@ghost ghost added size/L 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. provider Pertains to the provider itself, rather than any interaction with AWS. service/sfn Issues and PRs that pertain to the sfn service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Nov 19, 2019
@bflad bflad added new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 11, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Hi @AndyMoore 👋 Thank you for submitting this. Overall its looking pretty good, just some minor things and this should be good to go. Please reach out with any questions or if you do not have time to implement the feedback.

aws/data_source_aws_sfn_state_machine.go Show resolved Hide resolved
aws/data_source_aws_sfn_state_machine.go Outdated Show resolved Hide resolved
aws/data_source_aws_sfn_state_machine.go Outdated Show resolved Hide resolved
aws/data_source_aws_sfn_state_machine_test.go Outdated Show resolved Hide resolved
aws/data_source_aws_sfn_state_machine_test.go Outdated Show resolved Hide resolved
@bflad bflad added the waiting-response Maintainers are waiting on response from community or contributor. label Feb 20, 2020
@bflad bflad self-assigned this Feb 20, 2020
@AndyMoore
Copy link
Contributor Author

thanks for reviewing, think I got everything. still passing tests:

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsSfnStateMachine -timeout 120m
=== RUN   TestAccDataSourceAwsSfnStateMachine
=== PAUSE TestAccDataSourceAwsSfnStateMachine
=== CONT  TestAccDataSourceAwsSfnStateMachine
--- PASS: TestAccDataSourceAwsSfnStateMachine (35.97s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	36.023s

@ghost ghost removed the waiting-response Maintainers are waiting on response from community or contributor. label Feb 20, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Looking really good, @AndyMoore, two small updates and this should be good to go. Thanks!

aws/data_source_aws_sfn_state_machine_test.go Outdated Show resolved Hide resolved
website/docs/d/sfn_state_machine.html.markdown Outdated Show resolved Hide resolved
@AndyMoore
Copy link
Contributor Author

thanks - both fixed. tests still pass:

make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsSfnStateMachine'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsSfnStateMachine -timeout 120m
=== RUN   TestAccDataSourceAwsSfnStateMachine
=== PAUSE TestAccDataSourceAwsSfnStateMachine
=== CONT  TestAccDataSourceAwsSfnStateMachine
--- PASS: TestAccDataSourceAwsSfnStateMachine (35.29s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       35.348s

@bflad bflad added this to the v2.51.0 milestone Feb 21, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Fantastic, thanks @AndyMoore 🚀

Output from acceptance testing:

--- PASS: TestAccDataSourceAwsSfnStateMachine (10.91s)

@bflad bflad merged commit 5a24b92 into hashicorp:master Feb 21, 2020
bflad added a commit that referenced this pull request Feb 21, 2020
@ghost
Copy link

ghost commented Feb 28, 2020

This has been released in version 2.51.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 23, 2020

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 and limited conversation to collaborators Mar 23, 2020
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. new-data-source Introduces a new data source. provider Pertains to the provider itself, rather than any interaction with AWS. service/sfn Issues and PRs that pertain to the sfn service. size/L 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.

2 participants