AWS SDK 3 use in linqpad
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
Amazon.DynamoDBv2
Amazon.Runtime
I'm using Nuget packages:
AWSSDK.Core
AWSSDK.DynamoDBv2
AWSSDK.S3
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: Ran example:
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 ?
http://docs.aws.amazon.com/general/latest/gr/rande.html#ddb_region
var client = new AmazonDynamoDBClient(credentials,RegionEndpoint.USEast1);