Skip to content

Commit

Permalink
addressed a ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
scmacdon authored and rlhagerm committed Nov 30, 2023
1 parent ebdf700 commit 42f1dcc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public static void main(String[] args) {
String archiveId = args[2];
GlacierClient glacier = GlacierClient.builder()
.region(Region.US_EAST_1)
.credentialsProvider(ProfileCredentialsProvider.create())
.build();

deleteGlacierArchive(glacier, vaultName, accountId, archiveId);
Expand All @@ -62,7 +61,7 @@ public static void deleteGlacierArchive(GlacierClient glacier, String vaultName,
.build();

glacier.deleteArchive(delArcRequest);
System.out.println("The vault was deleted!");
System.out.println("The archive was deleted.");

} catch(GlacierException e) {
System.err.println(e.awsErrorDetails().errorMessage());
Expand Down

0 comments on commit 42f1dcc

Please sign in to comment.