Skip to content

Commit

Permalink
WIP: temporary hard-code partition and amazon cn top domain
Browse files Browse the repository at this point in the history
Until I can figure out where to change this further down in the stack.
  • Loading branch information
mbergkvist committed Dec 19, 2023
1 parent 9039daf commit d2ed018
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ export class GitHubWorkflow extends PipelineBase {
return EnvironmentPlaceholders.replace(s, {
accountId: account,
region: region,
partition: 'aws',
partition: 'aws-cn',
});
};

Expand All @@ -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<string, any> = {
Expand Down

0 comments on commit d2ed018

Please sign in to comment.