File tree Expand file tree Collapse file tree 5 files changed +10
-19
lines changed Expand file tree Collapse file tree 5 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ module.exports.config = function() {
10
10
ApiIdSalt : '{apiId_salt}' ,
11
11
PasswordSalt : '{password_salt}' ,
12
12
VPC : {
13
- SG1 : 'sg-b2200bcb' ,
14
- SN1 : 'subnet-3ec1c248' ,
15
- SN2 : 'subnet-3103ea56'
13
+ securityGroupIds : [ 'sg-b2200bcb' ] ,
14
+ subnetIds : [ 'subnet-3ec1c248' , 'subnet-3103ea56' ]
16
15
}
17
16
} ;
18
17
} ;
Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ module.exports.config = function() {
10
10
ApiIdSalt : '{apiId_salt}' ,
11
11
PasswordSalt : '{password_salt}' ,
12
12
VPC : {
13
- SG1 : 'sg-b2200bcb' ,
14
- SN1 : 'subnet-3ec1c248' ,
15
- SN2 : 'subnet-3103ea56'
13
+ securityGroupIds : [ 'sg-b2200bcb' ] ,
14
+ subnetIds : [ 'subnet-3ec1c248' , 'subnet-3103ea56' ]
16
15
}
17
16
} ;
18
17
} ;
Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ module.exports.config = function() {
10
10
ApiIdSalt : '{apiId_salt}' ,
11
11
PasswordSalt : '{password_salt}' ,
12
12
VPC : {
13
- SG1 : 'sg-b2200bcb' ,
14
- SN1 : 'subnet-3ec1c248' ,
15
- SN2 : 'subnet-3103ea56'
13
+ securityGroupIds : [ 'sg-b2200bcb' ] ,
14
+ subnetIds : [ 'subnet-3ec1c248' , 'subnet-3103ea56' ]
16
15
}
17
16
} ;
18
17
} ;
Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ module.exports.config = function() {
10
10
ApiIdSalt : '{apiId_salt}' ,
11
11
PasswordSalt : '{password_salt}' ,
12
12
VPC : {
13
- SG1 : 'sg-b2200bcb' ,
14
- SN1 : 'subnet-3ec1c248' ,
15
- SN2 : 'subnet-3103ea56'
13
+ securityGroupIds : [ 'sg-b2200bcb' ] ,
14
+ subnetIds : [ 'subnet-3ec1c248' , 'subnet-3103ea56' ]
16
15
}
17
16
} ;
18
17
} ;
Original file line number Diff line number Diff line change @@ -40,13 +40,8 @@ provider:
40
40
# 1. sls deploy with iamRoleStatements including the proper ec2 actions
41
41
# 2. then sls deploy with vpc configs
42
42
# if you don't want to run your function from a VPC, comment-out or remove this section:
43
- vpc : # use a different VPC per environment
44
- securityGroupIds :
45
- - ${self:custom.config.VPC.SG1}
46
- subnetIds :
47
- - ${self:custom.config.VPC.SN1}
48
- - ${self:custom.config.VPC.SN2}
49
- # profile: ko-playground-admin
43
+ vpc : ${self:custom.config.VPC} # use a different VPC per environment
44
+ profile : ko-playground-admin
50
45
51
46
package :
52
47
exclude :
You can’t perform that action at this time.
0 commit comments