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

r/datasync_location_fsx_windows - add resource #12686

Merged

Conversation

DrFaust92
Copy link
Collaborator

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

Closes #12353

Release note for CHANGELOG:

resource_aws_datasync_location_fsx_windows - add new resource

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSDataSyncLocationFsxWindows_'
--- PASS: TestAccAWSDataSyncLocationFsxWindows_disappears (3067.59s)
--- PASS: TestAccAWSDataSyncLocationFsxWindows_basic (2967.79s)
--- PASS: TestAccAWSDataSyncLocationFsxWindows_Subdirectory (3063.13s)
--- PASS: TestAccAWSDataSyncLocationFsxWindows_Tags (3012.95s)

@DrFaust92 DrFaust92 requested a review from a team April 5, 2020 15:56
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/XL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. service/datasync Issues and PRs that pertain to the datasync service. service/fsx Issues and PRs that pertain to the fsx service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. documentation Introduces or discusses updates to documentation. labels Apr 5, 2020
@DrFaust92 DrFaust92 changed the title [WIP]r/datasync_location_fsx_windows - add resource r/datasync_location_fsx_windows - add resource Apr 5, 2020
@DrFaust92
Copy link
Collaborator Author

I have no clue why linting fails... help is welcome

@ewbankkit
Copy link
Contributor

It could be something to do with the number of source files in the aws directory.
If I move the contents to resource_aws_datasync_location_fsx_windows.go into say resource_aws_datasync_location_efs.go (and delete resource_aws_datasync_location_fsx_windows.go) then everything compiles as usual.

@DrFaust92
Copy link
Collaborator Author

ugh, that sounds like a fun issue. @ewbankkit, is this something that happens locally when running make lint or is it a travis issue? i get different unrelated errors.

@ewbankkit
Copy link
Contributor

ewbankkit commented Apr 6, 2020

I'm building on a standard Ubuntu 18.04 and get

$ make
==> Checking that code complies with gofmt requirements...
go install
# github.com/terraform-providers/terraform-provider-aws/aws
aws/provider.go:439:63: undefined: resourceAwsDataSyncLocationFsxWindows
GNUmakefile:12: recipe for target 'build' failed
make: *** [build] Error 2

which is a bogus error.
I'm looking at ulimit and all that.
Same error on Catalina.

@ewbankkit
Copy link
Contributor

@DrFaust92 Actually, it's the _windows suffix on the file name that causes the problem 😄; See https://golang.org/pkg/go/build/#hdr-Build_Constraints.

@DrFaust92
Copy link
Collaborator Author

gotcha, thanks for the info. im thinking of changing the name to aws_datasync_location_fsx_windows_file_system or aws_datasync_location_windows_fsx, thoughts?

@ewbankkit
Copy link
Contributor

aws_datasync_location_fsx_windows_file_system seems to accurately reflect the resource's purpose.

@DrFaust92
Copy link
Collaborator Author

It Lints!

@ewbankkit, Appreciate your help as always.

@DrFaust92 DrFaust92 added the new-resource Introduces a new resource. label May 22, 2020
@DrFaust92 DrFaust92 force-pushed the r/datasync_location_fsx_windows branch from 3dce130 to c292859 Compare May 22, 2020 16:29
@ewbankkit
Copy link
Contributor

