Skip to content

Commit dc99023

Browse files
committed
fix: cloudFormation decorator custom stack name
1 parent 1f8e1bb commit dc99023

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cli/providers/cloudFormation/context/dynamoTable.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ export const tableResource = async (context) => {
6262
if (cloudFormationConfig) {
6363
tableConfig.tableStackName = cloudFormationConfig.stack
6464
tableResourceName = cloudFormationConfig.resourceName || tableResourceName
65+
66+
if (tableConfig.tableStackName) {
67+
await executor({
68+
context: { ...context, stackName: tableConfig.tableStackName },
69+
name: `CloudFormation-Stack-init-${tableConfig.tableStackName}`,
70+
method: createStack
71+
})
72+
}
6573
}
6674

6775
const resourceName = setResource(context, tableResourceName, dynamoDb, tableConfig.tableStackName, true)

0 commit comments

Comments
 (0)