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

[Bug]: r/aws_datasync_location_fsx_openzfs_file_system: Invalid address to set: []string{"protocol", "0", "smb"} #33221

Closed
szemkhel opened this issue Aug 29, 2023 · 5 comments · Fixed by #33225
Labels
bug Addresses a defect in current functionality. service/datasync Issues and PRs that pertain to the datasync service.
Milestone

Comments

@szemkhel
Copy link

szemkhel commented Aug 29, 2023

Terraform Core Version

1.5.1

AWS Provider Version

5.14.0

Affected Resource(s)

  • aws_datasync_location_fsx_openzfs_file_system

Expected Behavior

I would expect it to build data sync location for openzfs file system without error.

Actual Behavior

│ Error: setting protocol: Invalid address to set: []string{"protocol", "0", "smb"}
│ 
│   with module.test.aws_datasync_location_fsx_openzfs_file_system.outbound_data_folder[0],
│   on ../../modules/xcover-stack/datasync.tf line 18, in resource "aws_datasync_location_fsx_openzfs_file_system" "outbound_data_folder":
│   18: resource "aws_datasync_location_fsx_openzfs_file_system" "outbound_data_folder" { 

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_datasync_location_fsx_openzfs_file_system" "outbound_data_folder" {
  count               = var.deployment_type == "TEST" || var.deployment_type == "TEST2" ? 1 : 0
  fsx_filesystem_arn  = aws_fsx_openzfs_file_system.test[0].arn
  security_group_arns = [aws_security_group.fsx_access[0].arn]
  subdirectory        = "/fsx/${var.outbound_data_folder_name}/"
  protocol {
    nfs {
      mount_options {
        version = "AUTOMATIC"
      }
    }
  }
  tags = merge(
    var.tags,
    { "Name" = "${local.prefix}-fsx-${var.outbound_data_folder_name}" }
  )
}

Steps to Reproduce

terraform plan

Debug Output

No response

Panic Output

No response

Important Factoids

It works fine on previous 5.13.1

References

No response

Would you like to implement a fix?

None

@szemkhel szemkhel added the bug Addresses a defect in current functionality. label Aug 29, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/datasync Issues and PRs that pertain to the datasync service. label Aug 29, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 29, 2023
@ewbankkit
Copy link
Contributor

Relates #32632.

@ewbankkit ewbankkit changed the title [Bug]: [Bug]: r/aws_datasync_location_fsx_openzfs_file_system: Invalid address to set: []string{"protocol", "0", "smb"} Aug 29, 2023
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Aug 29, 2023
@github-actions github-actions bot added this to the v5.15.0 milestone Aug 30, 2023
@szemkhel
Copy link
Author

Thank you @ewbankkit

@github-actions
Copy link

github-actions bot commented Sep 1, 2023

This functionality has been released in v5.15.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. Thank you!

@github-actions
Copy link

github-actions bot commented Oct 1, 2023

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/datasync Issues and PRs that pertain to the datasync service.
Projects
None yet
2 participants