Skip to content

Commit

Permalink
bring back type for session tags
Browse files Browse the repository at this point in the history
  • Loading branch information
iliapolo committed Aug 29, 2024
1 parent 276ef63 commit 9ba3fd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/private/handlers/container-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class ContainerImageAssetHandler implements IAssetHandler {
const ecr = await this.host.aws.ecrClient({
assumeRoleArn: destination.assumeRoleArn,
assumeRoleExternalId: destination.assumeRoleExternalId,
assumeRoleSessionTags: {},
assumeRoleSessionTags: destination.assumeRoleSessionTags,
region: destination.region,
quiet: options.quiet,
});
Expand Down
6 changes: 3 additions & 3 deletions lib/private/handlers/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class FileAssetHandler implements IAssetHandler {
const s3 = await this.host.aws.s3Client({
assumeRoleArn: destination.assumeRoleArn,
assumeRoleExternalId: destination.assumeRoleExternalId,
assumeRoleSessionTags: {},
assumeRoleSessionTags: destination.assumeRoleSessionTags,
region: destination.region,
quiet: true,
});
Expand All @@ -59,7 +59,7 @@ export class FileAssetHandler implements IAssetHandler {
const s3 = await this.host.aws.s3Client({
assumeRoleArn: destination.assumeRoleArn,
assumeRoleExternalId: destination.assumeRoleExternalId,
assumeRoleSessionTags: {},
assumeRoleSessionTags: destination.assumeRoleSessionTags,
region: destination.region,
});
this.host.emitMessage(EventType.CHECK, `Check ${s3Url}`);
Expand All @@ -73,7 +73,7 @@ export class FileAssetHandler implements IAssetHandler {
await this.host.aws.discoverTargetAccount({
assumeRoleArn: destination.assumeRoleArn,
assumeRoleExternalId: destination.assumeRoleExternalId,
assumeRoleSessionTags: {},
assumeRoleSessionTags: destination.assumeRoleSessionTags,
region: destination.region,
})
)?.accountId;
Expand Down

0 comments on commit 9ba3fd1

Please sign in to comment.