无法在亚马逊上看到档案

时间:2017-01-04 10:17:35

标签: java amazon-web-services amazon

BasicAWSCredentials awsCreds = new BasicAWSCredentials("...", "...");

    client = new AmazonGlacierClient(awsCreds);

    client.setEndpoint("https://glacier.us-east-1.amazonaws.com/");

    try {
        ArchiveTransferManager atm = new ArchiveTransferManager(client, awsCreds);

        UploadResult result = atm.upload(vaultName, "my archive2" + (new Date()), new File(archiveToUpload));
        System.out.println("Archive ID: " + result.getArchiveId());

    } catch (Exception e)
    {
        System.err.println(e);
    }

我获得了响应中生成的存档ID,但无法查看我在https://console.aws.amazon.com/glacier/home?region=us-east-1#/vaults上传的文件

1 个答案:

答案 0 :(得分:0)

我从亚马逊文档中得到了原因。这是因为亚马逊每天更新一次列表,并且需要一些时间才能显示在那里。