Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement]: Import DynamoDb Items #30720

Open
marcosdiez opened this issue Apr 14, 2023 · 1 comment · May be fixed by #35237
Open

[Enhancement]: Import DynamoDb Items #30720

marcosdiez opened this issue Apr 14, 2023 · 1 comment · May be fixed by #35237
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/dynamodb Issues and PRs that pertain to the dynamodb service.

Comments

@marcosdiez
Copy link
Contributor

Description

Basically, we need to import dynamodb_table_item, which as of 2023-04-13 is not possible:

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/dynamodb_table_item

this is a duplicate of #8923 and apparently two PRs exist that solve the issue:

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

  • dynamodb_table_item

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 = <<ITEM
{
  "exampleHashKey": {"S": "something"},
  "one": {"N": "11111"},
  "two": {"N": "22222"},
  "three": {"N": "33333"},
  "four": {"N": "44444"}
}
ITEM
}

resource "aws_dynamodb_table" "example" {
  name           = "example-name"
  read_capacity  = 10
  write_capacity = 10
  hash_key       = "exampleHashKey"

  attribute {
    name = "exampleHashKey"
    type = "S"
  }
}

References

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/dynamodb_table_item

Would you like to implement a fix?

No

@marcosdiez marcosdiez added enhancement Requests to existing resources that expand the functionality or scope. needs-triage Waiting for first response or review from a maintainer. labels Apr 14, 2023
@github-actions github-actions bot added the service/dynamodb Issues and PRs that pertain to the dynamodb service. label Apr 14, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Apr 25, 2023
@caiounderscore caiounderscore linked a pull request Jan 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/dynamodb Issues and PRs that pertain to the dynamodb service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants