-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
am I able to configure API calls to use different set of AWS credentials, table, with the same model? #831
Comments
Thank you, we have a similar use case to #403 where we need to access multiple accounts' tables with the same model. |
Is switching to an AWS account that you need temporary and local? And a desirable API is close to the second option from the #403: Dynamoid.configure(config_options) do
User.count
end |
I am looking at the Rails Multiple Databases with Active Record guide - they provide means to dynamically switch to some predefined database shard in the similar way: ActiveRecord::Base.connected_to(role: :writing, shard: :shard_one) do
Person.find(@id) # Can't find record, doesn't exist because it was created
# in the shard named ":default".
end |
Thanks for clarifying. I would require the second option as you mentioned. Following your example, I need to get the same model,
No, we maintain large amounts of accounts in our staging environment that is semi-produciton, that we regularly configure and sync to and from production. I've been using a hodgepodge of "copy to environment" APIs and the DynamoDB Ruby SDK, but they are getting out of control and would much prefer to work with |
@rhuang I think you should be able to do this with cross-account permissions.
|
I want to do something like this:
Is this possible?
Currently,
Dynamoid
is configured withDynamoid.configure
andAws.config.update
The text was updated successfully, but these errors were encountered: