Download repo from Appsilon
git clone https://github.com/Appsilon/r-lambda-workflow
cd r-lambda-workflow
Setup a python virtual env (may not be necessary)
| { | |
| "AWSTemplateFormatVersion":"2010-09-09", | |
| "Description":"Creates resources necessary to replicate SQLServer database using AWS Database Migration Service to S3 Data lake.", | |
| "Parameters":{ | |
| "KeyName":{ | |
| "Description":"", | |
| "Type":"AWS::EC2::KeyPair::KeyName" | |
| } | |
| }, | |
| "Mappings" : { |
| { | |
| "productName" : "{{commerce.productName}}", | |
| "color" : "{{commerce.color}}", | |
| "department" : "{{commerce.department}}", | |
| "product" : "{{commerce.product}}", | |
| "imageUrl": "{{image.imageUrl}}", | |
| "dateSoldSince": "{{date.past}}", | |
| "dateSoldUntil": "{{date.future}}", | |
| "price": {{random.number( | |
| { |
| { | |
| "AWSTemplateFormatVersion": "2010-09-09", | |
| "Description": "PA16 2018-12-13 - @akirmak - RevHist: PA16: sagemaker notebook role type fixed. PA15:-(parameters added for AcctId and S3 bucket's name initials)", | |
| "Parameters": { | |
| "yourInitials": { | |
| "Description": "Your Initials to be used in the s3-bucket created. All in small letters pls. e.g. It shall be 'fs' for Frank Sinatra", | |
| "Type": "String", | |
| "MinLength": "2", | |
| "MaxLength": "5" | |
| } |
| import time | |
| import cv2 | |
| import boto3 | |
| # Get the Client | |
| session = boto3.Session() | |
| rekog_client = session.client("rekognition", region_name='us-east-1') | |
| width = 1280 | |
| height = 720 | |
| scale_factor = 0.1 |
Download repo from Appsilon
git clone https://github.com/Appsilon/r-lambda-workflow
cd r-lambda-workflow
Setup a python virtual env (may not be necessary)
| FROM nginx:alpine | |
| RUN echo "My app!" > /usr/share/nginx/html/index.html |