@@ -38,6 +38,7 @@ def __init__(self, config, profile_name):
3838 returns the package version
3939 '''
4040 def upload_existing (self , pkg ):
41+ environment = {'Variables' : self ._config .variables }
4142 self ._validate_package_size (pkg .zip_file )
4243 with open (pkg .zip_file , "rb" ) as fil :
4344 zip_file = fil .read ()
@@ -69,6 +70,7 @@ def upload_existing(self, pkg):
6970 Timeout = self ._config .timeout ,
7071 MemorySize = self ._config .memory ,
7172 VpcConfig = self ._vpc_config ,
73+ Environment = environment ,
7274 )
7375 LOG .debug ("AWS update_function_configuration response: %s"
7476 % response )
@@ -90,6 +92,7 @@ def upload_existing(self, pkg):
9092 returns the package version
9193 '''
9294 def upload_new (self , pkg ):
95+ environment = {'Variables' : self ._config .variables }
9396 code = {}
9497 if self ._config .s3_bucket :
9598 code = {'S3Bucket' : self ._config .s3_bucket ,
@@ -113,6 +116,7 @@ def upload_new(self, pkg):
113116 MemorySize = self ._config .memory ,
114117 Publish = self ._config .publish ,
115118 VpcConfig = self ._vpc_config ,
119+ Environment = environment ,
116120 )
117121 LOG .debug ("AWS create_function response: %s" % response )
118122
0 commit comments