[Enhancement] aws_efs_mount_target: Add ip_address_type and ipv6_address arguments to support IPv6 connectivity#44079
Conversation
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
ip_address_type and ipv6_address argumentsip_address_type and ipv6_address arguments to support IPv6 connectivity
ewbankkit
left a comment
There was a problem hiding this comment.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccEFSMountTarget_\|TestAccEFSMountTargetDataSource_' PKG=efs ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.24.6 test ./internal/service/efs/... -v -count 1 -parallel 4 -run=TestAccEFSMountTarget_\|TestAccEFSMountTargetDataSource_ -timeout 360m -vet=off
2025/08/29 10:57:00 Creating Terraform AWS Provider (SDKv2-style)...
2025/08/29 10:57:00 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN TestAccEFSMountTargetDataSource_basic
=== PAUSE TestAccEFSMountTargetDataSource_basic
=== RUN TestAccEFSMountTargetDataSource_byAccessPointID
=== PAUSE TestAccEFSMountTargetDataSource_byAccessPointID
=== RUN TestAccEFSMountTargetDataSource_byFileSystemID
=== PAUSE TestAccEFSMountTargetDataSource_byFileSystemID
=== RUN TestAccEFSMountTarget_basic
=== PAUSE TestAccEFSMountTarget_basic
=== RUN TestAccEFSMountTarget_disappears
=== PAUSE TestAccEFSMountTarget_disappears
=== RUN TestAccEFSMountTarget_ipAddress
=== PAUSE TestAccEFSMountTarget_ipAddress
=== RUN TestAccEFSMountTarget_IPAddress_emptyString
=== PAUSE TestAccEFSMountTarget_IPAddress_emptyString
=== CONT TestAccEFSMountTargetDataSource_basic
=== CONT TestAccEFSMountTarget_disappears
=== CONT TestAccEFSMountTarget_IPAddress_emptyString
=== CONT TestAccEFSMountTarget_ipAddress
--- PASS: TestAccEFSMountTarget_disappears (117.85s)
=== CONT TestAccEFSMountTargetDataSource_byFileSystemID
--- PASS: TestAccEFSMountTargetDataSource_basic (118.24s)
=== CONT TestAccEFSMountTarget_basic
--- PASS: TestAccEFSMountTarget_ipAddress (121.04s)
=== CONT TestAccEFSMountTargetDataSource_byAccessPointID
--- PASS: TestAccEFSMountTarget_IPAddress_emptyString (121.32s)
--- PASS: TestAccEFSMountTargetDataSource_byAccessPointID (115.29s)
--- PASS: TestAccEFSMountTargetDataSource_byFileSystemID (126.54s)
--- PASS: TestAccEFSMountTarget_basic (204.05s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/efs 327.774s|
@tabito-hara Thanks for the contribution 🎉 👏. |
|
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
|
This functionality has been released in v6.12.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! |
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the library.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Description
This PR adds IPv6 support to EFS mount targets by introducing two new arguments for
aws_efs_mount_targetresource:ip_address_type– Specifies the IP address type for the mount target (ipv4,ipv6, ordual-stack).IpAddressandIpV6Addressfields in the response. Therefore, it is marked asComputed.ForceNew.ipv6_address– The IPv6 address assigned to the mount target (a computed attribute when using IPv6).Computed.ForceNew.The two attributes are also added to
aws_efs_mount_targetdata source.Relations
Closes #44078
References
https://docs.aws.amazon.com/efs/latest/ug/API_CreateMountTarget.html#efs-CreateMountTarget-request-Ipv6Address
Output from Acceptance Testing
Resources
Data sources