Skip to content

Commit

Permalink
DO-1419: Fix CFN outout issue with the export name
Browse files Browse the repository at this point in the history
  • Loading branch information
krishanthisera committed Dec 20, 2022
1 parent 8b34d36 commit 1f2edbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/static-hosting/lib/static-hosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export class StaticHosting extends Construct {
new CfnOutput(this, `response header policies ${policyMapping.header.node.id} default`, {
description: `response header policy mappings`,
value: `{ path: "default", policy: "${policyMapping.header.responseHeadersPolicyId}" }`,
exportName: `${exportPrefix}_header_policy_default`
exportName: `${exportPrefix}HeaderPolicy-default`
});
};
/**
Expand All @@ -370,7 +370,7 @@ export class StaticHosting extends Construct {
new CfnOutput(this, `response header policies ${policyMapping.header.node.id} ${path.replace(/\W/g, '')}`, {
description: `response header policy mappings`,
value: `{ path: "${path}", policy: "${policyMapping.header.responseHeadersPolicyId}"}`,
exportName: `${exportPrefix}_header_policy_${path.replace(/\W/g, '')}`
exportName: `${exportPrefix}HeaderPolicy-${path.replace(/\W/g, '')}`
});
};
});
Expand Down

0 comments on commit 1f2edbd

Please sign in to comment.