创建表不会反映在 DynamoDB 控制台中

Har*_*Das 3 amazon-web-services amazon-dynamodb

我在 DynamoDB 中编写了以下用于创建表的代码。我正在与 Eclise 一起运行它。我已经配置了Tomcat服务器。我在 Tomcat 上部署了我的应用程序并打开了 localhost URL。

DynamoDB dynamoDB = new DynamoDB(dynamo);
ArrayList<AttributeDefinition> attributeDefinitions = new ArrayList<AttributeDefinition>();
attributeDefinitions.add(new AttributeDefinition()
        .withAttributeName("Id").withAttributeType("N"));

ArrayList<KeySchemaElement> keySchema = new ArrayList<KeySchemaElement>();
keySchema.add(new KeySchemaElement().withAttributeName("Id")
        .withKeyType(KeyType.HASH));

CreateTableRequest request1 = new CreateTableRequest()
        .withTableName("abcdef")
        .withKeySchema(keySchema)
        .withAttributeDefinitions(attributeDefinitions)
        .withProvisionedThroughput(new ProvisionedThroughput()
            .withReadCapacityUnits(5L)
            .withWriteCapacityUnits(6L));

System.out.println("Issuing CreateTable request for abcde");
Table table = dynamoDB.createTable(request1);

System.out.println("Waiting for abcde to be created...this may take a while...");
table.waitForActive();
Run Code Online (Sandbox Code Playgroud)

它运行成功。它还显示成功创建的表。但是当我打开 Amazon DynamoDB 控制台时,它并没有反映新创建的表。谁能建议我这里出了什么问题?我已经正确配置了 secretKey 和 accessKey。

小智 5

是否可能是创建表和控制台显示的不同区域?