-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Could not get all ipv6 information(ipv6_addresses) from terraform.tfstate file #8408
Comments
Hi @aeschright, |
The data "aws_network_interface" supports IPv6, the a resource "aws_network_interface" does not. resource "aws_network_interface" "net-01" {
subnet_id = element(split(",", var.net-01_ids), var.zone_index)
security_groups = split(",", var.security_group_ids)
source_dest_check = false
tags = {
Name = var.tag_name
}
}
data "aws_network_interface" "data-net-01" {
id = aws_network_interface.net-01.id
} result: "module": "module.serena-c-01",
"mode": "data",
"type": "aws_network_interface",
"name": "data-net-02",
"provider": "provider.aws",
"instances": [
{
"schema_version": 0,
"attributes": {
"association": null,
"attachment": null,
"availability_zone": "us-east-2a",
"description": "",
"filter": null,
"id": "eni-0230d495xxx",
"interface_type": "interface",
"ipv6_addresses": [
"2xxx:1f16:5e4:bxxx:af87:27d:xxx:xxx"
],
|
Support for new |
This has been released in version 3.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 for triage. Thanks! |
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! |
Community Note
Terraform Version
Terraform v0.11.11
Affected Resource(s)
*aws_network_interface
*aws_instance
Terraform Configuration Files
Debug Output
Expected Behavior
I enabled Auto-assign IPv6 address, and when instance launched there are 2 ipv6 address configured in the instance:
Expected: Could get ipv6 information like ipv6 address form 'aws_network_interface' of terraform.tfstate file.
Actual Behavior
There are no ipv6 information in 'aws_network_interface' of terraform.tfstate file.
Could only get one ipv6 address of eth0 in 'aws_instance.instance' from terraform.tfstate file.
Steps to Reproduce
Right click the subnet with you want to use ipv6, and then click Modify auto-assign IP settings
Select the check box Auto-assign IPv6 and Save.
Then use this subnet as I decribed in Terraform Configuration Files
terraform apply
The text was updated successfully, but these errors were encountered: