Eucalyptus の開発に Amazon AWS SDK を使用しようとしていますが、常にアクセスが拒否されます:public class App {
public static AmazonEC2 ec2;
public static AmazonS3 s3;
public static AmazonIdentityManagement identityManagement;
private static String ACCESS_KEY;
private static String SECRET_KEY;
private static String IDENTITY_END_POINT;
public static void init(){
ACCESS_KEY="myaccesskey";
SECRET_KEY="mysecretkey";
IDENTITY_END_POINT="http://192.168.1.101:8773/services/Euare";
AWSCredentials myCredential = new BasicAWSCredentials(ACCESS_KEY,SECRET_KEY);
//ec2 = new AmazonEC2Client(myCredential);
s3 = new AmazonS3Client(myCredential);
//ec2.setEndpoint(EC2_END_POINT);
s3.setEndpoint(Walrus_END_POINT);
identityManagement=new AmazonIdentityManagementClient(myCredential);
identityManagement.setEndpoint(IDENTITY_END_POINT);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
init();
List<Bucket> buckets = s3.listBuckets();
System.out.println("List of all buckets in your cloud:\n");
for (Bucket bucket : buckets) {
System.out.println(bucket.getName()+"\n");
}
CreateUserRequest createUserRequest=new CreateUserRequest().withPath("/").withUserName("summer");
CreateUserResult createUserResult=identityManagement.createUser(createUserRequest);
それは私が得るエラーです:
スレッド「メイン」ステータス コードの例外: 404、AWS サービス: AmazonIdentityManagement、AWS リクエスト ID: null、AWS エラー コード: null、AWS エラー メッセージ: null at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:614) com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:312) com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:165) com.amazonaws.services.identitymanagement.AmazonIdentityManagementClient.invoke(AmazonIdentityManagementClient.java) :3130) com.amazonaws.services.identitymanagement.AmazonIdentityManagementClient.getUser(AmazonIdentityManagementClient.java:1201) で com.test2.Group.main(Group.java:107) で