API Gateway rest API already found. Deleting root resource id Done deleting existing resources. Deploying to: dev https://68mxz0v402.execute-api.us-east-1.amazonaws.com/dev/
"""Update price, availability info about a product in redis""" body = app.current_request.json_body client_id = body['client_id'] prod_key = '{}:{}'.format(client_id, pid) price = body.get('price') if price: r.hset(prod_key, 'price', price) availability = body.get('availability') if availability: r.hset(prod_key, 'availability', availability)
# Read original picture from StdIn '-auto-orient', # Detect picture orientation from metadata '-thumbnail', '{}x{}{}'.format(width, height, mode), # Thumbnail size '-extent', '{}x{}'.format(width, height), # Fill if original picture i smaller than thumbnail '-gravity', 'Center', # Extend (fill) from the thumbnail middle '-unsharp',' 0x.5', # Un-sharpen slightly to improve small thumbnails '-quality', '80%', # Thumbnail JPG quality '{}:-'.format(format), # Write thumbnail with `format` to StdOut ] p = Popen(cmd, stdout=PIPE, stdin=PIPE) thumbnail = p.communicate(input=image)[0] https://github.com/Schweigi/thumbnail-service
• Java (OpenJDK 1.8 and 1.7) • Go (any version) • Ruby (2.3.1, 2.2.5, 2.1.10, 2.0.0-p648) • PHP (7.0.10, 5.6.25) • Native compilation with a pre-built gcc 4.8.5 • Rust (1.11.0, 1.10.0, but any version should work) https://github.com/lambci/lambci