mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
bucket reorganization: fix path
This commit is contained in:
parent
a7fb6c4f72
commit
a5e6ba2269
@ -348,7 +348,7 @@ exports.putCfFile = function(awsProfile, projRootPath, awsRegion, bucketName, pr
|
||||
|
||||
var d = new Date(),
|
||||
cfPath = path.join(projRootPath, 'cloudformation', projStage, awsRegion, type + '-cf.json'),
|
||||
key = ['JAWS', projName, projStage, awsRegion, 'cloudformation/' + type].join('/') + '@' + d.getTime() + '.json',
|
||||
key = ['JAWS', projName, projStage, 'cloudformation/' + type].join('/') + '@' + d.getTime() + '.json',
|
||||
params = {
|
||||
Bucket: bucketName,
|
||||
Key: key,
|
||||
@ -695,7 +695,7 @@ exports.getS3Object = function(awsProfile, awsRegion, params) {
|
||||
*/
|
||||
|
||||
exports.getEnvFile = function(awsProfile, awsRegion, bucketName, projectName, stage) {
|
||||
var key = ['JAWS', projectName, stage, awsRegion, 'envVars', '.env'].join('/'),
|
||||
var key = ['JAWS', projectName, stage, 'envVars', '.env'].join('/'),
|
||||
params = {
|
||||
Bucket: bucketName,
|
||||
Key: key,
|
||||
@ -717,7 +717,7 @@ exports.getEnvFile = function(awsProfile, awsRegion, bucketName, projectName, st
|
||||
exports.putEnvFile = function(awsProfile, awsRegion, bucketName, projectName, stage, contents) {
|
||||
var params = {
|
||||
Bucket: bucketName,
|
||||
Key: ['JAWS', projectName, stage, awsRegion, 'envVars', '.env'].join('/'),
|
||||
Key: ['JAWS', projectName, stage, 'envVars', '.env'].join('/'),
|
||||
ACL: 'private',
|
||||
ContentType: 'text/plain',
|
||||
Body: contents,
|
||||
@ -738,7 +738,7 @@ exports.putEnvFile = function(awsProfile, awsRegion, bucketName, projectName, st
|
||||
|
||||
exports.putLambdaZip = function(awsProfile, awsRegion, bucketName, projectName, stage, lambdaName, zipBuffer) {
|
||||
var d = new Date(),
|
||||
key = ['JAWS', projectName, stage, awsRegion, 'lambdas', lambdaName + '@' + d.getTime() + '.zip'].join('/'),
|
||||
key = ['JAWS', projectName, stage, 'lambdas', lambdaName + '@' + d.getTime() + '.zip'].join('/'),
|
||||
params = {
|
||||
Bucket: bucketName,
|
||||
Key: key,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user