Skip to content

[Bug]: aws_dynamodb_table.table.stream_arn Changes Are Not Detected #35645

Open
@onajourney

Description

@onajourney

Terraform Core Version

v1.6.4

AWS Provider Version

v3.76.1

Affected Resource(s)

  • aws_dynamodb_table

Expected Behavior

disable behaviour

set stream_enabled=false on a table

output "stream_arn" {
  value = aws_dynamodb_table.simple.stream_arn
}

should display no arn
resources that use this arn value should be thorn down (aws_lambda_event_source_mapping, aws_lambda_permission, aws_iam_role_policy)

re-enable behavior

set stream_enabled=true

output "stream_arn" {
  value = aws_dynamodb_table.simple.stream_arn
}

should display new arn
resources that use this arn value should be created (aws_lambda_event_source_mapping, aws_lambda_permission, aws_iam_role_policy)

Actual Behavior

disable behaviour

set stream_enabled=false on a table

output "stream_arn" {
  value = aws_dynamodb_table.simple.stream_arn
}

displays old stream arn
resources stay the same

re-enable behavior

set stream_enabled=true

output "stream_arn" {
  value = aws_dynamodb_table.simple.stream_arn
}

displays old arn
resources still point to old stream arn

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

https://gist.github.com/onajourney/fe4b34b6490fff19af9f862a0f84fbd7

Steps to Reproduce

deploy -> disable stream -> deploy -> re-enable stream -> deploy

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

Very likely related to:
#23364
#650
#13662
#12194

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/dynamodbIssues and PRs that pertain to the dynamodb service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions