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.84k stars 9.19k forks source link

[Enhancement]: r/aws_dynamodb_table_item: cannot create when the hash key already exists #27916

Open atsushi-ishibashi opened 1 year ago

atsushi-ishibashi commented 1 year ago

Description

aws_dynamodb_table_item doesn't support import feature so we don't have import the existing dynamodb table item without deleting the item.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_dynamodb_table_item" "example" {
  table_name = aws_dynamodb_table.example.name
  hash_key   = aws_dynamodb_table.example.hash_key
  item = jsonencode({
    "HashKey" : {
      "S" : "hoge"
    },
    "Name" : {
      "S" : "Fuga"
    }
  })
}

References

https://github.com/hashicorp/terraform-provider-aws/issues/26080

Would you like to implement a fix?

No response

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 4 days ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!