bug: Localstack DynamoDB TransactWriteItems & TransactGetItems do not support ARNs
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
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.
I'm interested in seeing this resolved also.
This is also the case for QueryRequest