Skip to content

Commit

Permalink
Test switch to pki-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-sa committed Mar 28, 2024
1 parent d2ddd1d commit fe56b5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
25 changes: 2 additions & 23 deletions hello_world/app.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
import json

# import requests

from cryptography.hazmat.primitives import hashes, padding
from pki_tools import Name, Certificate, LoadError


def lambda_handler(event, context):
"""Sample pure Lambda function
Parameters
----------
event: dict, required
API Gateway Lambda Proxy Input Format
Event doc: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-input-format
context: object, required
Lambda Context runtime methods and attributes
Context doc: https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html
Returns
------
API Gateway Lambda Proxy Output Format: dict
Return doc: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html
"""
print(pki_tools.__version__)

# try:
# ip = requests.get("http://checkip.amazonaws.com/")
Expand Down
2 changes: 1 addition & 1 deletion hello_world/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
requests
cryptography
pki-tools

0 comments on commit fe56b5a

Please sign in to comment.