Added support for externalId when assuming role in AwsS3EntityProvider
Signed-off-by: Diego Bardari <diego.bardari@klarna.com>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user