Skip to content

Commit

Permalink
fix aws-cdk/packages/aws-cdk/lib/api/deploy-stack.ts for aws#22928
Browse files Browse the repository at this point in the history
  • Loading branch information
kzym-w committed Dec 26, 2022
1 parent 4673c8b commit de1ecde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/aws-cdk/lib/api/deploy-stack.ts
Expand Up @@ -592,7 +592,8 @@ async function makeBodyParameter(
if (overrideTemplate) {
// Add a variant of this template
templateFile = `${stack.templateFile}-${templateHash}.yaml`;
await fs.writeFile(templateFile, templateJson, { encoding: 'utf-8' });
await fs.writeFile(path.join(stack.assembly.directory, templateFile), templateJson, { encoding: 'utf-8' }); //https://github.com/aws/aws-cdk/issues/22928
//await fs.writeFile(templateFile, templateJson, { encoding: 'utf-8' });
}

assetManifest.addFileAsset(templateHash, {
Expand Down

0 comments on commit de1ecde

Please sign in to comment.