Skip to content

FIPS is not supported for S3 Accesspoint #3959

@trivikr

Description

@trivikr

Confirm by changing [ ] to [x] below to ensure that it's a bug:

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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions