-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugThis issue is a bug.This issue is a bug.
Description
Confirm by changing [ ] to [x] below to ensure that it's a bug:
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow for answers
- I've searched for previous similar issues and didn't find any solution
- This is an issue with version 2.x of the SDK
Describe the bug
FIPS is not supported for S3 Accesspoint
Is the issue in the browser/Node.js?
All
If on Node.js, are you running this on AWS Lambda?
No
Details of the browser/Node.js version
All
SDK version number
[email protected]
To Reproduce (observed behavior)
- Create an access point for a test bucket.
- Run the below example code.
- Note that following error is thrown:
InvalidConfiguration: ARN endpoint is not compatible with FIPS region
Code
import AWS from "aws-sdk";
// ARN for the accesspoint
const Bucket =
"arn:aws:s3:us-west-2:123456789012:accesspoint/trivikr-accesspoint-testing";
const client = new AWS.S3({ region: "fips-us-west-2" });
await client.listObjects({ Bucket }).promise();Expected behavior
The SDK should attempt calling {accesspoint-name}-{account-id}.s3-accesspoint[-fips][.dualstack].{region}.{partition}
The accesspoint provided in test case: arn:aws:s3:us-west-2:123456789012:accesspoint/trivikr-accesspoint-testing
The resulting endpoint should be: trivikr-accesspoint-testing-123456789012.s3-accesspoint-fips.us-west-2.amazonaws.com
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.