0
我是AWS的新手。現在我想編寫一個Java代碼來使用CloudFront訪問s3。如何讓CloudFront訪問某些S3?
我創建了S3存儲桶。但我不知道如何使用S3憑證獲取雲端對象。
我讀了AWS的Java API,它似乎是代碼應該是這種形式:
AmazonCloudFrontClient cloudfront = new AmazonCloudFrontClient(credentials);
CreateCloudFrontOriginAccessIdentityRequest originRequest = new CreateCloudFrontOriginAccessIdentityRequest();
originRequest.setRequestCredentials(credentials);
cloudfront.createCloudFrontOriginAccessIdentity(originRequest);
但我沒有看到一個S3ID或東西的S3設置到CloudFront的。