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)
def show_parameters(yolo_file=None, **kwargs): """Show centralized config for a service/stage.""" client.YoloClient(yolo_file=yolo_file).show_parameters(**kwargs)
def show_config(): """Show currently cached configuration. Don't show secrets.""" client.YoloClient().show_config()
def shell(yolo_file=None, **kwargs): """Launch a Python shell with AWS credentials.""" client.YoloClient(yolo_file=yolo_file).shell(**kwargs)
def push_lambda(yolo_file=None, **kwargs): """DEPRECATED: Use `yolo push`.""" client.YoloClient(yolo_file=yolo_file).push(**kwargs)
def list_lambda_builds(yolo_file=None, **kwargs): """DEPRECATED: Use `yolo list-builds`.""" client.YoloClient(yolo_file=yolo_file).list_builds(**kwargs)
def build_lambda(yolo_file=None, **kwargs): """Build Lambda function packages.""" client.YoloClient(yolo_file=yolo_file).build_lambda(**kwargs)
def show_service(yolo_file=None, **kwargs): """Show service configuration for a given stage.""" client.YoloClient(yolo_file=yolo_file).show_service(**kwargs)
def deploy_infra(yolo_file=None, **kwargs): """Deploy infrastructure from templates.""" client.YoloClient(yolo_file=yolo_file).deploy_infra(**kwargs)
def status(yolo_file=None, **kwargs): """Show infrastructure deployments status.""" client.YoloClient(yolo_file=yolo_file).status(**kwargs)
def list_accounts(): """List AWS accounts.""" client.YoloClient().list_accounts()
def use_profile(profile_name): """Make Yolo use an AWS CLI named profile.""" client.YoloClient().use_profile(profile_name)
def login(): """Login with and cache Rackspace credentials.""" client.YoloClient().login()
def put_parameters(yolo_file=None, **kwargs): """Securely store service/stage parameters.""" client.YoloClient(yolo_file=yolo_file).put_parameters(**kwargs)
def push(yolo_file=None, **kwargs): """Push a local build, ready it for deployment.""" client.YoloClient(yolo_file=yolo_file).push(**kwargs)
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)
def list_builds(yolo_file=None, **kwargs): """List the pushed builds for a service/stage.""" client.YoloClient(yolo_file=yolo_file).list_builds(**kwargs)
def show_outputs(yolo_file=None, **kwargs): """Show infrastructure stack outputs.""" client.YoloClient(yolo_file=yolo_file).show_outputs(**kwargs)
def deploy_lambda(yolo_file=None, **kwargs): """Deploy Lambda functions for services.""" client.YoloClient(yolo_file=yolo_file).deploy_lambda(**kwargs)
def upload_s3(yolo_file=None, **kwargs): """DEPRECATED: Use `yolo push`.""" client.YoloClient(yolo_file=yolo_file).push(**kwargs)
def deploy_s3(yolo_file=None, **kwargs): """Deploy a built S3 application.""" client.YoloClient(yolo_file=yolo_file).deploy_s3(**kwargs)
def deploy_baseline_infra(yolo_file=None, **kwargs): """DEPRECATED: Use `yolo deploy-infra`.""" client.YoloClient(yolo_file=yolo_file).deploy_infra(**kwargs)
def clear_config(): """Clear cached configuration for `yolo`.""" client.YoloClient().clear_config()