Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_zappa(self):
self.assertTrue(True)
Zappa()
def _package(environment, zappa_settings):
# Loading settings from json
settings = json.load(zappa_settings)
project_name = settings[environment]['project_name']
# Make your Zappa object
zappa = Zappa()
# Load environment-specific settings
s3_bucket_name = settings[environment]['s3_bucket']
vpc_config = settings[environment].get('vpc_config', {})
settings_file = settings[environment]['settings_file']
if '~' in settings_file:
settings_file = settings_file.replace('~', os.path.expanduser('~'))
if not os.path.isfile(settings_file):
print("Please make sure your settings_file is properly defined.")
return
custom_settings = [
'http_methods',
'parameter_depth',
'integration_response_codes',
'method_response_codes',
def __init__(self, *args, **kwargs):
super(ZappaCommand, self).__init__(*args, **kwargs)
self.zappa = Zappa()