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

IPv6 data attribute documented but not working #12785

Closed
realflash opened this issue Apr 12, 2020 · 5 comments · Fixed by #17859
Closed

IPv6 data attribute documented but not working #12785

realflash opened this issue Apr 12, 2020 · 5 comments · Fixed by #17859
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@realflash
Copy link
Contributor

realflash commented Apr 12, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue 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 issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v0.12.24

  • provider.aws v2.56.0

Affected Resource(s)

  • aws_instance (data source not resource)

Terraform Configuration Files

resource "aws_instance" "instance" {
  ami = "ami-0ed2df11a6d41ea78"
  instance_type        = "t3.nano"
  availability_zone    = "eu-west-2b"
}
data "aws_instance" "instance_data" {
	instance_id = aws_instance.instance.id
}
output "ipv6_ips" {
	value = data.aws_instance.instance_data.ipv6_addresses
}

Expected Behavior

No error output.

Actual Behavior

Error: Unsupported attribute

  on no_subnet.tf line 11, in output "ipv6_ips":
  11: 	value = data.aws_instance.instance_data.ipv6_addresses

This object has no argument, nested block, or exported attribute named
"ipv6_addresses".

Steps to Reproduce

  1. terraform plan

Important Factoids

It was me that "discovered" that an ipv6_addresses attribute existed but wasn't documented in hashicorp/terraform#14473 . If memory serves I was using the attribute in a route 53 record in the same root module as the instance, not as a data source. Now I come to use it conjunction with spot instances to gather data on the instance that has been deployed, I find it doesn't work. I wonder if it was missing from the aws_instance resource documentation at the time (it's there now and works), but in my commit I added it to the aws_instance data source documentation, thus documenting something Ihat was different to what I had actually tested. Or possibly that attribute was there and has subsequently been removed, which would make this a regression.

References

@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Apr 12, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 12, 2020
@tophercullen
Copy link

tophercullen commented Aug 6, 2020

@realflash ctrl+f for 'ipv6' on https://github.com/terraform-providers/terraform-provider-aws/blob/master/aws/data_source_aws_instance.go now returns 0 results.

Based on what you said in #14473, it seems to me it was removed.

@realflash
Copy link
Contributor Author

Still broken in provider.aws v3.20.0

@realflash
Copy link
Contributor Author

For those still affected by this, @rick-masters has asked you to react to his pull request #17859 in order to help maintainers gauge prioritisation for this to be merged. If you want this fixed, go vote now.

@ewbankkit ewbankkit added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 27, 2021
@github-actions github-actions bot added this to the v3.57.0 milestone Aug 27, 2021
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This functionality has been released in v3.57.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

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 Jun 10, 2022
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/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants