File tree 2 files changed +1
-11
lines changed
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @serverless/function" ,
3
- "version" : " 2 .0.1 " ,
3
+ "version" : " 3 .0.0 " ,
4
4
"description" : " Deploy a function to multiple FaaS providers w/ this simple Function abstraction built as a Serverless Component" ,
5
5
"main" : " ./serverless.js" ,
6
6
"publishConfig" : {
13
13
"license" : " MIT" ,
14
14
"dependencies" : {
15
15
"@serverless/aws-lambda" : " ^1.0.0" ,
16
- "@serverless/aws-s3" : " ^2.0.9" ,
17
16
"@serverless/core" : " ^1.0.0"
18
17
},
19
18
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -15,15 +15,8 @@ class Function extends Component {
15
15
async default ( inputs = { } ) {
16
16
this . context . status ( 'Deploying' )
17
17
18
- const bucket = await this . load ( '@serverless/aws-s3' )
19
18
const lambda = await this . load ( '@serverless/aws-lambda' )
20
19
21
- this . context . status ( 'Deploying AWS S3 Bucket' )
22
- const bucketOutputs = await bucket ( {
23
- region : inputs . region
24
- } )
25
-
26
- inputs . bucket = bucketOutputs . name
27
20
const lambdaOutputs = await lambda ( inputs )
28
21
29
22
return lambdaOutputs
@@ -38,10 +31,8 @@ class Function extends Component {
38
31
async remove ( inputs = { } ) {
39
32
this . context . status ( 'Removing' )
40
33
41
- const bucket = await this . load ( '@serverless/aws-s3' )
42
34
const lambda = await this . load ( '@serverless/aws-lambda' )
43
35
44
- await bucket . remove ( )
45
36
const lambdaOutputs = await lambda . remove ( inputs )
46
37
47
38
return lambdaOutputs
You can’t perform that action at this time.
0 commit comments