def main():
    """Create application.properties for a given application."""
    logging.basicConfig(format=LOGGING_FORMAT)

    parser = argparse.ArgumentParser(description=main.__doc__)

    add_debug(parser)
    add_app(parser)
    add_env(parser)
    add_properties(parser)
    add_region(parser)
    add_artifact_path(parser)
    add_artifact_version(parser)

    args = parser.parse_args()

    logging.getLogger(__package__.split('.')[0]).setLevel(args.debug)

    LOG.debug('Args: %s', vars(args))

    rendered_props = get_properties(args.properties)
    if rendered_props['pipeline']['type'] == 's3':
        s3app = S3Apps(app=args.app, env=args.env, region=args.region, prop_path=args.properties)
        s3app.create_bucket()

        s3deploy = S3Deployment(
            app=args.app,
            env=args.env,
            region=args.region,
            prop_path=args.properties,
            artifact_path=args.artifact_path,
            artifact_version=args.artifact_version)
        s3deploy.upload_artifacts()
    else:
        init_properties(**vars(args))
Create application.properties for a given application.