Verified acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSDataSyncLocationFsxWindows_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSDataSyncLocationFsxWindows_ -timeout 120m
=== RUN   TestAccAWSDataSyncLocationFsxWindows_basic
=== PAUSE TestAccAWSDataSyncLocationFsxWindows_basic
=== RUN   TestAccAWSDataSyncLocationFsxWindows_disappears
=== PAUSE TestAccAWSDataSyncLocationFsxWindows_disappears
=== RUN   TestAccAWSDataSyncLocationFsxWindows_Subdirectory
=== PAUSE TestAccAWSDataSyncLocationFsxWindows_Subdirectory
=== RUN   TestAccAWSDataSyncLocationFsxWindows_Tags
=== PAUSE TestAccAWSDataSyncLocationFsxWindows_Tags
=== CONT  TestAccAWSDataSyncLocationFsxWindows_basic
=== CONT  TestAccAWSDataSyncLocationFsxWindows_Tags
=== CONT  TestAccAWSDataSyncLocationFsxWindows_Subdirectory
=== CONT  TestAccAWSDataSyncLocationFsxWindows_disappears
--- PASS: TestAccAWSDataSyncLocationFsxWindows_Tags (2968.99s)
--- PASS: TestAccAWSDataSyncLocationFsxWindows_disappears (3035.71s)
--- PASS: TestAccAWSDataSyncLocationFsxWindows_basic (3080.52s)
--- PASS: TestAccAWSDataSyncLocationFsxWindows_Subdirectory (3084.69s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	3084.752s

@ghost
Copy link

ghost commented Jun 4, 2020

@ewbankkit @DrFaust92 any idea when this will become public? It is currently blocking one of my customers. Thanks!

@bflad bflad removed the needs-triage Waiting for first response or review from a maintainer. label Jul 6, 2020
@DrFaust92 DrFaust92 removed the service/fsx Issues and PRs that pertain to the fsx service. label Jul 20, 2020
@DrFaust92 DrFaust92 force-pushed the r/datasync_location_fsx_windows branch from 36ff753 to fa9a24c Compare July 20, 2020 07:29
@ghost ghost added the service/fsx Issues and PRs that pertain to the fsx service. label Jul 20, 2020
@DrFaust92 DrFaust92 force-pushed the r/datasync_location_fsx_windows branch from fa9a24c to cf8019d Compare July 28, 2020 21:51
@ewbankkit ewbankkit requested review from ewbankkit and removed request for a team July 29, 2020 15:47
@DrFaust92 DrFaust92 force-pushed the r/datasync_location_fsx_windows branch from 46087c6 to 1a67e6c Compare August 21, 2020 21:38
@breathingdust
Copy link
Member

LGTM 🚀 Thanks @DrFaust92!

Verified Acceptance Tests

make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSDataSyncLocationFsxWindows_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSDataSyncLocationFsxWindows_ -timeout 120m
=== RUN   TestAccAWSDataSyncLocationFsxWindows_basic
=== PAUSE TestAccAWSDataSyncLocationFsxWindows_basic
=== RUN   TestAccAWSDataSyncLocationFsxWindows_disappears
=== PAUSE TestAccAWSDataSyncLocationFsxWindows_disappears
=== RUN   TestAccAWSDataSyncLocationFsxWindows_subdirectory
=== PAUSE TestAccAWSDataSyncLocationFsxWindows_subdirectory
=== RUN   TestAccAWSDataSyncLocationFsxWindows_tags
=== PAUSE TestAccAWSDataSyncLocationFsxWindows_tags
=== CONT  TestAccAWSDataSyncLocationFsxWindows_basic
=== CONT  TestAccAWSDataSyncLocationFsxWindows_tags
=== CONT  TestAccAWSDataSyncLocationFsxWindows_subdirectory
=== CONT  TestAccAWSDataSyncLocationFsxWindows_disappears
    resource_aws_datasync_location_fsx_windows_file_system_test.go:117: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAWSDataSyncLocationFsxWindows_basic (2908.00s)
--- PASS: TestAccAWSDataSyncLocationFsxWindows_disappears (2968.86s)
 --- PASS: TestAccAWSDataSyncLocationFsxWindows_tags (3259.91s)
--- PASS: TestAccAWSDataSyncLocationFsxWindows_subdirectory (3480.53s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	3482.790s

@breathingdust breathingdust added this to the v3.8.0 milestone Sep 18, 2020
@breathingdust breathingdust merged commit be372d0 into hashicorp:master Sep 18, 2020
breathingdust added a commit that referenced this pull request Sep 18, 2020
@ghost
Copy link

ghost commented Sep 24, 2020

This has been released in version 3.8.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 Oct 19, 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 as resolved and limited conversation to collaborators Oct 19, 2020
@DrFaust92 DrFaust92 deleted the r/datasync_location_fsx_windows branch February 12, 2022 12:51
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-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/datasync Issues and PRs that pertain to the datasync service. service/fsx Issues and PRs that pertain to the fsx 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.

Terraform 12 does not support datasync location for FSX Windows
4 participants