@@ -38,6 +38,7 @@ def __init__(self, config, profile_name):
38
38
returns the package version
39
39
'''
40
40
def upload_existing (self , pkg ):
41
+ environment = {'Variables' : self ._config .variables }
41
42
self ._validate_package_size (pkg .zip_file )
42
43
with open (pkg .zip_file , "rb" ) as fil :
43
44
zip_file = fil .read ()
@@ -69,6 +70,7 @@ def upload_existing(self, pkg):
69
70
Timeout = self ._config .timeout ,
70
71
MemorySize = self ._config .memory ,
71
72
VpcConfig = self ._vpc_config ,
73
+ Environment = environment ,
72
74
)
73
75
LOG .debug ("AWS update_function_configuration response: %s"
74
76
% response )
@@ -90,6 +92,7 @@ def upload_existing(self, pkg):
90
92
returns the package version
91
93
'''
92
94
def upload_new (self , pkg ):
95
+ environment = {'Variables' : self ._config .variables }
93
96
code = {}
94
97
if self ._config .s3_bucket :
95
98
code = {'S3Bucket' : self ._config .s3_bucket ,
@@ -113,6 +116,7 @@ def upload_new(self, pkg):
113
116
MemorySize = self ._config .memory ,
114
117
Publish = self ._config .publish ,
115
118
VpcConfig = self ._vpc_config ,
119
+ Environment = environment ,
116
120
)
117
121
LOG .debug ("AWS create_function response: %s" % response )
118
122
0 commit comments