Added support for externalId when assuming role in AwsS3EntityProvider

Signed-off-by: Diego Bardari <diego.bardari@klarna.com>
This commit is contained in:
Diego Bardari
2023-01-11 16:40:16 +01:00
parent 42ba68a04b
commit 8e025f1347
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-aws': patch
---
Added support for externalId when assuming role in AwsS3EntityProvider
@@ -27,6 +27,7 @@ export class AwsCredentials {
accessKeyId?: string;
secretAccessKey?: string;
roleArn?: string;
externalId?: string;
},
roleSessionName: string,
): Credentials | CredentialsOptions | undefined {
@@ -52,6 +53,7 @@ export class AwsCredentials {
params: {
RoleArn: roleArn,
RoleSessionName: roleSessionName,
ExternalId: config.externalId,
},
});
}