You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "beny (JIRA)" <ji...@apache.org> on 2018/01/25 03:52:00 UTC
[jira] [Commented] (JCLOUDS-1258) Amazon China Beijing Region
Support
[ https://issues.apache.org/jira/browse/JCLOUDS-1258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16338689#comment-16338689 ]
beny commented on JCLOUDS-1258:
-------------------------------
Hi, all.
I also found the same problem as [~zreal] when I used the jclouds-2.1.0-SNAPSHOT version. The codes are as follows:
=========================================================
BlobStoreContext context = ContextBuilder.newBuilder("aws-s3")
.credentials(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
.buildView(BlobStoreContext.class);
AWSS3BlobStore blobStore = (AWSS3BlobStore) context.getBlobStore();
Location location = new LocationBuilder().scope(LocationScope.REGION)
.id("cn-north-1")
.description("region")
.build();
blobStore.createContainerInLocation(location, "myownbucket01");
=========================================================
The exception is "Exception in thread 'main' org.jclouds.rest.AuthorizationException: The AWS Access Key Id you provided does not exist in our records." And this is caused by: org.jclouds.aws.AWSResponseException: request PUT https://myownbucket01.s3.amazonaws.com/ HTTP/1.1 failed with code 403, error: AWSError\{requestId='C1CD9F18E2038EA5', requestToken='Pq9SB9wdEACBDtNcsQu/RdCLdDIT4YtWbDJ48nkB1oqT4KU9D6L1NvCUNdgBHyS/RN5z8R0/KR8=', code='InvalidAccessKeyId', message='The AWS Access Key Id you provided does not exist in our records.', context='{HostId=Pq9SB9wdEACBDtNcsQu/RdCLdDIT4YtWbDJ48nkB1oqT4KU9D6L1NvCUNdgBHyS/RN5z8R0/KR8=, AWSAccessKeyId=AKIAOIQP5YMT4ZLWGMPA}'}
> Amazon China Beijing Region Support
> -----------------------------------
>
> Key: JCLOUDS-1258
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1258
> Project: jclouds
> Issue Type: Improvement
> Components: jclouds-blobstore, jclouds-compute
> Affects Versions: 2.0.1
> Reporter: Archana Chinnaiah
> Priority: Minor
> Labels: aws-ec2, aws-s3
> Fix For: 2.1.0, 2.0.3
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)