From d2ed0187a543b75d5a70408e7a71139eb44c10e9 Mon Sep 17 00:00:00 2001 From: Markus Bergkvist Date: Tue, 19 Dec 2023 08:51:16 +0100 Subject: [PATCH] WIP: temporary hard-code partition and amazon cn top domain Until I can figure out where to change this further down in the stack. --- src/pipeline.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pipeline.ts b/src/pipeline.ts index ab8138f1..071a3785 100644 --- a/src/pipeline.ts +++ b/src/pipeline.ts @@ -564,7 +564,7 @@ export class GitHubWorkflow extends PipelineBase { return EnvironmentPlaceholders.replace(s, { accountId: account, region: region, - partition: 'aws', + partition: 'aws-cn', }); }; @@ -573,7 +573,8 @@ export class GitHubWorkflow extends PipelineBase { if (this.assetHashMap[hash] === undefined) { throw new Error(`Template asset hash ${hash} not found.`); } - return template.replace(hash, `\${{ needs.${this.assetHashMap[hash]}.outputs.${ASSET_HASH_NAME} }}`); + return template.replace(hash, `\${{ needs.${this.assetHashMap[hash]}.outputs.${ASSET_HASH_NAME} }}`) + .replace('.amazonaws.com', '.amazonaws.com.cn'); }; const params: Record = {