hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

[Bug]: dyanmodb point_in_time_recovery change not detected if it was changed outside terraform #38112

Open chefchinco1 opened 3 months ago

chefchinco1 commented 3 months ago

Terraform Core Version

1.3.10

AWS Provider Version

5.55.0

Affected Resource(s)

aws_dynamodb_table

Expected Behavior

PITR was disabled by cli command and redeployment of the dynamotable using terraform should re enable it

Actual Behavior

terraform not detecting that PITR was disabled in the deployed dynamodb

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

deployed resource

+ resource "aws_dynamodb_table" "main" {
      + arn                         = (known after apply)
      + billing_mode                = "PAY_PER_REQUEST"
      + deletion_protection_enabled = true
      + hash_key                    = "applicationId"
      + id                          = (known after apply)
      + name                        = "ddb-xxxxx"
      + read_capacity               = (known after apply)
      + stream_arn                  = (known after apply)
      + stream_enabled              = true
      + stream_label                = (known after apply)
      + stream_view_type            = "NEW_AND_OLD_IMAGES"
      + write_capacity              = (known after apply)
      + attribute {
          + name = "applicationId"
          + type = "S"
        }
      + point_in_time_recovery {
          + enabled = true
        }
}

command used to disable the PITR dynamodb update-continuous-backups --table-name ddb-xxxxx --point-in-time-recovery-specification PointInTimeRecoveryEnabled=false

Steps to Reproduce

1-deploy a dynamodb with PITR enabled using terraform 2-disable the PITR via aws cli 3- re-run your terraform code to redeploy the dynamodb

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 3 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue