Beispiel #1
0
def run(yolo_file=None, **kwargs):
    """Run a script with AWS account credentials."""
    account = kwargs['account']
    stage = kwargs['stage']
    if ((account is None and stage is None)
            or (account is not None and stage is not None)):
        raise click.UsageError(
            "One (and only one) of --account or --stage should be specified.")
    client.YoloClient(yolo_file=yolo_file).run(**kwargs)
Beispiel #2
0
def show_parameters(yolo_file=None, **kwargs):
    """Show centralized config for a service/stage."""
    client.YoloClient(yolo_file=yolo_file).show_parameters(**kwargs)
Beispiel #3
0
def show_config():
    """Show currently cached configuration.

    Don't show secrets."""
    client.YoloClient().show_config()
Beispiel #4
0
def shell(yolo_file=None, **kwargs):
    """Launch a Python shell with AWS credentials."""
    client.YoloClient(yolo_file=yolo_file).shell(**kwargs)
Beispiel #5
0
def push_lambda(yolo_file=None, **kwargs):
    """DEPRECATED: Use `yolo push`."""
    client.YoloClient(yolo_file=yolo_file).push(**kwargs)
Beispiel #6
0
def list_lambda_builds(yolo_file=None, **kwargs):
    """DEPRECATED: Use `yolo list-builds`."""
    client.YoloClient(yolo_file=yolo_file).list_builds(**kwargs)
Beispiel #7
0
def build_lambda(yolo_file=None, **kwargs):
    """Build Lambda function packages."""
    client.YoloClient(yolo_file=yolo_file).build_lambda(**kwargs)
Beispiel #8
0
def show_service(yolo_file=None, **kwargs):
    """Show service configuration for a given stage."""
    client.YoloClient(yolo_file=yolo_file).show_service(**kwargs)
Beispiel #9
0
def deploy_infra(yolo_file=None, **kwargs):
    """Deploy infrastructure from templates."""
    client.YoloClient(yolo_file=yolo_file).deploy_infra(**kwargs)
Beispiel #10
0
def status(yolo_file=None, **kwargs):
    """Show infrastructure deployments status."""
    client.YoloClient(yolo_file=yolo_file).status(**kwargs)
Beispiel #11
0
def list_accounts():
    """List AWS accounts."""
    client.YoloClient().list_accounts()
Beispiel #12
0
def use_profile(profile_name):
    """Make Yolo use an AWS CLI named profile."""
    client.YoloClient().use_profile(profile_name)
Beispiel #13
0
def login():
    """Login with and cache Rackspace credentials."""
    client.YoloClient().login()
Beispiel #14
0
def put_parameters(yolo_file=None, **kwargs):
    """Securely store service/stage parameters."""
    client.YoloClient(yolo_file=yolo_file).put_parameters(**kwargs)
Beispiel #15
0
def push(yolo_file=None, **kwargs):
    """Push a local build, ready it for deployment."""
    client.YoloClient(yolo_file=yolo_file).push(**kwargs)
Beispiel #16
0
def ensure_parameters(yolo_file=None, **kwargs):
    """Ensure that all required parameters are defined in SSM."""
    client.YoloClient(yolo_file=yolo_file).ensure_parameters(**kwargs)
Beispiel #17
0
def list_builds(yolo_file=None, **kwargs):
    """List the pushed builds for a service/stage."""
    client.YoloClient(yolo_file=yolo_file).list_builds(**kwargs)
Beispiel #18
0
def show_outputs(yolo_file=None, **kwargs):
    """Show infrastructure stack outputs."""
    client.YoloClient(yolo_file=yolo_file).show_outputs(**kwargs)
Beispiel #19
0
def deploy_lambda(yolo_file=None, **kwargs):
    """Deploy Lambda functions for services."""
    client.YoloClient(yolo_file=yolo_file).deploy_lambda(**kwargs)
Beispiel #20
0
def upload_s3(yolo_file=None, **kwargs):
    """DEPRECATED: Use `yolo push`."""
    client.YoloClient(yolo_file=yolo_file).push(**kwargs)
Beispiel #21
0
def deploy_s3(yolo_file=None, **kwargs):
    """Deploy a built S3 application."""
    client.YoloClient(yolo_file=yolo_file).deploy_s3(**kwargs)
Beispiel #22
0
def deploy_baseline_infra(yolo_file=None, **kwargs):
    """DEPRECATED: Use `yolo deploy-infra`."""
    client.YoloClient(yolo_file=yolo_file).deploy_infra(**kwargs)
Beispiel #23
0
def clear_config():
    """Clear cached configuration for `yolo`."""
    client.YoloClient().clear_config()