Exemplo n.º 1
0
def backup_lambda():
    parser.add_argument('lambda_name', help='lambda name')
    args = parser.parse_args()
    d = DeployLambda(args.profile, args.lambda_name)
    d.backup_old_lambda(os.getcwd())
    if not os.path.isfile('./' + args.lambda_name):
        DeployLambda.unpack_lamdba(args.lambda_name, os.getcwd())
Exemplo n.º 2
0
def deploy_lambda():
    parser.add_argument('lambda_name', help='lambda name')
    args = parser.parse_args()
    d = DeployLambda(args.profile, args.lambda_name)
    d.backup_old_lambda(os.getcwd())
    zip = DeployLambda.create_zip(args.lambda_name, os.getcwd())
    d.deploy_new_lambda(zip)
Exemplo n.º 3
0
def deploy_lambda():
    parser.add_argument('lambda_name', help='lambda name')
    args = parser.parse_args()
    d = DeployLambda(args.profile, args.lambda_name)
    d.backup_old_lambda(os.getcwd())
    zip = DeployLambda.create_zip(args.lambda_name, os.getcwd())
    d.deploy_new_lambda(zip)
Exemplo n.º 4
0
def backup_lambda():
    parser.add_argument('lambda_name', help='lambda name')
    args = parser.parse_args()
    d = DeployLambda(args.profile, args.lambda_name)
    d.backup_old_lambda(os.getcwd())
    if not os.path.isfile('./' + args.lambda_name):
        DeployLambda.unpack_lamdba(args.lambda_name, os.getcwd())