MCPcopy Index your code
hub / github.com/serverless/serverless / create

Method create

packages/sf-core/src/lib/runners/cfn/aws/Stack.js:101–120  ·  view source on GitHub ↗

* Create a new stack using the base template

(userTemplate, functionsWithUrls)

Source from the content-addressed store, hash-verified

99 * Create a new stack using the base template
100 */
101 async create(userTemplate, functionsWithUrls) {
102 for (const [functionName, { uri }] of Object.entries(functionsWithUrls)) {
103 userTemplate.Resources[functionName].Properties.CodeUri = uri
104 }
105
106 const { StackId } = await this.client.send(
107 new CreateStackCommand({
108 StackName: this.name,
109 TemplateBody: JSON.stringify(userTemplate),
110 Parameters: this.parameters,
111 Capabilities: [
112 'CAPABILITY_IAM',
113 'CAPABILITY_NAMED_IAM',
114 'CAPABILITY_AUTO_EXPAND',
115 ],
116 }),
117 )
118 this.id = StackId
119 return await this.progress()
120 }
121
122 /**
123 * Check the create/update progress of the status

Callers 15

parse-args.jsFile · 0.45
zipFilesFunction · 0.45
createProgressMethod · 0.45
packMethod · 0.45
showApiAssocStatusMethod · 0.45
createRecordMethod · 0.45
deleteRecordMethod · 0.45
_packageMethod · 0.45
_packageAllMethod · 0.45
runFunction · 0.45
deploy.jsFile · 0.45

Calls 1

progressMethod · 0.95

Tested by

no test coverage detected