This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: sbsecret | |
type: Opaque | |
data: | |
sbconnection: <Base 64 Encoded Service Bus Connection String> | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base | |
WORKDIR /app | |
EXPOSE 80 | |
FROM microsoft/dotnet:2.1-sdk AS build | |
WORKDIR /src | |
COPY ["CatalogAPI/CatalogAPI.csproj", "CatalogAPI/"] | |
RUN dotnet restore "CatalogAPI/CatalogAPI.csproj" | |
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base | |
WORKDIR /app | |
EXPOSE 80 | |
FROM microsoft/dotnet:2.1-sdk AS build | |
WORKDIR /src | |
COPY ["Audit/AuditAPI.csproj", "Audit/"] | |
RUN dotnet restore "Audit/AuditAPI.csproj" | |
COPY . . | |
WORKDIR "/src/Audit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -f .\CatalogAPI\Dockerfile -t catalogapi:local . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import boto3 | |
import base64 | |
def lambda_handler(event, context): | |
eventBody = json.loads(json.dumps(event))['body'] | |
imageBase64 = json.loads(eventBody)['Image'] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Image": "iVBORw0KGgoAAAANSUhEUgAAAl0AAABpCAYAAAAA9pa5AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABQBSURBVHhe7ZyLlR07tUVJgRhIgRwIgRhIgQzIgAyIgAhIgATIgBwM8z6vNxa6kqrOp2W7PecYGt1d+u6vdp1u+zdfREREROTDsegSEREROYBFl4iIiMgBLLpEREREDmDRJSIiInIAiy4RERGRA1h0iYiIiBzAoktERETkABZdIiIiIgew6BIRERE5gEWXiIiIyAEsukREREQOYNElIiIicgCLLhEREZEDWHSJiIiIHMCiS0REROQAFl0iIiIiB7DoEhERETmARZeIiIjIASy6RERERA5g0SUiIiJyAIsuERERkQNYdImIiIgcwKJLRERE5AAWXSIiIiIHsOgSEREROYBFl4iIiMgBLLpEREREDmDRJSIiInIAiy4RERGRA1h0iYiIiBzAoktERETkABZdIiIiIgew6BIRERE5gEWXiIiI/NT85jdnyiGLLhEREfmpsegSEREROYBFl4iIiMgBLLpEREREDmDRJSIiInIAi65Pwl/+8pdfjPmHP/zh65P38M9//vPLn/70py+//e1vv/zjH//4+vR9/P3vf//yxz/+8Zgjyv/RdkX3v/vd737xoX//+99fR3y/4DOcmzP/61//+vpU5OP56Hz4CubSX4ONsNf3pJNTZ/nmEnOZkKQ/Kxgy7R3JgAD+/e9///Z1w5///Odf7NHryxn+9re//WLbFCx//etf/98GPP/eCy9eLHJeCkWRj+aj8+ErEAPm0v8lOe571Mmps3xzifNJEMb4jLz7k65cvHlzor0zyXDhpxDO+vLxcHmg6zEO2s4UYd8zftIlp/nofPgKnM1c+r+QI5InvjednDrLN5e4f40i90kxR/uIJNOfWsjHk8Q82pKkzZuhhYz87PAp/CrXfXQ+fAVz6a/5HnVy6izfVG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import urllib.parse | |
import boto3 | |
print('Loading function') | |
def lambda_handler(event, context): | |
print("Triggered getTextFromS3PDF event: " + json.dumps(event, indent=2)) | |
# Get the object from the event and show its content type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import boto3 | |
import os | |
def getJobResults(jobId): | |
pages = [] | |
textract = boto3.client('textract') | |
response = textract.get_document_text_detection(JobId=jobId) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import boto3 | |
import os | |
import urllib.parse | |
print('Loading function') | |
s3 = boto3.client('s3') | |
# Amazon Textract client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="google-signin-client_id" content="<CLIENT ID>"> | |
<title>Google Auth To AWS</title> | |
</head> | |
<body> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
<script src="https://apis.google.com/js/platform.js" async defer></script> | |
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.487.0.min.js"></script> |
OlderNewer