Browse Source

changed username

master
Sebastian Rieger 7 years ago
parent
commit
4daf5538af
  1. 3
      VerteilteSysteme-Examples/src/verteiltesysteme/aws/StartVertSysServersTokyo.java

3
VerteilteSysteme-Examples/src/verteiltesysteme/aws/StartVertSysServersTokyo.java

@ -55,7 +55,7 @@ public class StartVertSysServersTokyo {
} catch (Exception e) { } catch (Exception e) {
throw new AmazonClientException("Cannot load the credentials from the credential profiles file. " throw new AmazonClientException("Cannot load the credentials from the credential profiles file. "
+ "Please make sure that your credentials file is at the correct " + "Please make sure that your credentials file is at the correct "
+ "location (C:\\Users\\sebas\\.aws\\credentials), and is in valid format.", e);
+ "location (C:\\Users\\<username>\\.aws\\credentials), and is in valid format.", e);
} }
// Tokyo // Tokyo
@ -64,7 +64,6 @@ public class StartVertSysServersTokyo {
.withRegion("ap-northeast-1").build(); .withRegion("ap-northeast-1").build();
System.out.println("Loading user-data from file..."); System.out.println("Loading user-data from file...");
System.out.println(System.getProperty("user.home"));
byte[] encoded = Files.readAllBytes(Paths.get("src\\verteiltesysteme\\aws\\user-data.txt")); byte[] encoded = Files.readAllBytes(Paths.get("src\\verteiltesysteme\\aws\\user-data.txt"));
String userData = Base64.getEncoder().encodeToString(encoded); String userData = Base64.getEncoder().encodeToString(encoded);

Loading…
Cancel
Save