AWS SDK 3 use in linqpad
Options
Can't connect to AWS
any ideas?
void Main()
{
var awsKey = Util.GetPassword("awsKey");
var awsSecret = Util.GetPassword("awsSecret");
var config = new AmazonDynamoDBConfig { ServiceURL = "http://localhost:8000" };
AWSCredentials credentials = new BasicAWSCredentials(awsKey, awsSecret);
AmazonDynamoDBClient client = new AmazonDynamoDBClient(credentials, config);
{
var tables = client.ListTables();
foreach (string tableName in tables.TableNames) { tableName.Dump();}
}
}
Comments
-
here's my namespaces:
Amazon.DynamoDBv2
Amazon.Runtime
I'm using Nuget packages:
AWSSDK.Core
AWSSDK.DynamoDBv2
AWSSDK.S3 -
The example runs fine here (w/ bogus key and secret).
Is the local DynamoDB instance running?
Downloaded and extracted dynamodb_local_latest.zip from http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html
Started DynamoDB:C:\Users\Admin\Downloads\dynamodb_local_latest>java -jar DynamoDBLocal.jar
Ran example:
Initializing DynamoDB Local with the following configuration:
Port: 8000
InMemory: false
DbPath: null
SharedDb: false
shouldDelayTransientStatuses: false
CorsParams: * -
Thanks I'll try that
But I guess I really want to know how to use data on the cloud - not local in my pc
I guess I should use a different URL from Amazon or select a region in North America near Houston ? -
thanks... this line worked ...
var client = new AmazonDynamoDBClient(credentials,RegionEndpoint.USEast1);