mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
17 lines
489 B
JavaScript
17 lines
489 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
addExportNameForOutputs() {
|
|
if (!this.serverless.service.provider.disableDefaultOutputExportNames) {
|
|
const outputs = this.serverless.service.provider.compiledCloudFormationTemplate.Outputs;
|
|
for (const [key, data] of Object.entries(outputs)) {
|
|
if (!data.Export) {
|
|
data.Export = {
|
|
Name: `sls-${this.serverless.service.service}-${this.provider.getStage()}-${key}`,
|
|
};
|
|
}
|
|
}
|
|
}
|
|
},
|
|
};
|