Loading...
Loading...
Terraform Version ``` terraform -v Terraform v0.12.10 + provider.aws v2.32.0 ``` ### Debug Output I masked some resource names and IDs. ``` terraform plan Refreshing Terraform state in-memory prior to plan... The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage. data.terraform_remote_state.xxxxx: Refreshing state... aws_vpc.vpc: Refreshing state... aws_eip.nat_1a: Refreshing state... data.aws_region.current: Refreshing state... data.aws_caller_identity.current: Refreshing state... aws_s3_bucket.files: Refreshing state... data.aws_ami.amzn_windows_hvm: Refreshing state... data.aws_route53_zone.public: Refreshing state... data.aws_iam_policy_document.application-assume-role-policy: Refreshing state... data.aws_iam_policy_document.td-agent: Refreshing state... aws_eip.nat_1c: Refreshing state... aws_iam_policy.td-agent: Refreshing state... aws_iam_role.application: Refreshing state... aws_iam_instance_profile.application: Refreshing state... aws_iam_role_policy_attachment.td-agent: Refreshing state... data.aws_iam_policy_document.application: Refreshing state... aws_iam_policy.application: Refreshing state... aws_iam_role_policy_attachment.application: Refreshing state... aws_internet_gateway.igw: Refreshing state... aws_subnet.private_1a: Refreshing state... aws_security_group.application: Refreshing state... aws_security_group.public_elb: Refreshing state... aws_security_group.scraping: Refreshing state... aws_subnet.public_1a: Refreshing state... aws_subnet.private_1c: Refreshing state... aws_subnet.public_1c: Refreshing state... aws_security_group.scraping_elb: Refreshing state... aws_nat_gateway.nat_1c: Refreshing state... aws_security_group_rule.application_ingress_22: Refreshing state... aws_security_group_rule.application_ingress_80: Refreshing state... aws_security_group_rule.scraping_elb_egress: Refreshing state... aws_security_group_rule.scraping_elb_ingress_3389: Refreshing state... aws_security_group_rule.application_egress: Refreshing state... aws_security_group_rule.scraping_egress: Refreshing state... aws_security_group_rule.scraping_ingress_3389: Refreshing state... aws_security_group_rule.public_elb_egress: Refreshing state... aws_security_group_rule.public_elb_ingress_80: Refreshing state... aws_nat_gateway.nat_1a: Refreshing state... aws_elb.scraping_elb: Refreshing state... aws_elb.public_elb: Refreshing state... aws_instance.scraping: Refreshing state... aws_route53_record.xxxxx-public: Refreshing state... Error: State format upgrade failed Error upgrading state file format from version 3 to version 4: failed to migrate primary generation of aws_lb.public_alb: invalid dependency reference "aws_subnet.1a-public": Attribute name required: Dot must be followed by attribute name.. ``` ### Expected Behavior ・terraform does not crash. ・terraform does not try to create ALB. ### Actual Behavior terraform tried to create ALB and it crashed ### Steps to Reproduce terraform 0.11.14 ``` terraform init terraform apply terraform 0.12checklist terraform state pull | perl -ne 'print $_ if /depends_on/ .. /\]/' | perl -ne 'print $_ if /\.[^a-z*]/i' | sort -u ``` terraform 0.12.10 ``` terraform 0.12upgrade fix some variables, codes for terraform 0.12.10 terraform plan ``` ### Additional Context I tried to upgrade terraform 0.12. After upgrading terraform, it tried to create ALB, and it crashed. There is no ALB in my terraform state list. How can I solve this problem? Thank you.
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.