Skip to content

[Bug]: Terraform incorrectly shows no changes/Actual state is not compared with TF state #37562

Open
@EugenKon

Description

Terraform Core Version

v1.8.2

AWS Provider Version

v4.67.0

Affected Resource(s)

  • aws_autoscaling_group

Expected Behavior

Terraform should show mismatches between state and actual configuration.

Actual Behavior

Terraform does not show mismatches

Relevant Error/Panic Output Snippet

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration and found no differences, so no
changes are needed.

Terraform Configuration Files

Current terraform.state
image

Current live configuration
image

This configuration correspons to current live configuration:

Current TF configuration
  vpc_zone_identifier = [
    aws_subnet.a_private_prd_plntr.id,
    aws_subnet.b_private_prd_plntr.id,
    aws_subnet.c_private_prd_plntr.id,
    aws_subnet.d_private_prd_plntr.id,
  ]

Steps to Reproduce

  1. Make changes on Live
  2. Make changes in TF configration
  3. Run terraform plan
    Terraform compares current configuration with live configuration and does not change the old TF state which refers to the old TF configuration.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/autoscalingIssues and PRs that pertain to the autoscaling service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions