localstack icon indicating copy to clipboard operation
localstack copied to clipboard

bug: Localstack DynamoDB TransactWriteItems & TransactGetItems do not support ARNs

Open erikwilson opened this issue 2 months ago • 3 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

When using ARNs with transactions we are seeing failures in localstack.

This issue was initially surfaced during testing with the aws-sdk-go-v2 client, also reproduced with boto3, and here with the CLI.

Expected Behavior

Using ARNs with Transactions works with DynamoDB in production, and the ARNs are needed there to properly construct the endpoints to access those tables.

How are you starting LocalStack?

With a docker-compose file

Steps To Reproduce

aws dynamodb transact-write-items --endpoint-url http://localhost:4566 \
  --transact-items '[{
                "Put": {
                    "TableName": "arn:aws:dynamodb:us-east-1:000000000000:table/example-table",
                    "Item": { ... }
                }
            }]'

An error occurred (ResourceNotFoundException) when calling the TransactWriteItems operation: Cannot do operations on a non-existent table

or

aws dynamodb transact-get-items --endpoint-url http://localhost:4566 \
  --transact-items '[{
                "Get": {
                    "TableName": "arn:aws:dynamodb:us-east-1:000000000000:table/example-table", 
                    "Key": { ... }       
                }
            }]'

An error occurred (ResourceNotFoundException) when calling the TransactGetItems operation: Cannot do operations on a non-existent table

Environment

- LocalStack: 
  LocalStack version: 4.9.2

Anything else?

No response

erikwilson avatar Oct 29 '25 21:10 erikwilson

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Support if you are a licensed user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines.

localstack-bot avatar Oct 29 '25 21:10 localstack-bot

I'm interested in seeing this resolved also.

jonathan-carewell avatar Nov 05 '25 02:11 jonathan-carewell

This is also the case for QueryRequest

taharafique avatar Nov 05 '25 11:11 taharafique