How to use the zappa.zappa.Zappa function in zappa

To help you get started, we’ve selected a few zappa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Miserlou / flask-zappa / tests / tests.py View on Github external
def test_zappa(self):
        self.assertTrue(True)
        Zappa()
github Miserlou / flask-zappa / manage.py View on Github external
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',
github Miserlou / django-zappa / django_zappa / management / commands / zappa_command.py View on Github external
def __init__(self, *args, **kwargs):
        super(ZappaCommand, self).__init__(*args, **kwargs)
        self.zappa = Zappa()