You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've imported an existing aws subnets and the state looks right
$ terraform state list
module.ireland.aws_availability_zones.available
module.ireland.aws_subnet.net[0]
module.ireland.aws_subnet.net[1]
module.ireland.aws_subnet.net[2]
module.ireland.aws_vpc.main
On refreshing the state it looses zero index
$ terraform plan
...
aws_vpc.main: Refreshing state... (ID: vpc-VVVV)
data.aws_availability_zones.available: Refreshing state...
aws_subnet.net.2: Refreshing state... (ID: subnet-ZZZZ)
aws_subnet.net.1: Refreshing state... (ID: subnet-YYYY)
aws_subnet.net: Refreshing state... (ID: subnet-XXXX)
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.
ghost
locked and limited conversation to collaborators
Apr 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
I've imported an existing aws subnets and the state looks right
$ terraform state list
module.ireland.aws_availability_zones.available
module.ireland.aws_subnet.net[0]
module.ireland.aws_subnet.net[1]
module.ireland.aws_subnet.net[2]
module.ireland.aws_vpc.main
On refreshing the state it looses zero index
$ terraform plan
...
aws_vpc.main: Refreshing state... (ID: vpc-VVVV)
data.aws_availability_zones.available: Refreshing state...
aws_subnet.net.2: Refreshing state... (ID: subnet-ZZZZ)
aws_subnet.net.1: Refreshing state... (ID: subnet-YYYY)
aws_subnet.net: Refreshing state... (ID: subnet-XXXX)
Terraform Version
Terraform Version: 0.9.1
Affected Resource(s)
Terraform Configuration Files
main.tf
modules/vpc/main.tf
Debug Output
https://gist.github.com/BlaCatRu/71c745b9d46d351690986f0c5f93639c
The text was updated successfully, but these errors were encountered: