Fixed AWS SDK V3 bug with s3ForcePathStyle

Signed-off-by: Dang Huynh <dhhuynh2@gmail.com>
This commit is contained in:
Dang Huynh
2023-01-06 15:23:38 -06:00
parent ab43f12359
commit 87ab76e55c
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs-node': minor
---
Fixed bug caused by recent migration to AWS SDK V3 for techdocs-node. Instead of s3ForcePathStyle, forcePathStyle should be passed.
@@ -152,7 +152,7 @@ export class AwsS3Publish implements PublisherBase {
// AWS forcePathStyle is an optional config. If missing, it defaults to false. Needs to be enabled for cases
// where endpoint url points to locally hosted S3 compatible storage like Localstack
const s3ForcePathStyle = config.getOptionalBoolean(
const forcePathStyle = config.getOptionalBoolean(
'techdocs.publisher.awsS3.s3ForcePathStyle',
);
@@ -161,7 +161,7 @@ export class AwsS3Publish implements PublisherBase {
credentialDefaultProvider: () => sdkCredentialProvider,
...(region && { region }),
...(endpoint && { endpoint }),
...(s3ForcePathStyle && { s3ForcePathStyle }),
...(forcePathStyle && { forcePathStyle }),
});
const legacyPathCasing =