How to use the zappa.cli.ZappaCLI 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 / Zappa / tests / tests_placebo.py View on Github external
def test_cli_aws(self, session):
        zappa_cli = ZappaCLI()
        zappa_cli.api_stage = 'ttt888'
        zappa_cli.api_key_required = True
        zappa_cli.authorization_type = 'NONE'
        zappa_cli.load_settings('test_settings.json', session)
        zappa_cli.zappa.credentials_arn = 'arn:aws:iam::12345:role/ZappaLambdaExecution'
        zappa_cli.deploy()
        zappa_cli.update()
        zappa_cli.rollback(1)
        zappa_cli.tail(since=0, filter_pattern='', keep_open=False)
        zappa_cli.schedule()
        zappa_cli.unschedule()
        zappa_cli.undeploy(no_confirm=True, remove_logs=True)
github Miserlou / Zappa / tests / tests_placebo.py View on Github external
def test_cli_aws_status(self, session):
        zappa_cli = ZappaCLI()
        zappa_cli.api_stage = 'ttt888'
        zappa_cli.load_settings('test_settings.json', session)
        zappa_cli.api_stage = 'devor'
        zappa_cli.lambda_name = 'baby-flask-devor'
        zappa_cli.zappa.credentials_arn = 'arn:aws:iam::12345:role/ZappaLambdaExecution'
        resp = zappa_cli.status()
github Miserlou / Zappa / tests / tests_placebo.py View on Github external
def test_cli_cognito_triggers(self, session):
        zappa_cli = ZappaCLI()
        zappa_cli.api_stage = 'ttt888'
        zappa_cli.api_key_required = True
        zappa_cli.load_settings('test_settings.json', session)
        zappa_cli.lambda_arn = 'arn:aws:lambda:us-east-1:12345:function:Zappa-Trigger-Test'
        zappa_cli.update_cognito_triggers()
github Miserlou / Zappa / zappa / handler.py View on Github external
def update_certificate(self):
        """
        Call 'certify' locally.
        """
        import boto3
        session = boto3.Session()

        z_cli = ZappaCLI()
        z_cli.api_stage = self.settings.API_STAGE
        z_cli.load_settings(session=session)
        z_cli.certify()

        return