Skip to content

Commit 9ded845

Browse files
authored
Fix edge stack id (#257)
1 parent aab385b commit 9ded845

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
- name: Upload Zip
169169
uses: actions/upload-artifact@v2
170170
with:
171-
name: cdk_out
171+
name: cdk_out_${{ matrix.deployName }}
172172
path: cdk-out.zip
173173

174174
- name: Diff CDK Stack

packages/microapps-cdk/src/MicroAppsEdgeToOrigin.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,10 @@ replaceHostHeader: ${props.replaceHostHeader}`;
293293
// EdgeFunction has a bug where it will generate the same parameter
294294
// name across multiple stacks in the same region if the id param is constant
295295
return new cf.experimental.EdgeFunction(this, `edge-to-apigwy-func-${this.hashStackName()}`, {
296+
stackId: `microapps-edge-to-origin-${this.hashStackName()}`,
296297
code: lambda.Code.fromAsset(distPath),
298+
functionName: `microapps-edge-to-origin-${this.hashStackName()}`,
297299
handler: 'index.handler',
298-
...(edgeToOriginFuncProps.functionName
299-
? { stackId: edgeToOriginFuncProps.functionName }
300-
: {}),
301300
...edgeToOriginFuncProps,
302301
});
303302
}

0 commit comments

Comments
 (0)