-
| 
         How do I access a local DynamoDB at http://localhost:8000 ? Can you please provide an example?  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
| 
         You can access  use http::Uri;
let endpoint = Endpoint::immutable(Uri::from_static("http://localhost:8000"));
let conf = aws_sdk_dynamodb::Config::builder().endpoint_resolver(endpoint).build();
let local_client = aws_sdk_dynamodb::from_conf(conf); | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Thanks. This compiles but I get the following error: Error: Unhandled(ConstructionFailure(NoRegion))  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         yes, you need to set a region explicitly if there is no region specified in the environment variable: 
  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         We've added a guide section on using DynanmoDB local: https://docs.aws.amazon.com/sdk-for-rust/latest/dg/dynamodb-local.html  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Hello! Reopening this discussion to make it searchable.  | 
  
Beta Was this translation helpful? Give feedback.
We've added a guide section on using DynanmoDB local: https://docs.aws.amazon.com/sdk-for-rust/latest/dg/dynamodb-local.html